Skip to main content

Analytics Overview

Analytics Overview

Entry point for organization-level KPI monitoring and activity diagnostics.

Audience: Product, growth, and data teams monitoring cross-module performance.

Critical: All overview endpoints are authenticated and permission-protected (analytics:view).

Who This Page Is For

Use this page when you need top-level metrics, dashboard summary snapshots, and recent activity context before drilling into module-specific analytics.

Breaking change note: Cohort analytics now uses a single V2 report endpoint (GET /api/v1/analytics/cohort/:siteId). Legacy comparison and churn cohort endpoints were removed.

Breaking change note (Product + Category analytics v2): product drilldowns are now productId (UUID) based and legacy product routes were removed on February 16, 2026.

Breaking Endpoint Map (Product + Category Analytics v2)

RemovedReplacementRequired Contract Change
GET /api/v1/analytics/product/sites/:siteId/top-revenueGET /api/v1/analytics/product/:siteId/topUse v2 top response with required currency field.
GET /api/v1/analytics/product/:siteId/bought-togetherGET /api/v1/analytics/product/:siteId/associations?source=purchaseSend productId (UUID), not productItemCode.
GET /api/v1/analytics/product/:siteId/added-to-cart-togetherGET /api/v1/analytics/product/:siteId/associations?source=cartMode filter moved to mode=all|session|cart.
GET /api/v1/sites/:siteId/products (analytics picker usage)GET /api/v1/analytics/product/:siteId/catalogAnalytics product picker is now ANALYTICS_VIEW scoped.

Quick Start (2-5 Minutes)

1

Fetch organization overview

Retrieve high-level metrics for configured time window.

GET /api/v1/analytics/overview?days=30&siteId=SITE_ID
2

Fetch recent activity logs

Inspect recent event-level activity by site and limit.

GET /api/v1/analytics/activity-logs?siteId=SITE_ID&limit=50
3

Load dashboard summary

Get consolidated KPI set for dashboard cards/widgets.

GET /api/v1/analytics/dashboard-summary?days=30&siteId=SITE_ID
4

Inspect event breakdown

Fetch event-type aggregation for traffic diagnostics.

GET /api/v1/analytics/events/breakdown?days=30&siteId=SITE_ID
5

Continue with domain-specific pages

Drill into funnels, journeys, search, or revenue views.

Use analytics subpages for deep-dive diagnostics.
6

Open unified cohort report (V2)

Load retention, churn, and diagnostics in one cohort call.

GET /api/v1/analytics/cohort/:siteId?cohortType=first_visit&intervalType=day&startDate=2026-01-01&endDate=2026-01-31&periodCount=12
7

Open product analytics v2 drilldown

Load product analytics with mandatory productId and unified associations.

GET /api/v1/analytics/product/:siteId/overview?productId=<uuid>&days=30
GET /api/v1/analytics/product/:siteId/associations?productId=<uuid>&source=purchase&mode=all
8

Open category analytics v2 detail

Load category conversion and format revenue using response currency.

GET /api/v1/analytics/category/:siteId/conversion?categoryPath=/men/shoes&days=30

Overview + migration-sensitive endpoints

GET /api/v1/analytics/overview
GET /api/v1/analytics/activity-logs
GET /api/v1/analytics/dashboard-summary
GET /api/v1/analytics/events/breakdown
GET /api/v1/analytics/product/:siteId/catalog
GET /api/v1/analytics/product/:siteId/overview
GET /api/v1/analytics/product/:siteId/associations
GET /api/v1/analytics/product/:siteId/top
GET /api/v1/analytics/category/:siteId/top
GET /api/v1/analytics/category/:siteId/conversion

Required Fields / Minimum Payload

FieldRequiredTypeUsed by eventsDescription
AuthorizationRequiredBearer tokenAll overview endpointsAuthenticated analytics access is mandatory.
daysOptionalnumberoverview/dashboard-summary/events breakdownLookback window for metric aggregation.
siteIdOptionaluuidoverview/activity/dashboard-summary/events breakdownScope metrics to single site; omit for organization view.
limitOptionalnumberactivity-logsCaps recent activity rows returned.

Event or Endpoint Decision Matrix

ScenarioUse ThisWhy
Need top KPI snapshotGET /api/v1/analytics/overviewFast high-level performance status.
Need consolidated dashboard cardsGET /api/v1/analytics/dashboard-summaryReturns mixed-module summary in one call.
Need recent operational traceGET /api/v1/analytics/activity-logsShows latest activity records for diagnosis.
Need event-type distributionGET /api/v1/analytics/events/breakdownHelps detect ingestion anomalies or traffic shifts.
Need conversion pipeline detailGo to /analytics/funnelsFunnel pages provide step-wise conversion context.

Common Errors and Fixes

Overview metrics look lower than expected

Cause: Too narrow days window or siteId filter unintentionally applied.

Fix: Increase days and verify whether site-level or org-level scope is intended.

Activity logs endpoint returns small dataset

Cause: Low limit parameter or low event throughput in period.

Fix: Increase limit and confirm event ingestion pipeline is healthy.

403 on analytics endpoints

Cause: User role lacks analytics view permission.

Fix: Grant analytics permissions via role configuration.

Product analytics query fails after migration

Cause: Client still sends productItemCode or calls removed product v1 endpoints.

Fix: Switch to productId-based v2 endpoints and remove v1 route usage.

Dashboard summary disagrees with custom reports

Cause: Different time windows or filters across reports.

Fix: Standardize date and site filters before comparison.

Production Checklist

  • Overview and dashboard-summary are polled with consistent days/site filters.Required
  • Event breakdown is monitored for ingestion regressions.Required
  • Activity log retention assumptions are documented for operators.Required
  • Access is limited to users with analytics permission.Required
  • Product analytics consumers migrated to productId + associations + catalog + top routes.Required
  • Category conversion revenue formatting uses conversion.metrics.currency only.Required
  • Follow-up drilldown path is defined for each KPI anomaly.Required

Next Steps