[Support request] Changed source code after saving in wp_head hook

Home Forums Support [Support request] Changed source code after saving in wp_head hook

Home Forums Support Changed source code after saving in wp_head hook

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #910875
    Thomas

    ——————–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>
    #911119
    David
    Staff
    Customer Support

    Hi there,

    GP won’t have made that change, are you using a compliance plugin – i found this support topic here that shows a similar problem:

    https://wordpress.org/support/topic/javascript-error-for-tinymce/

    #911654
    Thomas

    Thank you, it was a cookie notice plugin.

    #911906
    David
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.