Duplicate / Nesting Code
-
Hi,
I have a client who has nested / duplicate GA code from this plugin;
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-xxxxxxxxx-1"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-xxxxxxxxx-1', <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-xxxxxxxxx-1"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-xxxxxxxxx-1'); </script>); </script>
They have gtag.js enabled and are using Custom Tracker Objects. Is it necessary to use both or is this the cause of the duplication?
Thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Duplicate / Nesting Code’ is closed to new replies.