Go to Hotjar.com to copy the code from the Hotjar admin.
Log into your LightCMS website.
Go to your Content page
Click on the Page Settings cogwheel on the right.
Click the Advanced tab.
Scroll down to the HTML head section.
Paste the Hotjar Tracking Code exactly as you copied it in this field.
Click Save my changes at the bottom.
Your Hotjar Tracking Code is now installed.
Inserting the correct Tracking Code
Currently, you will need to edit your Tracking Code for it to work with LightCMS. Replace the second to last line in your Tracking Code as follows:
Replace:
})(window,document,'//static.hotjar.com/c/hotjar-','.js?sv=');
With:
})(window,document,'//static.hotjar.com/c/hotjar-','.'+'js?sv=');
Your Hotjar Tracking Code is now installed.
Clear Browser Cache
To ensure that the script is working correctly, clear your browser cache before returning to the store to test the script.
Once you have added the Hotjar Tracking Code to your site, you will need to wait a few minutes for Hotjar to check if it is installed correctly. This usually happens the moment your site is loaded with the Hotjar code on it (you can visit the page yourself to speed it up). Once Hotjar has detected the Tracking Code on your site, the Site Dashboard will show a notice like the one below:
Keep Tracking Code in mind when making design changes
If after you install the Tracking Code, your website undergoes a major design change check to ensure your Tracking Code is still installed.
Once Your Tracking Code is Installed
You can start using any of Hotjar's features: Heatmaps, Recordings, Surveys, and Incoming Feedback. Have a look at the guides below to get started.
- Creating Your First Heatmap with Snapshots
- How to Start Continuous Heatmaps
- How to Start Recordings on Basic Plans
- How to Start Continuous Recordings
- Creating Your First Survey
- Starting to use Incoming Feedback
Next Steps
- Add team members to your organization.
- Add sites to your organization.
- Understand the difference between Accounts, Organizations, and Sites.
- Use Hotjar for your clients.