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

Activity

  1. github-actions commented on Jul 12, 2026

    @github-actions
    Contributor

    Hi @ShantKhatri,

    Thanks for opening this issue.
    
    Please reply with one of the following areas so the issue can be routed to the appropriate team member:
    
    - /backend
    - /web
    - /mobile
    - /devops
    
    Once an area is selected, the corresponding label will be added automatically.
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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