Skip to content
IForevents Docs
IForevents Docs
InicioInstalarGitHubPrivacidadTérminosSeguridadIntroducción
Referencia de la API
Query events with optional property filters POSTEvent names and the property keys seen on them GETDistinct values for one property GETExport events as CSV GETExport tracked users as CSV GETPaths after or before one event POSTOrdered step conversion POSTThe users behind one funnel step POSTOne page's heatmap: clicks, movement, scroll reach, attention and intent signals POSTPages with heatmap data POSTEvery dashboard panel in one call POSTServer-sent events stream of the dashboard payload POSTA bucketed metric over a window, optionally broken down by a property POSTThe events or users behind one insights point POSTFormulas over named Insights queries POSTHeadline counters GETUsers per acquisition origin: channel, source, medium, utm, referrer, click id, landing page or any URL parameter POSTURL query parameters seen in the range, and the origin properties GETTraffic KPIs GETProjects owned by the caller's organization GETCustom property keys for the explorer filter and breakdown pickers GETDistinct values of one property, most frequent first GETCohort retention: daily, weekly or monthly, with optional entry and return events and an entry-event breakdown POSTBreak one event down by a property value POSTUsers and events per day GETMost frequent events GETPaginated tracked users GET
Soporte
API ReferenceEndpointsAnalytics

Users per acquisition origin: channel, source, medium, utm, referrer, click id, landing page or any URL parameter

POST
/v1/analytics/origins

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.

Authorization

AuthorizationBearer <token>

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  }}

Headline counters GET

Previous Page

URL query parameters seen in the range, and the origin properties GET

Next Page

attribution?string
conversion_event?
dimension?string
end*string
Formatdate-time
filters?array<>
interval?string
limit?integer
match?string
start*string
Formatdate-time
timezone?string