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.
Parameter | Type | Description |
---|---|---|
dimension | JSON Structure | A 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"} |
VISITS | integer | For the queried period and for the specified dimension, the number of visits to the site. |
VISITORS | integer | For the queried period and for the specified dimension, the number of unique visitors to the site. |
PAGE_VIEWS | integer | For 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.
Parameter | Type | Description |
---|---|---|
dimension | JSON Object | A 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_CALLS | integer | For the queried period and for the specified dimension, the number of click-to-call actions on the site. |
CLICK_TO_MAPS | integer | For the queried period and for the specified dimension, the number of click-to-map actions on the site. |
CLICK_TO_EMAILS | integer | For the queried period and for the specified dimension, the number of click-to-email actions on the site. |
FORM_SUBMITS | integer | For the queried period and for the specified dimension, the number of form submission actions on the site. |