Search insights is Algolia’s JavaScript library for tracking user interactions, such as clicks, conversions, and views, and sending them to the Insights API. It’s designed to run in the browser and integrates seamlessly with Algolia’s search and discovery libraries, including InstantSearch and Autocomplete. To learn more, see:Documentation Index
Fetch the complete documentation index at: https://algolia.com/llms.txt
Use this file to discover all available pages before exploring further.
- Choose how to send events
- Send events with InstantSearch
- Send events with Autocomplete
- Insights API reference
Install the Search Insights library
To send events from your JavaScript app, either include a code snippet directly in your HTML or install it as a dependency to your project.Include the Search Insights library in your HTML
Add the following code snippet to thehead tag of every page where you want to track events:
HTML
HTML
Install the Search Insights library as npm package
Add thesearch-insights package as a dependency to your project:
init.