WordPress.org

Ready to get started?Download WordPress

Forums

Google Analytics for WordPress
Analytics code placed two times in same page (1 post)

  1. fabthi
    Member
    Posted 1 year ago #

    Google support warned me that I have two portions for Analytics code placed in the same page and that I should remove one.
    Url is http:http://canonpowershotg12review.org
    How can I remove it and which of the two?
    Below are the two codes:
    1)
    <script type="text/javascript">//<![CDATA[
    // Google Analytics for WordPress by Yoast v4.2.7 | http://yoast.com/wordpress/google-analytics/
    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-34313591-1']);
    _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>

    2)
    <script type="text/javascript">

    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-34313591-1']);
    _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>

    http://wordpress.org/extend/plugins/google-analytics-for-wordpress/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.