The Trends API provides historical analytics information for any given period in a site's history. The data for the current period updates in real-time, so the figures are always fresh and up-to-date.
The API offers a fantastic opportunity to compare multiple metrics across multiple different periods to gain insight into how the figures are changing over time.
GoSquared Ecommerce Analytics uses the Trends API to access the range of revenue and transaction related. In order to access this data via the api, the
sort parameter can be set to
transactions as detailed with each individual endpoint.
Please read through the list of definitions to understand terms used throughout the documentation.
The Trends API returns metrics broken down by a variety of criteria, known as dimensions. Each dimension has its own route, but accept many similar parameters.
A typical request:
https://api.gosquared.com/trends/v2/dimensionName ?from=YYYY-MM-DD &to=YYYY-MM-DD &interval=interval
View documentation for each dimension to see live examples of requests and response bodies.