Hotjar is currently co-developing an integration with Optimizely, to allow for seamless integration between the two platforms so you can benefit from both.
The first part of this integration, which works with Recordings in Optimizely X has been released; in addition, you can use Optimizely and Hotjar together to start receiving additional user analytics and feedback aligned with your Optimizely experiments.
The integration only works for Recordings and Feedback tools
To see improvements we are working on next, check out our Product Roadmap. Every quarter, our Product team reviews, adds and prioritizes what to build next.
Recordings integration for Optimizely X
The Optimizely X integration for Hotjar Business adds support for Optimizely experiment tagging on visitor Recordings. This is a one-click integration that can be enabled via the Integrations page in Settings.
Head to the Settings in your Hotjar dashboard and select Integrations.
Select the site you want to activate the integration on.
Check the Optimizely box.
Place a tick next to “Automatically tag recordings with the active experiment.” and the integration will be enabled."
When you do, the green checkmark and the label Active will appear.
Rules and Restrictions
The tags can be any alphanumeric value you like (including spaces), e.g. 'Checkout Page'. Anyone Recording can have no more than 20 tags - any additional tags will be ignored. Manual tagging within the Recording viewer will be truncated to 50 characters, however, Automatic tagging done with JavaScript will fail to be tagged if exceeding 50 characters.
Unmask experiment names in Optimizely.
You need to make a small change to your Optimizely configuration. By default, Optimizely masks the names of your experiments/tests so they are not visible to third parties. For Hotjar to tag recordings with descriptive names, they must be unmasked.
You can find the option in Optimizely Settings - Snippet Settings.
Once activated on your site, future Recordings of visitors will be automatically tagged when the visitor is assigned to an Optimizely experiment. You can then see the Recordings of users who are part of any given Optimizely test.
Go to your Optimizely X interface and start the test. Users in any active test will have their Recordings automatically tagged with their experiment.
You will now be able to filter Recordings on Hotjar based on the variations you tagged.
Show a Survey in a test variation
If you wish to run a survey or collect a list of user testers on a specific variation you're testing, you can use JavaScript triggers, only available on Plus and Business plans.
Setup your Survey with triggers.
Replace the text optimizely_variation_a with any string that describes the variation you are testing. You can do this for every variation - ensure that you use a different tag name for each variation.
Click on < edit code > in the Optimizely variation you wish to tag.
The < edit code > is on the bottom right of the text editor.
Enter the JavaScript needed to trigger the widget.
window.hj=window.hj||function(){(hj.q=hj.q||[]).push(arguments);};
hj('trigger', 'optimizely_variation_a');
The widget should now be triggered on the variation which contains this code. The widget will still use the trigger behavior rules specified when the widget was first created.