You must send a user token with your search requests if you use Personalization.
Set the user token in InstantSearch and Autocomplete
If you’re using Autocomplete, InstantSearch.js, React InstantSearch, or Vue InstantSearch, set theinsights option to true when initializing the library.
- Send click and conversion events with Autocomplete
- Send click and conversion events with InstantSearch.js
- Send click and conversion events with React InstantSearch
- Send click and conversion events with Vue InstantSearch
- Understand the user token
userToken as an API parameter to your search requests:
Set the user token with API clients
The user token should match theuserToken in events sent to the Insights API (also known as the anonymous user token, or session user token).
To set the user token per search request:
userToken,
you can forward user IP addresses.