How to get rid of GA code after deactivating GA for WordPress. (3 posts)

  1. tommytx
    Posted 4 years ago #

    I previously had Google Analytics for WordPress by Yoast.com and have since deactivated it.. However when i look at the source, I still see it in the header.. Is this normal, must I totally remove the entire plugin from the plugin directory to make the code go away...

    I know it is still being installed, since it is not there when you look at the header using ftp but is there when you look at a live header once the page is generated..

    I need it gone to make sure it does not interfere with my manual insertion of GA code.


  2. Did you manually add the code to your theme's footer.php? If so, you'll have to manually delete it.

  3. tommytx
    Posted 4 years ago #

    I think you might not have read the post carefully enough.. As above I stated that i know the system is adding the code since when I look at the header using FTP the Yoast GA code is not there, but when you view the page in the browser and look at the code ... there it is and it was not there in the static footer... only in the dynamic header..

    Any other ideas.. should I try totally reomoveing the plugin from my site to see it that does it... I wanted to leave it in case I want to use it in the future... makes not sense...

Topic Closed

This topic has been closed to new replies.

About this Topic