Web analytics
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET |
Retrieve web analytics weekly
Summarizes a project's web analytics over a lookback window (default 7 days): unique visitors, pageviews, sessions, bounce rate, and average session duration with period-over-period comparisons, plus the top 5 pages, top 5 traffic sources, and goal conversions.
Required API key scopes
web_analytics:readPath parameters
- project_idstring
Query parameters
- comparebooleanDefault:
true - daysintegerDefault:
7
Response
Example request
GET /api /environments /:project_id /web_analytics /weekly_digestExample response
Status 200
RESPONSE
Retrieve web analytics weekly
Summarizes a project's web analytics over a lookback window (default 7 days): unique visitors, pageviews, sessions, bounce rate, and average session duration with period-over-period comparisons, plus the top 5 pages, top 5 traffic sources, and goal conversions.
Required API key scopes
web_analytics:readPath parameters
- project_idstring
Query parameters
- comparebooleanDefault:
true - daysintegerDefault:
7
Response
Example request
GET /api /environments /:project_id /web_analytics /weekly_digestExample response
Status 200
RESPONSE