Retrieves revenue-related metrics, such as the total revenue or the average order value.
To retrieve revenue-related metrics, send purchase events. By default, the analyzed period includes the last eight days including the current day.
Revenue is based on purchase conversion events (a conversion event with an eventSubtype attribute of purchase).
The revenue is the price attribute multiplied by the quantity attribute for each object in the event’s objectData array.
analyticsYour Algolia application ID.
Your Algolia API key with the necessary permissions to make the request. Permissions are controlled through access control lists (ACL) and access restrictions. The required ACL to make a request is listed in each endpoint's reference.
Index name.
"ALGOLIA_INDEX_NAME"
Start date of the period to analyze, in YYYY-MM-DD format.
"2022-09-19"
End date of the period to analyze, in YYYY-MM-DD format.
"2023-01-21"
Tags by which to segment the analytics.
You can combine multiple tags with OR and AND.
Tags must be URL-encoded.
For more information, see Segment your analytics data.