Create Funnel

Create a new conversion funnel.

Create Funnel

Creates a new multi-step conversion funnel for a site. Requires member role or higher.

Endpoint

POST /api/v1/organizations/:orgId/sites/:siteId/funnels

Request Body

FieldTypeRequiredDescription
namestringYesFunnel name
descriptionstringNoFunnel description
stepsarrayYesArray of funnel steps (min 2)

Each step requires:

FieldTypeRequiredDescription
namestringYesStep label
ordernumberYesStep position (1-indexed)
typestringNopageview (default) or custom_event
patternstringYesPage path or event name to match
match_typestringNoexact, contains (default), regex

Analyze Funnel

Once created, analyze funnel performance:

GET /api/v1/organizations/:orgId/sites/:siteId/funnels/:funnelId/analyze

Returns per-step stats with:

FieldTypeDescription
step_idstringStep ID
namestringStep name
ordernumberStep position
visitorsnumberVisitors who reached this step
dropoff_ratenumber% lost from previous step
conversion_ratenumber% retained from previous step
revenuenumberRevenue attributed to visitors at step
top_sourcesarrayTop 3 traffic sources at step
top_countriesarrayTop 3 countries at step