Skip to main content
After preparing your index, set up the events required for Advanced Personalization. To enable Advanced Personalization, send events that reflect how users interact with your website or app. For an overview of the available implementation options, see Choose how to send events.
This feature isn’t available on every plan. Refer to your pricing plan to see if it’s included.

Attach user tokens to events

Advanced Personalization builds user profiles from click and conversion events identified by the userToken property. To build and retrieve user profiles:
  • Attach a user token to each event so Algolia can associate events with the same user over time.
  • Persist anonymous user tokens and authenticated user tokens across sessions so you can retrieve user profiles at search time.
If you use Algolia’s UI libraries, see Set the user token in InstantSearch and Autocomplete. If you send events with an API client, use the Search Insights library’s setUserToken method. You can either set a global user token or send a user token with an individual event:
JavaScript
// Set a global user token
aa('setUserToken', 'user-1');

// Send a click event associated with "user-1"
aa('clickedObjectIDs', {
    index: 'movies',
    eventName: 'Added to favorite',
    objectIDs: ['movieID1'],
});
For more information, see Distinguish users for analytics.

Event properties

To contribute to Advanced Personalization, events must reference records in an existing index.
  • Link events to an existing index. Algolia ignores events whose objectID values don’t match records in the index when computing user profiles.
  • Events without a queryID still contribute to personalization but Algolia doesn’t report them in search analytics.
  • You can send events in batches but each event timestamp should reflect when you collected the event.

Send conversion events with subtypes

Conversion events help enrich user profiles for Advanced Personalization. When users convert, send a conversion event with the appropriate subtype:

Check your events implementation

  1. Visit your website and interact with it to generate events.
  2. In the Algolia dashboard, check the Events debugger to confirm that Algolia receives your events.

See also

Last modified on April 23, 2026