Operate · 13
Analytics and reports
Analytics starts with first-party events. The dashboard turns them into an operational view of revenue, orders, traffic and funnel behaviour; optional providers receive server-side purchase events.
Dashboard home
The console home shows revenue, paid orders, average order value, customers, low stock and content signals for the selected window. The action queue surfaces unfulfilled orders, pending reviews, support messages, failed deliveries and upcoming appointments.
Two chart canvases plot revenue and order counts. The numbers come from the same orders and events used by the reports surface, not a separate analytics database.
Analytics workbench
/dashboard/analytics/ adds a funnel, event mix, first-party page-view trend and provider health for 7/14/30/90-day ranges. Events are recorded by PageViewMiddleware and the commerce lifecycle; staff and static paths are skipped.
| View | Use |
|---|---|
| KPIs | Revenue, orders, AOV, customers, conversion signals. |
| Funnel | Sessions → product views → add to bag → checkout → paid order. |
| Event mix | Page views, product views, searches, cart and purchase events. |
| Provider health | GA4 and Meta configuration state and recent delivery log. |
Reports and exports
/dashboard/reports/ covers sales, product, customer, traffic, refunds, abandoned bags, newsletter and affiliate reporting. CSV exports are available from the report screens and order export. Treat exports as sensitive customer data and store them securely.
# Dashboard report surfaces
/dashboard/reports/
/dashboard/analytics/
/dashboard/orders/export/
# Optional provider commands
python manage.py send_analytics_purchases --limit 50
GA4 and Meta
Set the measurement IDs in Site Settings and the server credentials in the environment. Server-side purchase events are sent after a paid order and logged; failures do not block checkout. The jobs timer retries unsent purchase events with send_analytics_purchases.
| Variable | Purpose |
|---|---|
GA4_API_SECRET | GA4 Measurement Protocol secret. |
META_CAPI_TOKEN | Meta Conversions API token. |
SiteSettings.analytics_ga_id | GA4 measurement ID. |
SiteSettings.meta_pixel_id | Meta pixel ID. |
Analytics routine
- Check the 7-day dashboard each morning and the 30-day view weekly.
- Compare a campaign window with the previous period before declaring a result.
- Review the funnel after a checkout or shipping change.
- Reconcile provider-reported revenue with paid orders, not with page views.
- Export and archive month-end reports outside the VPS.