Skip to content

Analytics aggregation API #671

Description

@ShantKhatri

Summary

Expose the numbers the dashboard needs: totals over time, per-platform breakdown, top traffic sources.

Contexts

Consumes card_view and platform_click. Should support 7d / 30d / all-time windows.

Tasks

  • Endpoint for total views over time (7d / 30d / all)
  • Endpoint for per-platform click breakdown
  • Endpoint for top traffic sources (QR location / event)

Acceptance Criteria

  • All three endpoints return correct aggregates against seeded test data
  • Response times reasonable for cards with high view counts
  • Tests added
  • docs updated

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