WordPress.org

Support

Support » Plugins and Hacks » Duplicate tracking code

Duplicate tracking code

  • CuriosityKilledtheCubicle
    Member

    @curiositykilledthecubicle

    I’m told I may have a duplicate Google Analytics tracking code on my site. I’m told this because my bounce rate has always been around 1% to 1.6%.

    I have both Google Analytics plugin installed and the Google Analytics Dashboard for WordPress plugin installed. I’ve researched that the GA Dashboard doesn’t track though.

    I had my theme support look at my source code and they said they saw a duplicate code here:

    var _gaq = _gaq || [];
    _gaq.push([‘_setAccount’, ‘UA-0000000-0’]);
    _gaq.push([‘_trackPageview’]);
    (function() {
    var ga = document.createElement(‘script’); ga.type = ‘text/javascript’; ga.async = true;
    ga.src = (‘https:’ == document.location.protocol ? ‘https://ssl’ : ‘http://www’) + ‘.google-analytics.com/ga.js’;
    var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(ga, s);
    })();
    </script>

    <!– BEGIN GADWP v4.2.21 Classic Tracking – http://deconf.com/google-analytics-dashboard-wordpress/ –>
    <script type=”text/javascript”>
    var _gaq = _gaq || [];
    _gaq.push([‘_setAccount’, ‘UA-41212159-2’]);
    _gaq.push([‘_trackPageview’]);

    (function() {
    var ga = document.createElement(‘script’); ga.type = ‘text/javascript’; ga.async = true;
    ga.src = (‘https:’ == document.location.protocol ? ‘https://ssl’ : ‘http://www’) + ‘.google-analytics.com/ga.js’;
    var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(ga, s);
    })();
    </script>
    <!– END GADWP Classic Tracking –>

    Can someone help me? I’m not HTML savvy and I really need to get this fixed as I think it’s affecting my Adsense account. Thank you very much.

    My site is http://www.thekitchensnob.com

    Deanna

    https://wordpress.org/plugins/googleanalytics/

  • The topic ‘Duplicate tracking code’ is closed to new replies.