plugin-icon

Hide GTM code

A plugin that embeds GTM code without affecting your theme. Since the GTM code is not output when logging in, it is useful for preventing erroneous op …
Calificaciones
Última actualización
February 1, 2024
Versión
1.0.6
Hide GTM code

«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.

Probado hasta
6.5.5
Te puedes descargar este plugin para utilizarlo en tu instalación autoalojada de WordPress.