Skip to content

Filter out self-views, bots, and crawlers #670

Description

@ShantKhatri

Summary

Make sure a card owner's own views and non-human traffic don't pollute their analytics.

Contexts

Called out explicitly as an edge case in the spec. Needs a bot/crawler detection approach (user agent checks, rate heuristics, or similar) and a way to detect the owner viewing their own card.

Tasks

  • Detect and exclude owner viewing their own card
  • Add bot/crawler filtering on ingestion
  • Add a test suite of known bot user agents to guard against regressions

Acceptance Criteria

  • Owner's own views never counted
  • Common bots/crawlers excluded
  • Tests added

Area

backend

Difficulty

Intermediate

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions