New data are made available at 11:00 UTC on the following day.
Retention metrics
This resource returns the following metrics in day granularity for the requested time interval:
Notice: Deprecation of Metrics for GDPR Compliance
Our provider has decided to discontinue the metrics Returning Customers Last 60 Days and New Customers Last 60 Days to align with GDPR regulations and uphold data privacy standards.
Resource [GET]
[/bi/retention-metrics/]
This resource supports pagination. Due to increased data volume, adding pagination to this resource allows fetching data in batches (pages) for a specific time interval.
URL Parameters
store_codeThe store code - Optionaldatetime_gteA date string (in UTC) to be used as greater than or equal for filtering - Requireddatetime_lteA date string (in UTC) to be used as less than or equal for filtering - Requiredpage_sizeThe number of results in each page of the response - Optional Default value is used when param is not givenpageThe number of the page of the response - Optional Needed only when response is paginated
Note : Default page_size = 1000. Maximum page_size = 10000
Response
The response is paginated. Thecount property shows the total results of the query. The next property contains the link of the subsequent page in case there is any - otherwise it has null value. Likewise with previous property. Finally, the results property contains the array of sessions either for a page or for the entire result. If page_size (default or set by the client) > count then only one page of results is returned and next and previous properties are null. In order to consume all pages, the client needs to continue fetching page-by-page using link provided within the next property until null value is found (last page - all sessions fetched).
In each result object, the following data are available:
store_codeThe store code - Stringoutside_traffic- Integerturn_in_rate- Floatavg_visit_duration- Floatreturning_cust_14- Floatnew_cust_14- Floatreturning_cust_60- Floatnew_cust_60- FloatdayThe day of measurement - ISO 8601 Date and time with timezone