Site logo

Archived topic

Changed source code after saving in wp_head hook

3 replies · Started by Thomas on May 25, 2019

Viewing posts 1–4 of 4

--------------------Original--------------------

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-xxxxxxx-x"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-xxxxxxx-x');
</script>

---------After saving from the source code---------

<script type="text/plain" class="cmplz-script" async src="https://www.googletagmanager.com/gtag/js?id=UA-xxxxxxx-x"></script>
<script type="f10ba3f4af42d23e88a377c6-text/javascript">
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-xxxxxxx-x');
</script>

Thank you, it was a cookie notice plugin.

Glad to be of help.

This archived topic is closed to new replies.