Documentation
APIAPI reference

Funnels

Manage saved funnels and analyze their conversion.

POST/api/v1/sites/{siteId}/analytics/funnel-analysis

Analyze funnel

Returns the number of sessions or visitors that reached each step of a saved funnel, and the conversion and drop-off between steps.

Scopesanalytics:readBatchable
Conditional scopes
[
  {
    "when": "filter.type=saved",
    "scopes": [
      "analytics:read",
      "analysis:read"
    ]
  }
]
Path parameters
siteIdstringrequired

ID of the site (see List sites).

≥ 1 chars
Request bodyapplication/json
timeRangeobjectrequired

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 | any | null

Optional 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.

scopestring

Which entity a filter condition selects. auto (default) picks the narrowest scope that fits the expression; event, session, and visitor force one.

Allowed"auto""event""session""visitor"
funnelIdstringrequired

ID of a saved funnel (see List funnels).

1–512 chars
Responses
GET/api/v1/sites/{siteId}/funnels

List funnels

Lists the site's saved funnels.

Scopesanalysis:read
Path parameters
siteIdstringrequired

ID of the site (see List sites).

1–256 chars
Query parameters
limitinteger

Maximum number of results per page.

Default 1001–200
cursorstring | any | null

Opaque pagination cursor from the previous response.

Responses
POST/api/v1/sites/{siteId}/funnels

Create funnel

Creates a funnel. Each step is a filter expression; a visitor or session converts by matching the steps in order within the conversion window.

Scopesanalysis:write
Path parameters
siteIdstringrequired

ID of the site (see List sites).

1–256 chars
Request bodyapplication/json
namestringrequired

Display name.

1–200 chars
filterDslVersion1required

Filter language version. Always 1.

Default 1
progressionScopestringrequired

Whether steps must happen within one session or may span a visitor's sessions.

Allowed"session""visitor"
Default "session"
conversionWindowMsnumber | any | nullrequired

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.

Default null
stepsobject[]required

Ordered steps. Each has an ID, an optional name, and a filter.

2–10 items
idstringrequired
1–128 chars/^[A-Za-z0-9][A-Za-z0-9._:-]*$/
namestring
≤ 120 chars
filterDslstringrequired
1–65536 chars
Responses
GET/api/v1/sites/{siteId}/funnels/{funnelId}

Get funnel

Returns one funnel with its steps.

Scopesanalysis:read
Path parameters
siteIdstringrequired

ID of the site (see List sites).

1–256 chars
funnelIdstringrequired

ID of the funnel.

1–256 chars
Responses
PATCH/api/v1/sites/{siteId}/funnels/{funnelId}

Update funnel

Updates a funnel. Send only the fields to change; steps replaces the whole list.

Scopesanalysis:write
Path parameters
siteIdstringrequired

ID of the site (see List sites).

1–256 chars
funnelIdstringrequired

ID of the funnel.

1–256 chars
Request bodyapplication/json
namestring
1–200 chars
filterDslVersion1
progressionScopestring
Allowed"session""visitor"
conversionWindowMsnumber | any | null
stepsobject[]
2–10 items
idstringrequired
1–128 chars/^[A-Za-z0-9][A-Za-z0-9._:-]*$/
namestring
≤ 120 chars
filterDslstringrequired
1–65536 chars
Responses
DELETE/api/v1/sites/{siteId}/funnels/{funnelId}

Delete funnel

Deletes a funnel. Collected data is not affected.

Scopesanalysis:write
Path parameters
siteIdstringrequired

ID of the site (see List sites).

1–256 chars
funnelIdstringrequired

ID of the funnel.

1–256 chars
Responses