What gets measured gets improved, a universal truth. In Shopify, you can measure and improve your performance using Hotjar.
Hotjar provides real-time insights into user behavior on your website. In this article, you will learn how to set up Hotjar Tracking in Shopify.
First, let’s get an idea about Hotjar for Shopify
Hotjar for Shopify: What is it & Key Benefits
Hotjar is a robust analytical tool that helps Shopify store owners understand visually how users behave on their website.
Unlike traditional methods, which only show numbers, Hotjar integration gives visual insights like heatmaps, session recordings, feedback widgets, and surveys.
This helps you to understand not only what your users are doing but why they are doing it.

Key benefits for the Shopify store owner:
- Reduce bounce rates by adjusting CTAs, layout, and content based on real-time engagement data
- Improve the shopping experience by knowing what’s frustrating your user and fixing it fast
- Discover the customer’s reasons for abandoning the purchase and remove those hurdles
- Use data to make clear, actionable decisions, no guesswork needed
How to Set up Hotjar Tracking in Shopify?
To install Hotjar on Shopify, follow this 3-step, straightforward process:
Step 1: Copy the Hotjar Tracking Code
Step 2: Head to theme.liquid. in Shopify
Step 3: Paste the Code & Save
Step 1: Copy the Hotjar Tracking Code
Start by signing in to your Hotjar account or creating one if you don’t have one.
Then, go to Install tracking code and select Add code manually in the installation process.

Now, you will find the Hotjar tracking code on the dashboard. Copy it and head to Shopify.

Step 2: Head to theme.liquid.in Shopify
Now, from your Shopify admin panel, head to Online Stores> Themes > (…) Three dots > Edit code.

In the left sidebar, within the Layout folder, click theme.liquid

Step 3: Paste the Code & Save
Scroll down till you find the </head> tag and paste the Hotjar Tracking code just above it and Save the changes.

After saving the changes, you will see a successful message in your Shopify dashboard.
Now, head to Hotjar and click Verify Installation to check if it is added correctly.
That’s it, you have successfully installed Hotjar in your Shopify store.
Other Resources
Following the above-mentioned method, you will be able to add Hotjar to Shopify. Here are some other helpful resources to add other analytical tools to your Shopify store: