Revenue by attribution
Break down revenue by attribution (first- or last-touch source/medium/campaign), at the account or identity level, for a project over a window. Organization-wide; requires owner/admin. Returns currency and rows of dimension, revenue, and orders.
Organization API Token (prefixed sk_) sent as Authorization: Bearer sk_.... Create one in Settings and grant it scopes. Server-side only.
In: header
Path Parameters
Query Parameters
Attribution model: first_touch or last_touch. Default first_touch.
Value in
- "first_touch"
- "last_touch"
Attribute at the account or identity level. Default account.
Value in
- "account"
- "identity"
Attribution dimension to break down by. Default source.
Value in
- "source"
- "medium"
- "campaign"
Inclusive start of the window (ISO-8601). Defaults to 30 days ago.
Inclusive end of the window (ISO-8601). Defaults to now.
Maximum number of rows to return (1-100). Defaults to 20.
1 <= value <= 100Response Body
curl -X GET "https://example.com/projects/string/revenue/by-attribution"