ドキュメント
APIAPI リファレンス

ファネル

ファネルの作成・取得・更新・削除とファネル分析。

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

ファネルを分析

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

スコープanalytics:readバッチ対応
追加スコープ
[
  {
    "when": "filter.type=saved",
    "scopes": [
      "analytics:read",
      "analysis:read"
    ]
  }
]
パスパラメーター
siteIdstring必須

ID of the site (see List sites).

≥ 1 chars
リクエストボディapplication/json
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 | 任意 | 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.

使用できる値"auto""event""session""visitor"
funnelIdstring必須

ID of a saved funnel (see List funnels).

1–512 chars
レスポンス
GET/api/v1/sites/{siteId}/funnels

Lists the site's saved funnels.

スコープanalysis:read
パスパラメーター
siteIdstring必須

ID of the site (see List sites).

1–256 chars
クエリパラメーター
limitinteger

Maximum number of results per page.

既定値 1001–200
cursorstring | 任意 | null

Opaque pagination cursor from the previous response.

レスポンス
POST/api/v1/sites/{siteId}/funnels

ファネルを作成

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

スコープanalysis:write
パスパラメーター
siteIdstring必須

ID of the site (see List sites).

1–256 chars
リクエストボディapplication/json
namestring必須

Display name.

1–200 chars
filterDslVersion1必須

Filter language version. Always 1.

既定値 1
progressionScopestring必須

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

使用できる値"session""visitor"
既定値 "session"
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.

既定値 null
stepsobject[]必須

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

2–10 items
idstring必須
1–128 chars/^[A-Za-z0-9][A-Za-z0-9._:-]*$/
namestring
≤ 120 chars
filterDslstring必須
1–65536 chars
レスポンス
GET/api/v1/sites/{siteId}/funnels/{funnelId}

ファネルを取得

Returns one funnel with its steps.

スコープanalysis:read
パスパラメーター
siteIdstring必須

ID of the site (see List sites).

1–256 chars
funnelIdstring必須

ID of the funnel.

1–256 chars
レスポンス
PATCH/api/v1/sites/{siteId}/funnels/{funnelId}

ファネルを更新

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

スコープanalysis:write
パスパラメーター
siteIdstring必須

ID of the site (see List sites).

1–256 chars
funnelIdstring必須

ID of the funnel.

1–256 chars
リクエストボディapplication/json
namestring
1–200 chars
filterDslVersion1
progressionScopestring
使用できる値"session""visitor"
conversionWindowMsnumber | 任意 | null
stepsobject[]
2–10 items
idstring必須
1–128 chars/^[A-Za-z0-9][A-Za-z0-9._:-]*$/
namestring
≤ 120 chars
filterDslstring必須
1–65536 chars
レスポンス
DELETE/api/v1/sites/{siteId}/funnels/{funnelId}

ファネルを削除

Deletes a funnel. Collected data is not affected.

スコープanalysis:write
パスパラメーター
siteIdstring必須

ID of the site (see List sites).

1–256 chars
funnelIdstring必須

ID of the funnel.

1–256 chars
レスポンス