Wait 10 minutes before trying to verify
The most common reason why a Tracking Code isn't verifying is that Hotjar hasn't recognized it has been installed on your site. Wait 10 minutes for everything to update, then try verifying the installation again.
To verify that the Tracking Code is installed correctly, you can check if Hotjar requests are being sent from your site and that these requests are not being blocked by Content Security Policy errors.
- How do I see if Hotjar requests are being sent from my website?
- How do I check if requests are blocked due to a Content Security Policy error?
How do I see if Hotjar requests are being sent from my website?
Open your browser’s Developer Tools and click on the Network tab.
- To do this in Chrome, on the menu bar click View > Developer > Developer Tools
- To do this in Firefox, on the menu bar click Tools > Browser Tools > Web Developer Tools
With the Developer Tools open, select the Network tab.
Type hotjar in the Filter search field to only show Hotjar’s requests.
Visit your website, then refresh the page and wait for it to finish loading.
After following the steps above, check the Network tab for the following:
-
You see requests and only one Hotjar Site ID appears among the requests
It looks like your Hotjar tracking code is correctly installed and you should be able to confirm this by following our How to Verify Hotjar is Installed article.
-
You see requests and more than one Hotjar Site ID appearing
If you see more than one Site ID in the Network tab, this means that more than one Hotjar Tracking Code is installed. This will cause issues with tracking. To fix this, you will want to remove all Tracking Codes and then re-install only the correct one.
For more information on how to remove a Hotjar Tracking Code from your site, check out our article: How to Uninstall your Hotjar Tracking Code.
Once both Tracking Codes are removed, you can then get the correct Tracking Code for your site on the Sites & Organizations page by clicking on the Tracking Code button next to the site URL. Using this Tracking Code, you can follow the steps on How to Install your Hotjar Tracking Code.
-
You do not see any requests
If you don't see any requests, this means that the Hotjar tracking code was not successfully installed. To fix this, follow the instructions on How to Install your Hotjar Tracking Code.
Some text editors will change the Tracking Code
If you paste the Tracking Code into a text editor first, some programs will alter the syntax of the Tracking Code slightly. This will result in a failed installation.
To avoid this issue, we recommend that you copy the Tracking Code directly from within Hotjar or in the Sites & Organizations page by clicking on the 'Tracking Code' button next to the site URL.
How do I check if requests are blocked due to a Content Security Policy error?
Open your browser’s Developer Tools on the Console tab.
- To do this in Chrome, on the menu bar click View > Developer > JavaScript Console
- To do this in Firefox, on the menu bar click Tools > Browser Tools > Browser Console
Visit your website, then refresh the page and wait for it to finish loading.
Check for any errors on the Console tab that mention a Content Security Policy.
If there is a Content Security Policy issue, you’ll see something similar to the error in the image below (the wording may differ slightly, but Content Security Policy in relation to Hotjar will be mentioned).
To fix this issue, follow the steps in our Content Security Policies article.
If your Tracking Code is still not working after running through the above, reach out to our Support team by clicking the Contact us button below.