Web analytics over the API
GET /web/overview and /web/breakdown: parameters, every breakdown dimension, and what each metric means.
Authenticate as in Queries and insights over the API. Schemas are in GET /v1/openapi.json under the web tag.
Overview
GET /v1/projects/{project_id}/web/overview?from=&to= (optional compare=true, host, properties, dims). Bots and internal traffic are left out.
Metric | Meaning |
|---|---|
| distinct visitors, sessions that started in the range, pageviews |
| share of sessions that are a bounce under the project's bounce rule |
| mean of last event time minus first event time, over all sessions |
| sessions with 2+ pageviews, 10+ seconds on the clock, or 10+ seconds of engagement |
| mean visible time on the page (from |
Breakdown
GET /v1/projects/{project_id}/web/breakdown?dimension=<value>&from=&to=&limit= returns rows ordered by visitors (limit default 100, max 1000). dimension is required and is one of:
page, entry_page, exit_page, referrer, channel, utm_source, utm_medium, utm_campaign, utm_term, utm_content, country, region, city, device, browser, os, host, language, resolution, browser_version, os_version, device_brand, device_model, visitor (new or returning), visit_number, hour, weekday, timezone.
Names are singular (page, not pages; device, not device_type; utm_source, not source). Sessions without a value for the dimension (no UTM tag, say) fall under an empty-string key. An unknown value answers 400 and lists the valid ones.