When A/B testing, you may wish to run Recordings to see the behavior of your users on different variations of your site.
Learn more about the differences between each of our Hotjar Plans.
To automatically tag the recordings, add the following code to page variation(s) that you'd like to tag, replacing ‘Homepage Test A’ with the name of each of your test variations.
hj('tagRecording', ['Homepage Test A']);
If you're comparing two variants, be sure each page has a separate tag. An example of this would having the trigger 'Homepage Test A' on variant A and 'Homepage Test B' on variant B.