Although Hotjar does not have a A/B testing feature, we do enable you to monitor your pre-existing A/B test. The three set up options for keeping track of each of your variations are:
- Tracking Variations with Different URLs
- Tracking Variations on the Same URL
Tracking Variations with Different URLs
With this set up, Hotjar is able to record Heatmaps for the A/B test if the URL is different for each variation.
Two separate Heatmaps should be created, in this case, to track both pages. You can view our Heatmap Guide to learn how to setup Heatmaps.
Tracking Variations on the Same URL
If your A/B test loads different content randomly each time a new visitor lands on the page, Hotjar will be unable to record data for each variation separately.
To make Hotjar take a screenshot of a particular variation, you can use the regular expression option.
In the example above, Hotjar will collect data from all visitors who visit www.domain.com, but will display the screenshot of www.domain.com/?variation=B in the Heatmap report.