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 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.
Language