API
Funnels endpoints
These endpoints read saved funnels and run funnel analyses. Reading and analysing need funnels:read. Saving and deleting need funnels:write.
Last updated . This guide belongs to Conversion funnels.
What is a step?
| Field | Required | Content |
|---|---|---|
type | Yes | page, event, outbound, button_click, form_submit or copy |
value | For page and event | A path or an event name |
name | No | A label for the report |
hostname | No | Limits the step to one domain |
propertyFilters | No | A list of { key, value } |
POST /sites/:siteId/funnels/analyze
Runs an analysis without saving anything. Send steps in the body, at least two. The shared time parameters, filters and segment_id go in the query string. Public sites and private links can call it.
{ "data": [ { "step_number": 1, "step_name": "/cart", "sessions": 1200, "conversion_rate": 100, "dropoff_rate": 0 }, { "step_number": 2, "step_name": "/checkout", "sessions": 540, "conversion_rate": 45, "dropoff_rate": 55 } ] }
conversion_rate is the share of step one, as a percentage. dropoff_rate is the share lost since the previous step.
How do you save and delete funnels?
| Request | Result |
|---|---|
GET /sites/:siteId/funnels | The saved funnels with their steps |
POST /sites/:siteId/funnels | Saves a funnel from name and steps. Send reportId to update an existing one. Status 201 |
DELETE /sites/:siteId/funnels/:funnelId | Deletes it |
The list returns the definitions only. Call analyze with the steps to get numbers.