Don’t add gtag to JS file?
-
Hi there,
I have enabled
Also aggregate inline JS?
, and it seems to be working fine. Cache hasn’t blown up and the page loads fine.However, it is placing my GTAG tracking info into the JS file:
<!--noptimize--> <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-57282086-6"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-57282086-6', {'site_speed_sample_rate': 100}); </script> <!--noptimize-->
I have tried using
gtag.js
andanalytics.js
in order to prevent this, but it doesn’t work.Odd thing is that it shows up fine on the mobile version of the site: https://imgur.com/a/fXVW9tn but not on the desktop version: https://imgur.com/a/wiU2NqK
How can I fix this?
Thanks!
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Don’t add gtag to JS file?’ is closed to new replies.