
內容簡介
Hide GTM Code 是一個簡單的外掛,主要用於在使用者擁有「創建/編輯文章」權限時,隱藏 Google Tag Manager (GTM) 代碼,避免影響自身的訪問數據。此外掛可輕鬆嵌入 GTM 標籤,並考量插入位置以維持網站效能。
【主要功能】
• 隱藏 GTM 代碼於特定使用者登入時
• 支援 Google Analytics 4 (GA4) 嵌入
• 輕鬆配置 Google Search Console (GSC) 標籤
• 防止未經授權的數據收集
• 提供簡單的設定介面
外掛標籤
開發者團隊
原文外掛簡介
“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).
External services
This plugin can output tags for the following Google services when site administrators configure the related IDs or verification code:
Google Tag Manager
Google Analytics 4
Google Search Console
When these tags are output, visitors’ browsers may request scripts or verification resources from Google servers. This plugin does not send data to Google by itself unless the administrator has configured these tags.
Please review Google’s terms and privacy policy before using these services.
Google Privacy Policy:
https://policies.google.com/privacy
Google Terms of Service:
https://policies.google.com/terms
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.
