All things Shopify and commerce
I have code txt visible on my website and can not work out how to hide it from the public! I believe it happened when I installed google tag. I want to keep the google tag installed just not to show on my website.
See below photo's of the top and bottom of my website showing the code displayed. Please help?!
Solved! Go to the solution
This is an accepted solution.
Hi @Jode81
I found the reason this is because Google Tag is outside the script tag in code.
Current -->
<!-- Google tag (gtag.js) -->
gtag('config', 'AW-11033445427');
Change this to
<script>
<!-- Google tag (gtag.js) -->
gtag('config', 'AW-11033445427');
</script>
This will solve the issue.
Hi @Jode81 ,
This happen if there is issue in rendering of page so code is not properly rendered, could you please share your store url so I can check.
Thanks
Can you share the link to your website please? This would make it a little bit easier for me to see what the problem is and guide you in the right direction.
This is an accepted solution.
Hi @Jode81
I found the reason this is because Google Tag is outside the script tag in code.
Current -->
<!-- Google tag (gtag.js) -->
gtag('config', 'AW-11033445427');
Change this to
<script>
<!-- Google tag (gtag.js) -->
gtag('config', 'AW-11033445427');
</script>
This will solve the issue.
Hi,
Thankyou so much for your help, this solved my issue!!
User | RANK |
---|---|
36 | |
25 | |
23 | |
16 | |
14 |
Explore the 30-30-30 rule, a dynamic social media strategy for new businesses. Learn how t...
By Trevor Sep 20, 2023Discover how to leverage the often overlooked footer of your ecommerce site to gain custom...
By Skye Sep 15, 2023In this blog, we’ll be shining a light on Shopify Partners, Experts, and Affiliates. Who a...
By Imogen Sep 13, 2023