Get site analytics
Get analytics history for a site over a period of time.
If neither from nor to is provided, the queried period is the past 30 days. If only from is provided, the period is from plus 30 days. If only to is provided, the period is the 30 days up to and including to.
result=activities can't be combined with dimension; the request returns an error.
Without dimension, the response is a single object of metrics. With dimension, the response is an array with one entry per dimension value, each holding the dimension and its metrics.
Request
- Base URLhttps://api.duda.co
- URLhttps://api.duda.co/api/analytics/site/{site_name}
- AuthHTTP basic
Path parameters
The site's unique name (its ID), returned when the site is created.
Query parameters
Start date, for example 2016-03-01. Defaults to 30 days before to.
End date, for example 2016-03-31. Defaults to the current day.
The dimension to break the results down by. system groups by browser and operating system; geo groups by country and region. Can't be combined with result=activities.
The type of metrics to return.
The time unit to aggregate results by.
Response
OK
Example response
{
"VISITS": 100,
"VISITORS": 50,
"PAGE_VIEWS": 150
}Changes
No recorded changes to this operation across all 1 revision of this API.