tracking_reports_revenue_by_source
Revenue attributed by channel + UTM breakdown for a date range, under a chosen attribution model and lookback window.
Revenue attributed by channel + UTM breakdown for a date range, under a chosen attribution model and lookback window. Includes a distinct unattributed row, totals, and a count-based match rate. Revenue is per-currency (never summed across currencies); refunds are netted explicitly.
Behavior
- HTTP
GET /tracking/reports/revenue-by-source
Arguments
Name | Type | Required | Description |
|---|---|---|---|
to | string | — | Cohort window end (ISO). Optional — defaults to the moment of the call. |
from | string | — | Cohort window start (ISO); selects conversions by subscription start. Optional — defaults to 30 days back, the start of that UTC day. |
model | string | — | Attribution model |
domain | string | — | Only consider touchpoints on this domain |
lookbackDays | integer | — | Lookback window in days (default 30) |
Response
Field | Type | Always | Description |
|---|---|---|---|
to | string | • | End of the cohort window the figures cover, echoed back (ISO 8601, UTC). |
from | string | • | Start of the cohort window the figures cover, echoed back (ISO 8601, UTC). |
model | string | • | Attribution model the credit was assigned under, echoed back. Pass the same value to `tracking_reports_source_people` to drill into a row. |
domain | string | • | Site touchpoints were restricted to; null when every site of the product was considered. |
totals | object | • | Every channel plus `unattributed`. This is the whole window, not the attributed part of it. |
channels | array | • | One row per channel that earned revenue in the window. Channels with none are omitted. |
matchRate | number | • | Fraction of paying people (0..1) a touchpoint could be found for: attributed customers over `totals.customers`. Count-based, never revenue-weighted. |
computedAt | string | • | When this report was computed (ISO 8601, UTC). |
lookbackDays | number | • | How far back before a conversion a touchpoint was allowed to be credited, in days; echoed back. |
unattributed | object | • | Revenue that reached no channel — kept as its own row so the channel rows are never quietly inflated to cover it. |
Try it
Revenue attributed by channel + UTM breakdown for a date range, under a chosen attribution model and lookback window.