How can I find and remove leftover Hotjar scripts from my website?

Hi,

I used to have hotjar on my site and have since deleted it. After going through my coverage on dev tools, I see that my site has a few hotjar scripts still coded to my site. How do I find them and remove them?

The following scripts/codes need to be removed

  • box-5e66f98b4ee957db209dc6f63e3d59dd.html

  • hotjar-2622959.js?sv=7

  • modules.fb61877307ee2cbdddd8.js

My site is www.feedmomandme.com

Thanks!

Hi @Mavi90

Please follow these steps:

  • Step 1: Open the Shopify admin page

  • Step 2: Click online store/theme/edit code

A page like this will appear:

Step 3: Enter the files you want to search in this box, for example, “hotjar”

If there are files, you will remove them.

In case there is no such file found, there is another way. Please try the following steps:

Step 1: Download theme: click Download theme file

Step 2: The theme file will be sent to your email, then download the theme

Step 3: Extract the theme file

Step 4: Download a search engine like visual studio code

https://visualstudio.microsoft.com/downloads/

Step 5: Open visual studio code, then open the folder you just unzipped

  • Click on the file

  • Open folder

Step 6: Copy/paste the files you want to search here. Related files will appear.

Then check where the scripts are located and copy the file name into the theme to find the file containing that code.

Then open that file and copy the script & press Ctrl + F and Ctrl + V to find where the code is in the file, and delete it.

If you can’t find it, you should contact Hotjar or us for support.

Thanks for the response! I tried searching for it through Shopify’s edit code, and nada. I downloaded my theme and opened it in VS Code but all the code isn’t readable. Is there and extension I need?

I figured it out! When I search hotjar, nothing comes up in VS code. In dev tools, it says otherwise.

I figured it out!! Hotjar was connecting to my google tag manager

Is there a way to stop Hotjar from connecting to Google tag manager?