This is a beta feature according to Algolia’s Terms of Service (“Beta Services”).
Start your implementation
The best way to send events to Algolia depends on where you’re sending them from. Algolia provides tools to help you make sure your events have all the necessary details.Client-side versus server-side events
It’s best to send events straight from your users’ devices. To do this, see Send events from your frontend. If you’re not collecting enough events compared to the number of visitors to your website or app, it might be because your users use ad blockers. In this case, consider server-side tracking.Get started with Algolia Recommend analytics
Algolia Recommend Analytics is built on the same foundational concepts as Search Analytics and should feel familiar if you’ve used it before.Enable events collection
Set theclickAnalytics
parameter to true
when making Recommend requests.
This includes the queryID
parameter in the Recommend response, which is required for linking events and recommendations.
JavaScript
Send user tokens
User tokens are strings that uniquely identify users throughout your app. They link click and conversion events with user profiles. For more information, see User token.JavaScript
Send click and conversion events
To get the most out of your Recommend analytics, start collecting click and conversion events with the Algolia Insights API. Recommend analytics relies on the same Insights API as Search analytics. You can use the same methods to send events.-
Install and initialize the search-insights library.
JavaScript
-
Track click events.
JavaScript
JavaScript
See also
- For code examples and more information, see Track conversion events.
- If you use Recommend with InstantSearch, see Send events (with InstantSearch).
- If you use an API client, see Send events (with an API client).