Hide GTM code Hide GTM code

Hide GTM code

Created by: CREATE ACCORD

Rating:
Downloaded: 977 times

“Hide GTM Code” is a very simple plugin.

GTM code will not be output when a user with “Create/Edit Articles” permissions is logged in, so it is recommended for people who do not want to measure their own access.

  • Embed GTM tags without customizing the theme yourself.
  • The insertion position is also taken into consideration, preventing a decrease in performance due to GTM tag insertion.
  • Prevents GTM code from being output when a user with “Create/Edit Articles” permissions is logged in.

Arbitrary section

There are a few things to note.

Because this plugin uses functions that embed GTM code and/or GSC HTML tags, it cannot be used with themes that do not call the functions.

If you want to register GA4 with GTM and GSC after embedding GTM code on your website, select GTM in “How to verify GSC ownership”. If you try to verify ownership in GA4, it will fail 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, selecting GTM in “How to verify GSC ownership” will unfortunately fail, so please set it in “HTML tag”. If you want to set HTML tags on your website, please set them from “GSC settings”.

Be sure to clear your cache after setting.

There is no initialization function. If you want to erase the information you entered, please reinstall the plugin. If there is any necessary information, we apologize for the inconvenience, but please enter it again.

Screenshots

  • "Dashboard" screen
  • "Settings" screen
  • "GSC Settings" screen"

Categories

Get New Themes & Resources