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:| Metric | Description |
|---|---|
| Outside Traffic | The number of people who passed by the storefront area but did not end up visiting the store. |
| Turn in Coversion | The number of people who passed by the storefront area and entered the store within the predefined time range. |
| Average Visit Duration | The average duration that visitors spent within the store. |
| Returning Customers Last 14 Days | Visitors who had previously made a visit to the same store within the past 14 days. |
| New Customers Last 14 Days | Visitors who did not make any visits to the store in the past 14 days. |
| Returning Customers Last 60 Days | Visitors who had previously made a visit to the same store within the past 60 days. |
| New Customers Last 60 Days | Visitors who did not make any visits to the store in the past 60 days. |
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