Skip to content

Anonymous public and card views are never recorded, causing analytics blind spots #496

@Ridanshi

Description

@Ridanshi

Summary

Analytics collection appears to depend on authenticated viewer context.

Anonymous visitors can view public profiles and cards without contributing to engagement metrics.

Affected Files

  • analytics.ts
  • public.ts

Root Cause

Analytics collection is gated behind user-context availability.

Requests originating from unauthenticated visitors bypass tracking entirely.

Reproduction

  1. Log out.
  2. Visit a public profile or card.
  3. Inspect analytics records.
  4. Observe that no view event is recorded.
  5. Repeat while authenticated and compare results.

Expected Behavior

Public content views should be tracked regardless of authentication status.

Actual Behavior

Anonymous traffic is ignored.

Why This Is Difficult To Detect

Most testing occurs under authenticated sessions.

Anonymous analytics gaps are easy to overlook.

Production Impact

  • Underreported traffic
  • Misleading engagement metrics
  • Inaccurate popularity calculations
  • Analytics blind spots

Suggested Fix

Support anonymous view tracking while preserving privacy requirements.

Severity

Medium

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions