Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1226491
    koosang153
    Participant

    I inserted google analytics script to customize>custom>Edit global javascript..but it seems the script is not being read.

    Please let me know how to fix!

    I inserted script like to javascript section as following:

    <script>
    (function(i,s,o,g,r,a,m){i[‘GoogleAnalyticsObject’]=r;i[r]=i[r]||function(){
    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
    m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,’script’,’https://www.google-analytics.com/analytics.js&#8217;,’ga’);

    ga(‘create’, ‘UA-63701800-3’, ‘auto’);
    ga(‘send’, ‘pageview’);

    </script>

    #1226492
    Thai
    Moderator

    Hi There,

    The Customizer > Custom > Global Javascript doesn’t accept the <script> tag.

    So please try with this extension instead: https://community.theme.co/kb/extension-google-analytics/.

    Hope it helps 🙂

  • <script> jQuery(function($){ $("#no-reply-1226491 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>