Direction:
Create an analytics module for event tracking and reporting. Provide an event ingestion API, storage schema for events, and reporting endpoints to compute common metrics (active users, event counts, retention).
Acceptance criteria:
- Endpoint to ingest events with schema validation and basic deduplication.
- Event storage optimized for analytics queries (e.g., time-series DB or partitioned tables).
- Reporting API endpoints for common metrics: daily active users (DAU), event counts, top events, and basic retention cohorts.
- Batch jobs or materialized views to precompute heavy aggregates.
- Tests for ingestion, schema validation, and sample reporting queries.
- Docs describing event schema, retention policy, and how to add new events.
Direction:
Create an analytics module for event tracking and reporting. Provide an event ingestion API, storage schema for events, and reporting endpoints to compute common metrics (active users, event counts, retention).
Acceptance criteria: