WordPress.org

Support

Support » Plugins and Hacks » Yoast SEO » [Resolved] Uninstalled Yoast and Google Analytics still in my source code

[Resolved] Uninstalled Yoast and Google Analytics still in my source code

  • A few months ago I installed the Yoast plugin on my site, flouronmyface.com. A few days later I uninstalled it. When I view my source code I find this

    <script type=”text/javascript”>//<![CDATA[
    // Google Analytics for WordPress by Yoast v4.3.3 | http://yoast.com/wordpress/google-analytics/
    var _gaq = _gaq || [];
    _gaq.push([‘_setAccount’, ‘UA-XXXXXXXXXX ‘]);
    _gaq.push([‘_trackPageview’]);

    I have no idea how to mess with any coding on my site but need to figure out how to remove this leftover code because now I my GA code twice. I have Google Analytics for WordPress installed.

    http://wordpress.org/extend/plugins/wordpress-seo/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Joost de Valk

    @joostdevalk

    WordPress SEO doesn’t add Google Analytics, Google Analytics for WordPress does, that’s also a plugin by me, and it outputs the exact code you have above. So I don’t think this is really a problem, rather exactly the behavior you need? 🙂

    If not, please share your URL so we can see what your problem really is.

    Hi Joost

    Thank you for the help. I do have Google Analytics for WordPress installed so that needs to stay. Yoast.com showing up in the code is a little confusing.
    My site is flouronmyface.com

    I have been told by someone that my GA code is installed twice. My bounce rate is very low. If you could take a look and let me know what I need to do to get rid of the second code I would appreciate it. Thank you!

    Hi. I think I’m having the same problem. My bounce rate is ridiculously low…<3%. I’m showing the same code but I don’t know how to fix it. I’ve read through every forum similar to my problem, but I’m still a little confused. I’ve tried turning on/off every plug in, in every combination I can think of to delete the bottom code, but I’m not sure exactly which code is causing the problem. Can I just delete a certain portion of the code? Please help!

    I’m using Google Analytics for WordPress.

    Website: http://skitheglobe.com/

    Here’s the code:

    <script type=”text/javascript”>//<![CDATA[
    // Google Analytics for WordPress by Yoast v4.3.3 | http://yoast.com/wordpress/google-analytics/
    var _gaq = _gaq || [];
    _gaq.push([‘_setAccount’, ‘UA-38165153-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>

    I can confirm that, I have the two plugins, I did remove my entire code from header.php (as I didn’t find an option in Google Analytics WP to not insert the code) and everything is fine. Thank you Joost!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Uninstalled Yoast and Google Analytics still in my source code’ is closed to new replies.
Skip to toolbar