Funnels
Manage saved funnels and analyze their conversion.
Returns the number of sessions or visitors that reached each step of a saved funnel, and the conversion and drop-off between steps.
Conditional scopes
[
{
"when": "filter.type=saved",
"scopes": [
"analytics:read",
"analysis:read"
]
}
]siteIdstringrequiredID of the site (see List sites).
timeRangeobjectrequiredReporting window. Use { "kind": "preset", "preset": "last_7_days" } or an absolute range { "kind": "absolute", "from": "…", "to": "…" } with RFC 3339 timestamps. timeZone (IANA name) sets calendar boundaries for presets and buckets.
filterobject | any | nullOptional filter: { "type": "dsl", "expression": "page.path startsWith \"/blog\"" } uses the filter language, { "type": "inline", "expression": … } passes a structured expression, and { "type": "saved", "id": "…" } references a saved filter (requires analysis:read). Team queries accept dsl and inline only. Use null or omit the field for no filter.
scopestringWhich entity a filter condition selects. auto (default) picks the narrowest scope that fits the expression; event, session, and visitor force one.
"auto""event""session""visitor"funnelIdstringrequiredID of a saved funnel (see List funnels).
Lists the site's saved funnels.
siteIdstringrequiredID of the site (see List sites).
limitintegerMaximum number of results per page.
cursorstring | any | nullOpaque pagination cursor from the previous response.
Creates a funnel. Each step is a filter expression; a visitor or session converts by matching the steps in order within the conversion window.
siteIdstringrequiredID of the site (see List sites).
namestringrequiredDisplay name.
filterDslVersion1requiredFilter language version. Always 1.
progressionScopestringrequiredWhether steps must happen within one session or may span a visitor's sessions.
"session""visitor"conversionWindowMsnumber | any | nullrequiredFor visitor funnels, the maximum time from the first to the last step, in milliseconds, or null for no limit. Session funnels must use null: the session already bounds them.
stepsobject[]requiredOrdered steps. Each has an ID, an optional name, and a filter.
idstringrequirednamestringfilterDslstringrequiredReturns one funnel with its steps.
siteIdstringrequiredID of the site (see List sites).
funnelIdstringrequiredID of the funnel.
Updates a funnel. Send only the fields to change; steps replaces the whole list.
siteIdstringrequiredID of the site (see List sites).
funnelIdstringrequiredID of the funnel.
namestringfilterDslVersion1progressionScopestring"session""visitor"conversionWindowMsnumber | any | nullstepsobject[]idstringrequirednamestringfilterDslstringrequiredDeletes a funnel. Collected data is not affected.
siteIdstringrequiredID of the site (see List sites).
funnelIdstringrequiredID of the funnel.