Skip to content

Event ingestion for card views and platform clicks #669

Description

@ShantKhatri

Summary

Record a view or click event whenever a card is opened or a platform button is tapped.

Contexts

Needs to hash session tokens before storage and capture source (QR / AirDrop / direct link) plus optional event_id.

Tasks

  • Endpoint/hook to log a card_view on open
  • Endpoint/hook to log a platform_click on tap
  • Hash session token before write, never store raw
  • Attach event_id when the view came from a known event

Acceptance Criteria

  • Views and clicks are recorded correctly for all three sources
  • No raw/reversible identifiers ever hit the DB
  • 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