Users per acquisition origin: channel, source, medium, utm, referrer, click id, landing page or any URL parameter
Attributes each user active in [start, end) to one value of dimension (default $channel) and counts users, new users (no activity on any day before the range), events, page views and conversions per value. first_touch (the default) takes the value of the user's first event in the range, last_touch the value of their last event carrying origin information. The origin properties ($channel, $source, $medium, $utm_source, $utm_medium, $utm_campaign, $utm_term, $utm_content, $utm_id, $referring_domain, $click_id, $origin_touch and $param.) are computed from the stored URL, referrer and attribution properties, and every report (insights, funnels, retention, flows, filters) accepts them as event properties. See docs/ORIGIN_ANALYTICS.md.
Session token issued by the accounts service (or the legacy /v1/auth routes).
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/analytics/origins" \ -H "Content-Type: application/json" \ -d '{ "attribution": "first_touch", "conversion_event": { "event": "checkout_completed" }, "dimension": "$channel", "end": "2026-09-13T12:30:45Z", "interval": "day", "limit": 50, "start": "2026-08-14T00:00:00Z", "timezone": "America/Bogota" }'{ "origins": { "attribution": "first_touch", "dimension": "$channel", "interval": "day", "rows": [ { "conversion_rate": 10, "conversions": 51, "converted_users": 42, "events": 5100, "new_users": 300, "page_views": 2900, "share": 52.5, "users": 420, "value": "organic_search" }, { "conversion_rate": 5, "conversions": 22, "converted_users": 19, "events": 4000, "new_users": 120, "page_views": 2100, "share": 47.5, "users": 380, "value": "direct" } ], "series": [ { "bucket": "2026-09-01T00:00:00Z", "new_users": 12, "value": "organic_search" } ], "totals": { "conversion_rate": 7.6, "conversions": 73, "converted_users": 61, "events": 9100, "new_users": 420, "page_views": 5000, "share": 100, "users": 800, "value": "$total" }, "values": 2 }}