Code snippet above the header

Hi there,
I’m live testing this web site www.healthsurround.com and there is a code snippet above the header in some browsers. I think it’s a piece of JavaScript of Google Analytics, but I’m not sure.
1- Do you have any idea about what it is that?
2- How can I hide that snippet?
I attach the screenshot, but you can visualize that on the web directly for a while.

Thank you very much in advance,

Hiroki

Hello Hiroki,

Thanks for asking. :slight_smile:

I checked your website and I don’t see the code showing up. I suggest you to please clear cache and try loading again.

Thanks.

Oh, thank you Prasant. Actually, I made some research and figured out myself how to fix the problem. It was my mistake!
I put the entire google analytics code in the Meta Tag box (in the Google Analytics Plugin bundled with Pro), which is optional. I noticed that it gets somehow modified or corrupted. And the modified/corrupted snippet appeared above the header (window.datalayer etc.)
I realized that because I copied the JS snippet from my Google Analytics account and pasted it again in the Google Analytics plugin and observed this behaviour (originated from my error).
Then I only left the Tracking ID field filled with the Tracking ID itself and now everything works!
Thank you again for double checking!

Hey @hiroki_moriguchi,

We are just glad that you have figured it out a way to correct the said issue.
Thanks for letting us know!

Best Regards.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.