Plugin how-tos · Guide
How to Remove MonsterInsights From WordPress (Step by Step)

Short answer
Back up your site and note your Google Analytics measurement ID. In Insights, Settings, disconnect your Google account, then go to Plugins, deactivate and delete MonsterInsights and any of its add-ons. Finally, check your page source for leftover tracking code and add Google Analytics another way if you still want tracking.
Key takeaways
- Removing MonsterInsights stops tracking but keeps your data in Google Analytics.
- Note your G- measurement ID before removal so you can reuse it.
- Disconnect Google in Insights > Settings, then deactivate and delete the plugin.
- Remove paid add-ons too, such as eCommerce or Forms.
- Some settings can remain in the database after deletion.
- Add a replacement such as Site Kit quickly to avoid a data gap.
What happens when you remove MonsterInsights?
Removing MonsterInsights stops it from adding the Google Analytics tracking code to your site, removes its reports from your dashboard, and may leave settings in the database unless you clean them up.
MonsterInsights is a plugin that connects WordPress to Google Analytics. It adds the tracking code and shows reports inside your dashboard. Our explainer on what MonsterInsights is covers it in more detail.
When you remove it, three things are worth knowing:
- Tracking stops. Unless you add Google Analytics another way, new visits will not be recorded.
- Your Google Analytics data stays. Historical data lives in your Google account, not in WordPress. Removing the plugin does not delete it.
- Leftover settings may remain. Plugin options can stay in the database after deletion.
Plan how you will track visitors before removing the plugin. That avoids a gap in your analytics data.
What should you do before removing MonsterInsights?
Before removing MonsterInsights, back up your site, note your Google Analytics measurement ID, and decide what will replace the tracking code.
A short checklist:
- Back up the site. Our guide on how to back up a WordPress site covers the options.
- Copy your measurement ID. It starts with G- and identifies your GA4 data stream. You will need it for any replacement.
- Note custom settings. Things like file download tracking, outbound link tracking, or excluded user roles may need setting up again elsewhere.
- List MonsterInsights add-ons. Paid plans add extra plugins for eCommerce, forms, ads and more. These need removing too.
- Choose a replacement. Options include Site Kit by Google, Google Tag Manager, or adding the code yourself.
If you are leaving because of speed, our guide on optimizing Google Analytics for speed may help you choose a lighter setup.
How do you disconnect MonsterInsights from Google Analytics?
Open Insights > Settings in your dashboard and use the option to disconnect or deauthenticate your Google account before you deactivate the plugin.
Disconnecting first ends the link between the plugin and your Google account in a tidy way. The exact button label depends on your version, but it sits near the top of the General settings tab, next to your connected profile.
Disconnecting does not delete anything in Google Analytics. It only stops MonsterInsights from reading reports and managing the connection.
You can also review which apps have access to your Google account from the Google Account third-party connections page. Remove any MonsterInsights connection you no longer use.
How do you deactivate and delete MonsterInsights?
Go to Plugins > Installed Plugins, click Deactivate under MonsterInsights, then click Delete and confirm.
Step by step:
- Go to Plugins > Installed Plugins.
- Find MonsterInsights in the list. The free version may appear as Google Analytics for WordPress by MonsterInsights.
- Click Deactivate.
- Deactivate any MonsterInsights add-ons, such as eCommerce or Forms.
- Click Delete under each one and confirm.
WordPress explains deactivating and deleting plugins in its plugin management documentation.
MonsterInsights has its own uninstall guide that covers version-specific details, including how to remove plugin data. Check it for the latest steps.
If you cannot reach the dashboard, you can remove the plugin folder over SFTP. Our guide on uninstalling broken plugins explains how.
Does deleting MonsterInsights remove all its data?
Deleting the plugin removes its files, but some settings may stay in the database depending on your version and its data removal option.
Many plugins keep settings after deletion so you can reinstall without losing configuration. MonsterInsights has offered an option in some versions to remove all data when the plugin is uninstalled. Check the uninstall guide linked above for the current behavior.
Data that may be left behind includes:
- Options in the wp_options table, usually with names starting with monsterinsights.
- Scheduled events in WordPress cron.
- User meta such as dismissed notices.
- Transients holding cached report data.
These leftovers are small and harmless in most cases. They do not add tracking code to your site.
How do you clean up leftover MonsterInsights data?
If you want a fully clean database, back up first, then remove MonsterInsights options and transients with a database tool or a cleanup plugin.
Options, from simplest to most technical:
- A cleanup plugin. Some database cleanup plugins list orphaned options by name. Review the list and delete only MonsterInsights entries.
- phpMyAdmin. Search the options table for names containing monsterinsights and delete those rows. Your table prefix may not be wp_.
- WP-CLI. Developers can delete options and transients with WP-CLI commands. The WP-CLI option command docs explain the syntax.
Never delete rows you do not recognize. Removing the wrong option can break other plugins.
For more cleanup tips, see our guide on how to optimize the WordPress database.
How do you check that the tracking code is really gone?
View your site's page source while logged out and search for gtag or your G- measurement ID to confirm MonsterInsights is no longer adding code.
Steps:
- Open your site in a private browser window.
- Right-click the page and choose View Page Source.
- Search for monsterinsights and gtag.
- Search for your measurement ID.
If the code still appears, check these:
- Caching. Your caching plugin or CDN may serve old pages. Clear all caches. Our guide on how to clear cache in WordPress covers the common tools.
- Another plugin. A theme, SEO plugin or tag manager may also add Google Analytics.
- Hard-coded code. Someone may have pasted the code into the theme's header file.
You can also open GA4's Realtime report and visit your site. If your visit does not appear and you have no replacement yet, tracking has stopped.
How do you keep Google Analytics working after removing MonsterInsights?
Add Google Analytics another way, such as Site Kit by Google, Google Tag Manager, or the Google tag code placed in your theme's header.
Here is how the main options compare:
| Method | Setup effort | Reports in WordPress | Best for |
|---|---|---|---|
| Site Kit by Google | Low | Yes, basic | Most site owners |
| Google Tag Manager | Medium | No | Sites with many tags or events |
| Google tag code in header | Low to medium | No | Simple sites wanting minimal plugins |
| Another analytics plugin | Low | Varies | People who want dashboard reports |
| Privacy-friendly analytics | Low | Varies | Sites avoiding Google Analytics |
Site Kit is Google's official plugin. Our guide on how to use Site Kit by Google walks through setup.
If you prefer to add the code yourself, Google explains the steps in its Google tag installation guide. Our guide to adding Google Tag Manager to WordPress covers the tag manager route.
Install the replacement as soon as possible after removing MonsterInsights to keep the gap in your data short.
Should you remove MonsterInsights or just switch it off?
Delete it if you are sure you will not return, but deactivate it for now if you are only testing an alternative or troubleshooting a problem.
Deactivating keeps your settings, so you can switch back quickly. It also stops all tracking and dashboard reports while it is inactive.
Deleting is better long term because unused plugins can still carry security risks if they stay installed and fall out of date. Our guide on removing unused plugins and themes safely explains why.
What if your theme or another plugin depended on MonsterInsights?
Some themes and plugins connect with MonsterInsights to track events such as form submissions, so removing it can stop those events from being recorded.
For example, MonsterInsights add-ons track WooCommerce purchases, form conversions and outbound clicks. Basic page tracking with a replacement plugin will not cover all of that.
Check your GA4 events list before removal. Then recreate the important ones with your new setup, often through Google Tag Manager or the replacement plugin's own event features.
If you run a store, our guide on tracking WooCommerce conversions with GA4 covers the purchase events you will want back.
Frequently asked questions
Will removing MonsterInsights delete my Google Analytics data?
No. Your analytics data is stored in your Google Analytics account, not in WordPress. Removing the plugin only stops it adding tracking code and showing reports in your dashboard. Past data stays available in Google Analytics.
Does deleting MonsterInsights remove everything from the database?
Not always. Plugin files are removed, but some options and cached data may remain depending on the version and its data removal settings. Check the MonsterInsights uninstall guide, or clean leftover options carefully after taking a backup.
What is the best replacement for MonsterInsights?
Site Kit by Google is a common choice because it is free, official and shows basic reports in WordPress. Google Tag Manager suits sites that need many custom events. Adding the Google tag code directly is the lightest option.
Why is Google Analytics still tracking after I removed MonsterInsights?
Another plugin, the theme or a tag manager may also add the tracking code, or a cache may still serve old pages. Clear all caches, view the page source while logged out and search for gtag to find the source.
Do I need to remove MonsterInsights add-ons separately?
Yes. Paid add-ons such as eCommerce, Forms or Ads are separate plugins. Deactivate and delete each one from the Plugins screen, or they may show errors once the main plugin is gone.
Sources
- How to uninstall MonsterInsights MonsterInsights
- Manage plugins WordPress.org
- Install the Google tag Google for Developers
- wp option WordPress Developer Resources
- Google Analytics for WordPress by MonsterInsights WordPress.org
Is your product missing, or something out of date?
Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.
Thanks — we review requests within 3 business days.
Related guides
About the editors
Researched from the primary sources listed above and checked against our editorial rules before publishing.


