WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
[resolved] Uninstalled Yoast and Google Analytics still in my source code (5 posts)

  1. Flour On My Face
    Member
    Posted 1 year ago #

    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/

  2. Joost de Valk
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. Flour On My Face
    Member
    Posted 1 year ago #

    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!

  4. superjacotaco
    Member
    Posted 11 months ago #

    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>

  5. dsemblano
    Member
    Posted 8 months ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.