Skip to main content

Revenue Analytics

Revenue Analytics

Track revenue overview and attributed revenue for campaigns, widgets, and recommendation widgets.

Audience: Revenue and growth teams measuring contribution by activation channel.

Critical: Revenue endpoints are under /api/v1/analytics/revenue/* and require analytics permissions.

Who This Page Is For

Use this page when you need attributable revenue metrics by entity (campaign, widget, recommendation widget) and overall order-level revenue overview.

Quick Start (2-5 Minutes)

1

Get revenue overview

Retrieve organization/site-level revenue summary.

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

Get campaign revenue

Inspect attributed revenue for one campaign entity.

GET /api/v1/analytics/revenue/campaigns/:id?days=30
3

Get widget revenue

Inspect attributed revenue for one widget entity.

GET /api/v1/analytics/revenue/widgets/:id?days=30
4

Get recommendation widget revenue

Inspect attributed revenue for one recommendation placement.

GET /api/v1/analytics/revenue/recommendations/:id?days=30
5

Cross-check attribution model

Validate that attribution assumptions align with event-level attribution analysis.

Use /analytics/events/:eventId/attribution for event-level model checks.

Revenue endpoints

GET /api/v1/analytics/revenue/overview
GET /api/v1/analytics/revenue/campaigns/:id
GET /api/v1/analytics/revenue/widgets/:id
GET /api/v1/analytics/revenue/recommendations/:id

Required Fields / Minimum Payload

FieldRequiredTypeUsed by eventsDescription
idConditionaluuidcampaigns/widgets/recommendations endpointsEntity identifier for attributed revenue lookup.
daysOptionalnumberall revenue endpointsLookback window for revenue aggregation.
siteIdOptionaluuidoverviewSite-level filter in overview endpoint.

Event or Endpoint Decision Matrix

ScenarioUse ThisWhy
Need overall revenue trend/analytics/revenue/overviewHigh-level order revenue baseline.
Need campaign contribution/analytics/revenue/campaigns/:idCampaign-specific attributable revenue.
Need widget contribution/analytics/revenue/widgets/:idWidget-level attributable revenue.
Need recommendation placement contribution/analytics/revenue/recommendations/:idRecommendation widget revenue view.
Need model-level touchpoint analysis/analytics/events/:eventId/attributionEvent-level attribution model detail.

Common Errors and Fixes

Entity revenue endpoint returns empty

Cause: Wrong entity ID or no attributed revenue in chosen window.

Fix: Validate entity ID and expand days window.

Overview and entity totals do not align exactly

Cause: Different attribution scopes and filters across endpoints.

Fix: Compare with aligned filters and documented attribution assumptions.

Revenue appears delayed

Cause: Order ingestion timing or delayed downstream processing.

Fix: Verify order tracking pipeline and check recent ingestion status.

Permission errors for finance stakeholders

Cause: Analytics permission missing in role configuration.

Fix: Grant analytics view permission to reporting roles.

Production Checklist

  • Revenue endpoints use consistent days/site filters in dashboards.Required
  • Entity IDs are sourced from canonical module records.Required
  • Attribution assumptions are documented next to revenue KPIs.Required
  • Order ingestion reliability is monitored alongside revenue dashboards.Required
  • Revenue anomaly triage includes entity-level drilldowns.Required

Next Steps