Trends

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.

Ecommerce

The GoSquared Ecommerce dashboard uses the Trends API to retrieve your tracked revenue and transaction data. In order to access this data via the api, the sort parameter can be set to revenue or transactions as detailed with each individual endpoint.

Getting started

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.