Hide GTM code

plugin banner

This is a useful plugin when you want to hide the GTM code because you don't want to measure it while you are logged in.

Author:CREATE ACCORD (profile at wordpress.org)
WordPress version required:6.4
WordPress version tested:6.4.3
Plugin version:1.0.6
Added to WordPress repository:14-12-2022
Last updated:01-02-2024
Rating, %:0
Rated by:0
Plugin URI:https://create-accord.com/production/plugins/
Total downloads:876
plugin download
Click to start download

“Hide GTM code” is a very simple plugin for SEO.
It prevents the output of the GTM code when logging in, so it is also recommended for those who do not want to measure their own access or who want to prevent erroneous operations.

  • Embed GTM tags without customizing the theme yourself.
  • Since the insertion position is taken into consideration, it is possible to prevent the page display speed from decreasing due to inserting the GTM tag with the SEO plug-in.
  • Prevent GTM code from being output when logging in.

Arbitrary section

There are a few caveats.

This plugin uses functions to embed GTM code or GSC HTML tags, so it cannot be used in themes that do not call functions.

After embedding the GTM code in your website, if you want to register your GA4 with GTM and also register GSC, please select GTM in “How to verify ownership of GSC”. Attempting to verify ownership in GA4 fails with an error.

Depending on the theme, some tags (such as the “a” tag) are embedded directly under the body tag as theme-specific elements. In that case, unfortunately if you select GTM in “How to verify ownership of GSC”, it will fail, so please set it to “HTML tag”. To set the HTML tag on the website, please set it from “GSC setting”.

Be sure to clear the cache after setting.


Screenshots
FAQ
ChangeLog