Web analytics
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
GET |
Retrieve web analytics breakdown
Required API key scopes
query:readPath parameters
- project_idstring
Query parameters
- apply_path_cleaningbooleanDefault:
true - breakdown_bystringOne of:
"DeviceType""Browser""OS""Viewport""InitialReferringDomain""InitialUTMSource""InitialUTMMedium""InitialUTMCampaign""InitialUTMTerm""InitialUTMContent""Country""Region""City""InitialPage""Page""ExitPage""InitialChannelType" - date_fromstring
- date_tostring
- filter_test_accountsbooleanDefault:
true - hoststring
- limitintegerDefault:
100 - offsetintegerDefault:
0
Response
Example request
GET /api /projects /:project_id /web_analytics /breakdownExample response
Status 200 Get a breakdown of web analytics data by supported properties.
RESPONSE
Retrieve web analytics overview
This endpoint is in Concept state, please join the feature preview to try it out when it's ready. Get an overview of web analytics data including visitors, views, sessions, bounce rate, and session duration.
Required API key scopes
query:readPath parameters
- project_idstring
Query parameters
- date_fromstring
- date_tostring
- filter_test_accountsbooleanDefault:
true - hoststring
Response
Example request
GET /api /projects /:project_id /web_analytics /overviewExample response
Status 200 Get simple overview metrics: visitors, views, sessions, bounce rate, session duration
RESPONSE