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.

스크린샷

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

설치

  1. Enter “Hide GTM code” in the plugin search field.
  2. Once you find this plugin, click “Install Now” to install and activate it.

FAQ

The code to fill in is only the tag that starts with “GTM”. No JavaScript code required.

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

“Hide GTM code”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

“Hide GTM code”(이)가 1(으)로 번역되었습니다. 기여해 주셔서 번역자님께 감사드립니다.

자국어로 “Hide GTM code”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

1.0.5
Some themes embed HTML tags directly under the body tag as theme-specific elements, so selecting GTM in How to verify ownership of GSC fails. Added “HTML code setting screen” to solve this problem.

1.0.4
Since the specification to embed svg immediately after the body element added from WordPress 5.9 is prioritized, GTM’s noscript was not detected, and GSC’s ownership verification using GTM failed again. Fixed again.
Fix details:
Fixed code output priority again to output GTM noscript code before svg (priority set to ‘0’).

1.0.3
Fixed a bug that the value was not displayed on the screen when registering the input for the first time. (Because it was saved as data, it was displayed when you accessed it again. Please be assured that the data has not disappeared.)

1.0.2
Fixed a bug that GSC’s ownership verification using GTM failed due to GTM’s noscript not being judged due to the specification to embed svg immediately after the body element added from WordPress 5.9.
Fix details:
Fixed code output precedence to output GTM noscript code before svg.

1.0.1
Changed the translation method.

1.0.0
released.