A/B testing FAQ
On this page
- 1. Can I run an A/B/C test? In other words, can I run two A/B tests on the same index at the same time?
- 2. Can I A/B test different user interface elements such as fonts, styles, buttons, and language?
- 3. How long do I need to run a test for?
- 4. How should I determine my traffic split?
- 5. How can I see the in-depth analytics for each variant?
- 6. How can I tell which variant was used for a particular search?
- 7. Can I force a variant for certain searches?
- 8. Can I use metrics other than clicks and conversion?
- 9. I selected an x/y split, but that isn’t reflected in the searches/users for each variant. Why?
- 10. How are user requests split between variants?
- 11. Can I extend an A/B test?
Can I run an A/B/C test? In other words, can I run two A/B tests on the same index at the same time?
You can’t have multiple tests running on the same index at the same time. But, you can run more than one A/B test simultaneously if the indices are different for each A/B test.
Can I A/B test different user interface elements such as fonts, styles, buttons, and language?
Use A/B testing to analyze relevance configuration changes and to measure record-specific data. It’s not intended to test user interface elements.
How long do I need to run a test for?
The most important element for accurate A/B test results is that you run your tests over two full business cycles at least, to account for seasonality. For example, if you see a predictable conversion trend over a week, you should set the test to last at least two weeks. A shorter period might not include seasonality effects and end with biased results.
Though not recommended, you can always stop a test early.
Low-usage sites should run their tests longer than high-usage websites.
How should I determine my traffic split?
There is no set rule, but a 50/50 split between both variants is a good default. If you’re testing a non-standard variant with a sizeable difference from your standard, you can start with less traffic on the non-standard variant, but it takes longer to converge.
How can I see the in-depth analytics for each variant?
Algolia automatically adds tags to A/B test indexes. In the A/B test tab in your dashboard, click on the Analytics icon in the same row as your listed index. The icon automatically redirects you to the Analytics tab with the appropriate settings with the
analyticsTags applied. The display shows detailed analytics for your variant.
How can I tell which variant was used for a particular search?
abTestVariantID field in the JSON response of any search run with an A/B test enabled indicates which variant was used for a particular search. For this, set
true in the InstantSearch API.
Enabling this setting introduces performance penalties.
Can I force a variant for certain searches?
No, you can’t force a variant for a search.
Can I use metrics other than clicks and conversion?
While Algolia provides click-through rate and conversion rate as default metrics, all searches impacted by an A/B test return analytics for all exposed metrics at the variant level. You could also conduct further analysis based on your own metrics and business intelligence.
I selected an x/y split, but that isn’t reflected in the searches/users for each variant. Why?
If you selected an x/y split and it isn’t reflected in the searches or users for each variant, investigate further. For example:
- Your variant search may be performing much worse than expected, and your users are struggling to find things.
- Unexpected traffic, like a bot, may be affecting the A/B test. Make sure you turn off A/B testing before looking for such unexpected traffic by setting
Outliers will be automatically removed from the A/B test results.
How are user requests split between variants?
Algolia splits traffic based on the
userToken, or the user’s IP address as a fallback.
To ensure that the same user sees the same variant for the entire duration of an A/B test, you need to use the same
userToken for the same user.
If you configured a 50/50 split and everything is working correctly, all traffic is coming from external users, and no bots are interfering with your site, you may still see discrepancies between the number of users assigned to variant A and B. This happens, because users are allocated to variant A and B randomly. The probability of a user being allocated to variant B is no more likely, just because the previous user was allocated to variant A (Gambler’s fallacy). This can lead to proportionally small differences that aren’t statistically significant.
Can I extend an A/B test?
You can’t edit or extend an A/B test once it has launched. You also can’t change the name or other values after launch.