Operations manual

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.

OperateAnalyticsReportingReviewed November 2026

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.

ViewUse
KPIsRevenue, orders, AOV, customers, conversion signals.
FunnelSessions → product views → add to bag → checkout → paid order.
Event mixPage views, product views, searches, cart and purchase events.
Provider healthGA4 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.

VariablePurpose
GA4_API_SECRETGA4 Measurement Protocol secret.
META_CAPI_TOKENMeta Conversions API token.
SiteSettings.analytics_ga_idGA4 measurement ID.
SiteSettings.meta_pixel_idMeta 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.
Perfumz Operations Manual · English reference · Reviewed November 2026