- Get started with click and conversion 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 Serch Insights library as npm package
Add thesearch-insights
package as a dependency to your project:
init
.