漏斗
漏斗的新增、讀取、更新、刪除與漏斗分析。
Returns the number of sessions or visitors that reached each step of a saved funnel, and the conversion and drop-off between steps.
附加權限範圍
[
{
"when": "filter.type=saved",
"scopes": [
"analytics:read",
"analysis:read"
]
}
]siteIdstring必填ID of the site (see List sites).
timeRangeobject必填Reporting 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 | 任意 | 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"funnelIdstring必填ID of a saved funnel (see List funnels).
Lists the site's saved funnels.
siteIdstring必填ID of the site (see List sites).
limitintegerMaximum number of results per page.
cursorstring | 任意 | 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.
siteIdstring必填ID of the site (see List sites).
namestring必填Display name.
filterDslVersion1必填Filter language version. Always 1.
progressionScopestring必填Whether steps must happen within one session or may span a visitor's sessions.
"session""visitor"conversionWindowMsnumber | 任意 | null必填For 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[]必填Ordered steps. Each has an ID, an optional name, and a filter.
idstring必填namestringfilterDslstring必填Returns one funnel with its steps.
siteIdstring必填ID of the site (see List sites).
funnelIdstring必填ID of the funnel.
Updates a funnel. Send only the fields to change; steps replaces the whole list.
siteIdstring必填ID of the site (see List sites).
funnelIdstring必填ID of the funnel.
namestringfilterDslVersion1progressionScopestring"session""visitor"conversionWindowMsnumber | 任意 | nullstepsobject[]idstring必填namestringfilterDslstring必填Deletes a funnel. Collected data is not affected.
siteIdstring必填ID of the site (see List sites).
funnelIdstring必填ID of the funnel.