This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Remove Google Analytics (MonsterInsights) comments

Description

A light-weight plugin which will remove the advertisement HTML comments coming from the Google Analytics plugin created by MonsterInsights, such as:

<!-- This site uses the Google Analytics by MonsterInsights plugin -->

This is a must-have plugin if you have Google Analytics by MonsterInsights installed.

Note

This plugin requires Google Analytics by MonsterInsights. If you do not have Google Analytics by MonsterInsights activated, this plugin will not work. Also compatible with the pro version of the mentioned plugin.

Like this plugin?

If you like this plugin, make sure to rate it 5 stars. Also check out Remove Yoast SEO comments!

Installation

  1. Upload the ‘remove-google-analytics-comments’ folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. All done! The HTML comments are now removed from your front-end source code.

FAQ

When Google Analytics by MonsterInsights updates their plugin, will the HTML comments stay removed?

Yes, they will stay removed.

Does this plugin add any configuration options?

No, activate the plugin and you are done! This plugin will not add any extra tables or such to your database.

Why does this plugin exist?

The HTML comments coming from the Google Analytics by MonsterInsights plugin give out information such as plugin version and type. When there is a exploit in the Google Analytics by MonsterInsights plugin, hackers may take advantage of that exploit to hack your website. A good reason to remove them.

Will this plugin modify any of my Google Analytics by MonsterInsights plugin files?

No, this plugin will not modify any of your Google Analytics by MonsterInsights plugin files.

Reviews

May 23, 2017
Basic plug-in, works as advertised. It’s a good security thing to not let people know what versions you are using, in case there is an exploit; after having said that, you should patch your servers ANYWAY to avoid exploits taking hold. Even if the information about the version is not exposed on your web site, any exploits IN that version WOULD be, so do the patching. This plugin isn’t perfect, however, as I did still find the following variable in the code: var monsterinsights_frontend … so, anyone looking at source would probably know you’re using MonsterInsights … == John ==
Read all 1 review

Contributors & Developers

“Remove Google Analytics (MonsterInsights) comments” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.1

  • Fixed an security vulnerability regarding target="_blank" (read more)
  • Added support for WordPress 4.7

1.0

  • Initial release