Magento And Hotjar: there was a time when the CMS and the mouse tracking tool didn't really go hand in hand. Hotjar, a typical example of a so-called 'third-party iframe', wasn't doing what it was supposed to do due to a bug in Magento 2.2.3, as Hotjar reported in January 2019. Not exactly conducive to a good combination between Magento and Hotjar, then. Many years have passed since then, and it now seems possible to unite the duo. How do you do that? Best4u explains it for you on this page.
Step 1: Install Mageplaza
To effectively combine Magento and Hotjar, start by installing Mageplaza. This is a Magento tool that makes it easier to run extensions. Downloading Mageplaza is completely free and has already been downloaded millions of times worldwide. Once this is done, locate the Google Tag Manager extension. Using this extension, you receive a container ID, also known as a GTM code. Continue this step by accessing the Tag Manager settings within the Magento environment. Here, enter the GTM code and agree to the use of the module.
Create Account
The next step towards good interaction between Magento and Hotjar is creating an account in Hotjar. Choose between the basic, professional, or business account based on your needs.
Add tracking code
Once you are finished with that, it is time to implement the Hotjar tracking code in the header of your website. Call up the back-end and paste the script where the tag begins. You have now laid the foundation for a good combination of Magento and Hotjar.
Start recording
Once you have completed all the steps, you can start recording visitor behavior with Magento and Hotjar. However, be sure to determine the size of your recording in your settings. You should adjust this based on the number of visitors to your website. For larger webshops, use 2000 or more; smaller domains will find 1000 sufficient.