Analytics

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

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 until today.

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 ?results=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.
Language
Authentication
Basic
base64
:
Click Try It! to start a request and see the response here!