Get site analytics
Returns traffic analytics for a site over a date range: pageview/visitor totals, new vs. returning visitors, a default conversion funnel, a per-day time series, and top pages, referrers, and dimensional breakdowns (device, browser, OS, geography, and UTM parameters). Defaults to the last 30 days; the range cannot exceed 366 days.
Authorizations
API key in the format: Bearer {api_token}
Path Parameters
The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
Query Parameters
Start of the date range (inclusive), as an ISO-8601 date (YYYY-MM-DD). Defaults to 30 days before end_date.
End of the date range (inclusive), as an ISO-8601 date (YYYY-MM-DD). Defaults to today.
Response
Site analytics for the requested period
site_analytics Prefix id of the site (e.g. site_abc123).
The resolved date range the metrics cover.
Aggregate pageviews and unique visitors over the period.
Visitors active in the period split by whether their first-ever visit was before the period started.
Ordered conversion funnel; each stage counts visitors who reached it within 24h of the first stage.
Per-day pageviews and visitors time series.
Top 20 pages by pageviews.
Top 20 referrer hosts by visitors.
Top 20 custom events by hit count, with unique visitors and any associated revenue.
Top 20 values for a single analytics dimension, ranked by unique visitors.
Top 20 values for a single analytics dimension, ranked by unique visitors.
Top 20 values for a single analytics dimension, ranked by unique visitors.
Top 20 values for a single analytics dimension, ranked by unique visitors.
Top 20 values for a single analytics dimension, ranked by unique visitors.
Top 20 values for a single analytics dimension, ranked by unique visitors.
Top 20 values for a single analytics dimension, ranked by unique visitors.
Top 20 values for a single analytics dimension, ranked by unique visitors.
Top 20 values for a single analytics dimension, ranked by unique visitors.

