Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1242360
    bjensen_dr
    Participant

    My Google Analytics has seemed to zero out and stopped tracking my site, which correlates very closely to relaunching the site with X theme. I used the “Add On” Google Analytics plugin and put in my code and it was showing up in the source of the pages so I thought all was good.

    I just moved the code to the Customizer javascript area and again the code is there, but now if the footer.

    I am not a coder but I did notice that there seemed to be two script tags the start the expression. Could that be causing the issue? I have some other tracking codes that I am using that also don’t seem to be working.

    —– source code from footer of my page.

    <script id=”x-customizer-js”>
    <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’, ‘xxxxxxxxxx’, ‘auto’);
    ga(‘send’, ‘pageview’);

    </script>

    #1242414
    Darshana
    Moderator

    Hi there,

    Thanks for writing in! Please provide us with the URL to your page along with the code that you have tried to put into your site, so that we can assist you.

    By the way, if you want to add it into your Customizer, Custom > JavaScript section, remove the script tags from your code, for example <script> </script>

    Thanks!

    #1247593
    bjensen_dr
    Participant

    There was some duplicative code causing issues. This is resolved, thank you.

    #1247614
    Nico
    Moderator

    Happy to hear that.

    Feel free to ask us again.

    Thanks.

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