Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1256093
    Kevin S
    Participant

    Hi there

    How can I hide the G.A. code?
    See attachement, it is shown on every page?.

    Can I hide the + in right corner?

    Thanks for help!

    Greetings Kevin

    #1256113
    Christian
    Moderator

    Hey Kevin,

    Not sure what you used why it displayed in your header. Please remove it and install and use our Google Analytics extension. See https://community.theme.co/kb/extension-google-analytics/ for instructions.

    Thanks.

    #1256150
    Kevin S
    Participant

    Hi Christian

    I use the Google Analytics extension of X-addon. See attachment.
    Header or footer change doesn’t help.

    Thanks.

    #1256193
    Thai
    Moderator

    Hi There,

    The Google Analytic code looks like this:

    (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','ga');
    
    ga('create', 'UA-83911122-1', 'auto');
    ga('send', 'pageview');

    Hope it helps 🙂

    #1256209
    Kevin S
    Participant

    Thanks! Super!

    <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-43683149-1’, ‘auto’);
    ga(‘send’, ‘pageview’);

    </script>

    #1256226
    Thai
    Moderator

    Hi Kevin,

    Please remove the script tag(<script> & </script>).

    Regards!

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