Skip to main content
After preparing your event implementation, focus on your search implementation.

Attach user tokens to queries

Attach a to each query. This lets Advanced Personalization track each user’s journey and keep improving their results. The user tokens attached to the queries must match the user tokens sent with events.
This feature isn’t available on every plan. Refer to your pricing plan to see if it’s included.

Attach user tokens with InstantSearch

To include the userToken in a using InstantSearch, use the configure widget to set the userToken search parameter.

Attach user tokens with an API client

To include the userToken in your search queries with one of the API clients, use the search method to send the userToken search parameter.

Persist user tokens

To find and retrieve a at search time, persist anonymous user tokens and authenticated user tokens across sessions.

Avoid enabling personalization at query time

Rather than using the enablePersonalization search parameter at query time, set it in the settings when moving to production. This lets you A/B test the impact of personalization without changing code.

Next step

You’ve now prepared your index structure, event implementation, and search implementation. Advanced Personalization can now build a full view of each user’s journey and personalize their search results. You’re ready to configure Advanced Personalization indices without additional code changes.
Last modified on September 16, 2026