Hotjar co-developed an integration with Optimizely to allow for seamless integration between the two platforms.
This integration works with Recordings in Optimizely X and allows you to use Optimizely and Hotjar together to receive 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 Observe Business and Scale adds support for Optimizely experiment events on user Recordings. This is a one-click integration that can be enabled via the Integrations page in Settings.
Click on Settings and select Integrations.
Select the site you want to activate the integration on.
Check the Optimizely box.
Place a tick next to “Automatically mark recordings with the active experiment.” and the integration will be enabled."
When it has been successfully enabled, the green checkmark and the label Active will appear. Hotjar will then display Events based on the Optimizely experiment detected.
Rules and Restrictions
The events can be any alphanumeric value you like (including spaces), e.g. 'Checkout Page', under 50 characters. Any one Recording can have no more than 20 events. If a single Recording goes over 20 events, any additional events will be ignored.
Unmask experiment names in Optimizely.
By default, Optimizely masks the names of your experiments/tests so they are not visible to third parties. For Hotjar to apply events with descriptive names to recordings, they must be unmasked.
You can find the option in Optimizely Settings - Snippet Settings.
Once activated on your site, future Recordings of users will be automatically associated with an event when the user 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 associated with their experiment Event.
You will now be able to filter Hotjar recordings based on the variations you referenced in the Events.
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 that you're testing, you can use Hotjar Events.
Setup your Survey with events.
When you get to the targeting step, replace the text viewed_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 event 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 event code needed to trigger the survey.
window.hj=window.hj||function(){(hj.q=hj.q||[]).push(arguments);};
hj('event', 'viewed_optimizely_variation_a');
The survey should now be triggered on the variation which contains this code. The survey will still use the behavior rules specified when the survey was first created.