Get Funnel
Multi-step conversion funnel with per-step user counts, conversion ratios, and median time-to-convert.
funnel_type=closed (default) for ordered, in-window conversions (the default that powers the dashboard) or funnel_type=open to count whoever fired step k regardless of order - open mode also returns a dropped_off_users column.
Set group_by to a dimension (device, browser, os, location, referrer, ref, builder_codes, or any UTM column) to group each step by per-user attribution; limit controls how many categories are kept (default 5) before bucketing the rest as Others. Attribution defaults to first-touch; pass attribution=last_touch to bucket each user by their latest value instead.
group_by, limit, and attribution params replace the former breakdown and breakdown_top_n params. Direct callers using ?breakdown= / ?breakdown_top_n= must migrate - there are no aliases.Defining steps
Thesteps query parameter is a JSON-encoded array of 2 to 10 step specs. Each step is {type, event, name, filters?: [...]}:
type- event type (eventfor page views,trackfor custom events,transaction,signature,decoded_log).event- the event name to match.name- a unique step id. Use<event>::<index>(e.g."connect::1") so the same event re-used at multiple steps can be told apart in the response.filters- optional[{field, op, value}].- Operators:
eqneqinningtltgteltestartsWithendsWithcontainsnotEmpty/isEmpty- value-less existence checks (thevalueis ignored; rejected on the numeric event columnsvolume/revenue/points)
- Canonical tokens only: the retired long-form spellings (
equals,notEquals,notIn,includes,greater,greaterOrEqual,less,lessOrEqual) are rejected with a400naming the token. - For
in/nin, pass the values as a|-separated string invalue(e.g."ethereum|polygon|base"). fieldmay target a standard event column or a JSON property onproperties.
- Operators:
Example
Authorizations
Query Parameters
JSON-encoded array of 2 to 10 step specs. Each step is {type, event, name, filters?: [{field, op, value}]}. type is the event type (e.g. event for page views, track for custom events, transaction, signature, decoded_log). event is the event name. name is the unique step id (use "<event>::<index>" to disambiguate repeated events).
Filter operators: eq, neq, in, nin, gt, lt, gte, lte, startsWith, endsWith, contains, notEmpty, isEmpty (canonical tokens only; the retired long-form spellings equals/greater/includes/… are rejected, notEmpty/isEmpty are value-less existence checks, rejected on numeric event columns volume/revenue/points). For in/nin, pass the values as a |-separated string in value (e.g. "ethereum|polygon|base").
Standard columns (rendered via direct column access): origin, device, browser, os, location, referrer, direct, ref, utm_source, utm_medium, utm_campaign, utm_content, utm_term, builder_codes, version, locale, timezone, page_path. Anything else is treated as a JSON property and read from properties via JSONExtractString (or JSONExtractFloat for numeric comparators).
Optional dimension to break each step down by. Defaults to first-touch attribution; pass attribution=last_touch to bucket by each user's latest value. When set, the response gains a breakdown column.
device, browser, os, location, referrer, ref, utm_source, utm_medium, utm_campaign, utm_content, utm_term, builder_codes Response
Per-step funnel results
Analytics endpoint response. The data array contains the rows; the exact row shape depends on the endpoint. meta carries column type information for rendering, rows is the row count, and statistics holds query timing metadata.