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

ParameterTypeRequiredDescription
periodstringNoTime period (day, 7d, 30d, month, 12mo, custom)
modelstringNoAttribution model: first_touch or last_touch (default: last_touch)
groupBystringNoGroup results by: source, medium, or campaign (default: source)

Response fields

Returns an array of attribution entries:

FieldTypeDescription
groupstringGroup value (source, medium, or campaign name)
conversionsnumberNumber of conversions attributed
revenuenumberAttributed revenue