Mangled gtag code in Script Blocking Head field
-
I’m trying adding Google Analytics (gtag) code in Head field for script blocking, but the URL keeps getting having
<a>
tags put around it.When I save it, this:
<!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXX-1"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-XXXXXXXX-1'); </script>
Becomes this:
<!-- Global site tag (gtag.js) - Google Analytics --> <a href="https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXX-1">https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXX-1</a> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-XXXXXXXX-1'); </script>
I’m admin on the site, so it shouldn’t be a permissions thing. What’s going on here?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Mangled gtag code in Script Blocking Head field’ is closed to new replies.