queryID, and userToken, start with
Click and conversion events.
Start your implementation
The best way to send events to Algolia depends on where you’re sending them from. Use this page to choose your implementation path.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’ devices send events to your servers. Then your servers forward the events to the Insights API. To set up server-side tracking, see Send events manually or in batches on this page.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.
For native Android and iOS apps, use the InstantSearch event guides listed above.
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 events manually or in batches
Use these resources if you need to send events manually, forward them through your own servers, or upload recent events from another system. For more information, see:- Ecommerce event examples
- Media event examples
- Generic event examples
- Search Insights JavaScript library
- Insights API
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
sendEventsmethod 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.