Retrieves the add-to-cart rate for all your searches with at least one add-to-cart event, including a daily breakdown.
By default, the analyzed period includes the last eight days including the current day.
The rate is the number of add-to-cart conversion events divided by the number of tracked searches.
A search is tracked if it returns a queryID (clickAnalytics is true).
This differs from the response’s count, which shows the overall number of searches, including those where clickAnalytics is false.
There’s a difference between a 0 and null add-to-cart rate when clickAnalytics is enabled:
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.
OK
Add-to-cart rate: calculated as the number of tracked searches with at least one add-to-cart event divided by the number of tracked searches.
If null, Algolia didn't receive any search requests with clickAnalytics set to true.
0 <= x <= 10.1
Number of tracked searches. Tracked searches are search requests where the clickAnalytics parameter is true.
2
Number of add-to-cart events from this search.
x >= 010
Daily add-to-cart rates.