Set up click analytics
To enable Algolia A/B testing, you need to send click and conversion events. The Revenue Analytics feature includes sendingpurchase and addToCart conversion events.
This feature isn’t available on every plan.
Refer to your pricing plan to see if it’s included.
Add unique user identifiers to your searches
Make sure every search is associated with a unique user identifier. This serves two purposes:- Guarantees consistent variant assignment. Algolia assigns each new user to a variant based on their user ID. This assignment is stable as long as the same user ID is provided for subsequent search sessions.
- Ensures distribution integrity. Users remain in their assigned variant, which helps ensure reliable test results.
userToken parameter,
or with the X-Algolia-UserToken request header.