Why does site kit add disabling code at the top?
-
I’ve just re-installed Site Kit to this site and connected to both Analytics and Tag Manager. When I look at the source I see, right at the top under
<head>
some code that to me seem to disable, instead of enable, google tag manager:<script type="text/javascript"> window["ga-disable-UA-myUAId"] = true; </script> <script type="text/javascript"> window["ga-disable-G-myGA4Id"] = true; </script>
Many lines below I see the Tag Manager code snippet that I expected to see.
<!-- Google Tag Manager --> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','myTagId');</script> <!-- End Google Tag Manager -->
Have I misunderstood something, or have Site Kit actually disabled any Tag Manager functionality by the first part? I am a bit confused.
Best regards,
MikaelThe page I need help with: [log in to see the link]
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
- The topic ‘Why does site kit add disabling code at the top?’ is closed to new replies.