Hide GTM code

外掛說明

“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 (GTM tag is the Google Tag Manager code).
  • 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.
  • It is also possible to use only GA4 (GA4 is an abbreviation for Google Analytics 4).

Arbitrary section

There are a few things to note.

Please check your laws and regulations before using this plugin (the plugin does not support non-consent collection as consent status cannot be obtained).

This plugin uses the function to embed GTM code and GSC HTML tags, so it cannot be used with themes that do not call these functions (GSC is an abbreviation for Google Search Console).

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 with GA4, it will fail with an error

You can also use only GA4 (gtag) and GSC.

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, if you select GTM in “How to verify GSC ownership”, it will unfortunately fail, so please set it in “HTML tag”. If you want to set HTML tags on your website, please set it from “GSC settings”.

Be sure to clear the cache after setting.

If you want to erase the information you have entered, please use “Initialize Settings”. All information set by this plugin will be erased, so if there is any information you need, we apologize for the inconvenience, but please enter it again.

安裝方式

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

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Hide GTM code〉的開發相關工作。

參與者

〈Hide GTM code〉外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Hide GTM code〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.1.0
The text is not reflected so I will update it. There are no changes to the content.

1.0.9
We fixed a bug in the plugin source check (only JavaScript version display was not supported), changed the function name, and corrected the contents of readme.txt (this change will not cause any saved data to be lost or changed).
Please check and re-save your data just to be sure.
From this version, it is also possible to use only “GA4 (gtag)” and “GSC”.
You can now initialize your settings. Please note that using this will erase your plugin settings.

Past update history is summarized on the “Update History Page“.