Events
Custom events: summaries, time series, search, event types, and the fields and values in event payloads.
Returns totals for custom events in the range (events, event types, sessions, visitors, and events per session) and the top event and page.
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"Returns event counts at time points. series contains top-N event-type aggregates for the whole window; points contains the time buckets. The request limit controls top-N event types, not the number of points.
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"intervalstringrequiredBucket size of the time series: minute, hour, day, week, or month. Keep the number of buckets reasonable for the time range.
"minute""hour""day""week""month"limitintegerrequiredNumber of top event types in series, 1–12.
Searches event records. Use page.limit for page size; it supports values from 1 through 200 and is independent of the events timeseries top-N limit.
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"searchstringCase-insensitive text search.
eventNamestringOnly events with this name.
sortobjectrequiredSort field and direction.
fieldstringrequired"occurredAt""eventName""pathname"directionstringrequired"asc""desc"pageobjectrequiredCursor pagination. Pass limit, then send cursor from the previous response's pagination.nextCursor to fetch the next page.
limitintegerrequiredcursorstring | any | nullReturns one event with its payload, page, session, and visitor context.
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.
eventIdstringrequiredEvent ID from an events or journey response.
Lists the custom event names seen in the range with their counts.
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"searchstringCase-insensitive text search.
pageobjectrequiredCursor pagination. Pass limit, then send cursor from the previous response's pagination.nextCursor to fetch the next page.
limitintegerrequiredcursorstring | any | nullReturns totals, a trend, and breakdowns by page, country, device, and browser for one event name.
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"eventNamestringrequiredCustom event name, as sent by the tracking script.
intervalstringrequiredBucket size of the trend. Defaults to day.
"minute""hour""day""week""month"Lists the payload fields of one event name, with their value types and how often they appear.
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"eventNamestringrequiredCustom event name, as sent by the tracking script.
pageobjectrequiredCursor pagination. Pass limit, then send cursor from the previous response's pagination.nextCursor to fetch the next page.
limitintegerrequiredcursorstring | any | nullReturns the values of one payload field of an event name, with counts.
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"eventNamestringrequiredCustom event name, as sent by the tracking script.
fieldPathstringrequiredJSON Pointer to the field, e.g. /plan.
fieldValueTypestringrequiredValue type to list, as returned by List event fields.
"string""number""boolean""null""object""array"searchstringCase-insensitive text search.
pageobjectrequiredCursor pagination. Pass limit, then send cursor from the previous response's pagination.nextCursor to fetch the next page.
limitintegerrequiredcursorstring | any | null