Shopping cart

How to configure Hotjar Tracking Code on Magento 2

How to configure Hotjar Tracking Code

Hotjar is a powerful tool that reveals the user’s voice and behavior. It is a pity if you have not heard about Hotjar. This tool not only allows you to create a heat map, but also displays everything you can see, such as scroll depth, create channels, and ask visitors questions. In addition, it also allows you to view recordings of visits to your page. These are great features of Hotjar.

What’s more, Hotjar also helps improve the user experience and significantly increase conversion rates for your e-commerce store.

In this post, we will help you know how to configure Hotjar Tracking Code on Magento 2.

How to configure Hotjar Tracking Code on Magento 2

To configure Hotjar Tracking Code

Step 1: Install Mageplaza Google Tag Manager

Get Container ID for setting Magento


Setup in Magento

  • Login to Magento Admin > Mageplaza > Google Tag Manager > Settings


  • Choose Yes to enable the module.
  • Enter Container ID from Google into Google Tag ID field.

Step 2: Generate an Account

  • Hotjar includes three options when generating an account: Basic, Pro and Business. In that, Basic is a limited package and doesn’t include many useful features like Pro and Business packages. In particular, you have 15 days to try it before purchasing this packages.

Imgur Imgur

Step 3: Install your Hotjar Tracking Code

  • In this step, you need to copy and paste the tracking code which is created by Hotjar into the header of your website. You open the web that you will track in another browser window. Now you can completely verify the installation of the code.


Step 4: Start tracking your site

  • Heatmaps: To choose a snapshot size, it depends on your website’s traffic volume. For low traffic website, you should choose 1000 size because it will take some time to reach 1000 visitors. However, if your website has high traffic, you should choose the size of the Pro or Business Snapshot.


As soon as you reach the selected snapshot size, you can go back and evaluate the completed heatmap. This heatmap can be displayed by clicking, moving, and scrolling behavior.

It comes to the end of tutorial: How to configure Hotjar Tracking Code on Magento 2.

Meet Mageplaza at Meet Magento Asia

Please leave comments if you have any questions, feedbacks.

Comments for How to configure Hotjar Tracking Code on Magento 2

You also may like these Magento 2 Extensions

One Step Checkout

111 reviews

Layered Navigation

59 reviews

Gift Card

6 reviews

Reward Points

4 reviews


12 reviews

Shop By Brand

16 reviews

People also searched for:

  • magento 2
  • hotjar tracking code