Explore related content in the Algolia Academy
Click and conversion events
- NeuralSearch
- Algolia Recommend
- Personalization
- Dynamic Re-Ranking
- Query Categorization
- Search analytics
- Revenue analytics
- A/B Testing
What are events?
Events represent user interactions with your app or website. They have extra details, like the name, type, and time of the interaction, and user identity. For more information, see the Insights API reference.Which events should you send?
To capture different user behavior, send different event types. For a starting point, see Plan your implementation.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 on this page. 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. With server-side tracking, your users send events sent to your servers. Then your servers forward the events to the Insights API. To set up server-side tracking, see Send events from your backend on this page.Upload events from external analytics
You can speed up data collection by uploading events from the last four days. To upload historical events, you can use:- The
sendEvents
method with Algolia’s API clients - The Insights API
queryID
,
its timestamp must be within an hour of the related search or browse request.
The queryID
can’t be from a search event older than four days.
For more information, see Event types.
Send click and conversion events from your ecommerce platform
If you’re using any of these ecommerce platforms, you can use the Algolia integrations to send events: If you’re using a headless ecommerce platform, see Send click and conversion events from your frontend.Send click and conversion events from your frontend
If you’re using Algolia’s UI libraries, you can use their Insights integrations to send events:- Autocomplete
- Flutter Helper
- InstantSearch Android
- InstantSearch iOS
- InstantSearch.js
- React InstantSearch
- Vue InstantSearch
- Send ecommerce events with InstantSearch
- Send media events with InstantSearch
- Send generic events with InstantSearch
search-insights
library for web apps,
and the Kotlin and Swift API clients for native Android and iOS apps.
If you’re not using Algolia’s UI libraries,
use the search-insights
library to send click and conversion events.
Collect click and conversion events with customer data platforms or tag managers
These platforms can send events to the Algolia Insights API:Send click and conversion events from your backend
The Algolia API clients provide methods for sending events to the Insights API. You can also use the API clients to send events in batches or upload events from external analytics. For more information, see:- Send ecommerce events with an API client
- Send media events with an API client
- Send generic events with an API client
- API clients
- Insights API