How to hide HTML tracking code


Ive added hotjar to my site for user tracking. However, the custom HTML shows up at the top for end user, how can we hide this for the end user whilst still enabling tracking

This solution may work for you Hide Block but remain functionality

Please provide us with the example of the issue


we are trying to include hotjar tracking for user analytics. However when I put the custom tracking code, it shows up on the front end

I managed to change the font size to 0 but this isn’t ideal

Is there a way to add tracking code to ALL pages without it showing up on front end

For example, you can wrap your code with the div with the hidden class

<div class="hidden">
... your code here...