Retrieve click-through rate
Retrieves the click-through rate (CTR) for all your searches with at least one click event, including a daily breakdown.
clickAnalytics is enabled:
- Null means there were no queries: since Algolia didn’t receive any events, CTR is null.
- 0 mean there were queries but no click events were received.
analyticsAuthorizations
Your 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.
Query Parameters
Index name.
"ALGOLIA_INDEX_NAME"
End date of the period to analyze, in YYYY-MM-DD format.
"2023-01-21"
Start date of the period to analyze, in YYYY-MM-DD format.
"2022-09-19"
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.
Response
OK
Number of clicks associated with this search.
x >= 0162
Daily click-through rates.
Click-through rate: calculated as the number of tracked searches with at least one click 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.49
Number of tracked searches. Tracked searches are search requests where the clickAnalytics parameter is true.
2