Get site analytics

Get analytics history for a specific website over a certain amount of time.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

If neither the from parameter nor the to parameter is provided, the queried period will be the past 30 days.

If only the from parameter is provided, the queried period will be the from date plus 30 days.

If only the to parameter is provided, the queried period will be from 30 days prior to the to date until the to date.

🚧

The ?result=activities cannot be combined with the 'dimension' query string. This will return an error.

If the result parameter is "traffic":

If a dimension set is provided, an array containing the following JSON elements for each row of the result set.

If no dimension set is provided, a JSON structure containing the following elements.

ParameterTypeDescription
dimensionJSON StructureA single dimension pertaining to the queried dimension type (if a dimension type was sent). Ex: The "geo" dimension type may return "dimension":{"Country":"Canada","Region":"Ontario"}
VISITSintegerFor the queried period and for the specified dimension, the number of visits to the site.
VISITORSintegerFor the queried period and for the specified dimension, the number of unique visitors to the site.
PAGE_VIEWSintegerFor the queried period and for the specified dimension, the number of page views to the site.

If the result parameter is "activities":

If a dimension set is provided, an array containing the following JSON elements for each row of the result set.

If no dimension set is provided, a JSON structure containing the following elements.

ParameterTypeDescription
dimensionJSON ObjectA single dimension pertaining to the queried dimension type (if a dimension type was sent). Ex: The "geo" dimension type may return "dimension":{"Country":"Canada","Region":"Ontario"}
CLICK_TO_CALLSintegerFor the queried period and for the specified dimension, the number of click-to-call actions on the site.
CLICK_TO_MAPSintegerFor the queried period and for the specified dimension, the number of click-to-map actions on the site.
CLICK_TO_EMAILSintegerFor the queried period and for the specified dimension, the number of click-to-email actions on the site.
FORM_SUBMITSintegerFor the queried period and for the specified dimension, the number of form submission actions on the site.
Path Params
string
required

The site's unique name (its ID), returned when the site is created.

Query Params
date

Start date, for example 2016-03-01. Defaults to 30 days before to.

date

End date, for example 2016-03-31. Defaults to the current day.

string
enum

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.

Allowed:
string
enum
Defaults to traffic

The type of metrics to return.

Allowed:
string
enum

The time unit to aggregate results by.

Allowed:
Responses

Language
Credentials
Basic
base64
:
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json