• Hi, I’ve just removed the MonsterInsights analytics plugin but I still have this code

    <!– This site uses the Google Analytics by MonsterInsights plugin v7.0.6 – Using Analytics tracking – https://www.monsterinsights.com/ –>
    <!– Note: MonsterInsights is not currently configured on this site. The site owner needs to authenticate with Google Analytics in the MonsterInsights settings panel. –>
    <!– No UA code set –>
    <!– / Google Analytics by MonsterInsights –>
    <script type=”text/javascript”>

    I tried to remove it using appearance- editor but I can’t find which files I should modify ? Have you got any idea please ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    Mostly the plugins add such code in either header.php, Footer.php or in function.php Kindly check these three files.

    Hopefully, you can get the code and if this does not help, try to provide us your site URL so I can check once.

    Let me know if this helps.

    Thanks.

    Mostly the plugins add such code in either header.php, Footer.php or in function.php Kindly check these three files.

    Plugins should never modify those files directly. Code like this is added via hooks and should be removed when the plugin is deactivated.

    If plugin code is still appearing in your source after deactivating it suggests you are using a cache of some kind and the site still has a cached version of the page from when the plugin was active. Clear your site’s cache. Exactly how will depend on the plugin.

    Yes I agree, but might be if anyone might have manually added this during development, so I suggested to get it to check once these three files.

    Later yes, if it is the only plugin, after deactivating it should have been removed or maybe the caching is causing this, so if there is any Caching Plugin installed, we need to Purge All cache once.

    Thanks.

    Thread Starter polo74

    (@polo74)

    Thanks, it was due to my cache plugin. Thanks for your help.
    Paul

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to remove some code from a removed plugin ?’ is closed to new replies.