Attribution
Get revenue attribution data by source and model.
Attribution
Returns revenue attribution data broken down by source, using the specified attribution model.
Endpoint
GET /api/v1/organizations/:orgId/sites/:siteId/analytics/attribution
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
period | string | No | Time period (day, 7d, 30d, month, 12mo, custom) |
model | string | No | Attribution model: first_touch or last_touch (default: last_touch) |
groupBy | string | No | Group results by: source, medium, or campaign (default: source) |
Response fields
Returns an array of attribution entries:
| Field | Type | Description |
|---|---|---|
group | string | Group value (source, medium, or campaign name) |
conversions | number | Number of conversions attributed |
revenue | number | Attributed revenue |