12 KiB
12 KiB
Analytics View Service
- Plan
- Create the analytics view service
- Create the analytics view service playbook
- Plan API structure
- Create endpoints for existing reports
- Opens over time
- Clicks over time
- Sales over time (events)
- Sales over time (summary)
- Lifetime Sale Totals
- Sale Currencies
- Pending Broadcasts
- Completed Broadcasts
- Cities, States, and Countries
- Followups
- New Subscribers Daily
- New Subscribers Weekly
- New Subscribers Monthly
- Subscriber Totals Daily
- Subscriber Totals Weekly
- Subscriber Totals Monthly
- Migrate reports to the Analytics View Service
The Analytics View Service provides a collection of report endpoints. These endpoints handle querying the analytics databases or, in the longer term, exposing efficient materialized data views.
Plan
- Parent ticket
- CCPANEL-11781
ITEM | Effort |
---|---|
Plan | 19d 4:00 |
Create the analytics view service | 2d |
Create the analytics view service playbook | 4h |
Plan API structure | |
Create endpoints for existing reports | 17d 0:00 |
Opens | 1d |
Clicks | 1d |
Sales | 1d |
Sales Totals | 1d |
Sale Currencies | 1d |
Sale Events | 1d |
Lifetime Sales | 1d |
Pending Broadcasts | 1d |
Completed Broadcasts | 1d |
Cities, States, and Countries | 1d |
Followups | 1d |
New Subscribers Daily | 1d |
New Subscribers Weekly | 1d |
New Subscribers Monthly | 1d |
Subscriber Totals Daily | 1d |
Subscriber Totals Weekly | 1d |
Subscriber Totals Monthly | 1d |
Migrate reports to the Analytics View Service |
Create the analytics view service
- New project using cookie cutter
- Deployed to kubernetes
- Grafana dashboard created
Create the analytics view service playbook
Plan API structure
- Pathing (
/reports/*
)? - Report versioning? (
/reports/{name}.v{version}
)?
Create endpoints for existing reports
- Based on the endpoints provided in the Report API Controller
- Are all of these report endpoints in use?
Opens over time
- Name
- daily-opens
- Parameters
-
- List (default: all lists)
- Date range (default: last 30 days)
- Report API controller endpoints
-
- opens_all_range
- opens_list_range
Clicks over time
- Name
- daily-clicks
- Parameters
-
- List (default: all lists)
- Date range (default: last 30 days)
- Report API controller endpoints
-
- clicks_all_range
- clicks_list_range
Sales over time (events)
- Name
- sale-events
- Parameters
-
- Date range (default: last 30 days)
- Currency (default: USD)
- Report API controller endpoints
-
- sales_tracked_events
Sales over time (summary)
- Name
- daily-sales
- Parameters
-
- Date range (default: last 60 days)
- Currency (default: USD)
Lifetime Sale Totals
- Name
- sale-totals
- Parameters
-
- Currency (default: USD)
- Report API controller endpoints
-
- sales_tracked_total
Sale Currencies
- Name
- sale-currencies
- Parameters
-
- Date range (default: last 60 days)
- Report API controller endpoints
-
- sales_tracked_currencies
Pending Broadcasts
- Name
- pending-broadcasts
- Parameters
-
- List (default: all lists)
- Report API controller endpoints
-
- broadcasts_pending
Completed Broadcasts
- Name
- completed-broadcasts
- Parameters
-
- List (default: all lists)
- Report API controller endpoints
-
- broadcasts_completed
- broadcasts_completed_all
Cities, States, and Countries
- Name
- subscribers-by-location
- Parameters
-
- List (default: all lists)
- Report API controller endpoints
-
- city_state_countries