Documentation menuAPI: Funnels

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?

FieldRequiredContent
typeYespage, event, outbound, button_click, form_submit or copy
valueFor page and eventA path or an event name
nameNoA label for the report
hostnameNoLimits the step to one domain
propertyFiltersNoA 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?

RequestResult
GET /sites/:siteId/funnelsThe saved funnels with their steps
POST /sites/:siteId/funnelsSaves a funnel from name and steps. Send reportId to update an existing one. Status 201
DELETE /sites/:siteId/funnels/:funnelIdDeletes it

The list returns the definitions only. Call analyze with the steps to get numbers.