Title: Hide GTM code
Author: createaccord
Published: <strong>2022 年 12 月 14 日</strong>
Last modified: 2026 年 5 月 27 日

---

搜索插件

![](https://ps.w.org/hide-gtm-code/assets/banner-772×250.png?rev=2833474)

![](https://ps.w.org/hide-gtm-code/assets/icon-256×256.png?rev=2834362)

# Hide GTM code

 作者：[createaccord](https://profiles.wordpress.org/createaccord/)

[下载](https://downloads.wordpress.org/plugin/hide-gtm-code.1.1.4.zip)

 * [详情](https://cn.wordpress.org/plugins/hide-gtm-code/#description)
 * [评价](https://cn.wordpress.org/plugins/hide-gtm-code/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/hide-gtm-code/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/hide-gtm-code/#developers)

 [支持](https://wordpress.org/support/plugin/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」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ createaccord ](https://profiles.wordpress.org/createaccord/)

「Hide GTM code」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/hide-gtm-code/contributors)
为本插件所做的贡献。

[帮助将「Hide GTM code」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/hide-gtm-code)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/hide-gtm-code/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/hide-gtm-code/)，或通过[RSS](https://plugins.trac.wordpress.org/log/hide-gtm-code/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/hide-gtm-code/)。

## 更新日志

1.1.4 – 1.1.3
 The “Tested Versions” section now reflects the currently verified
versions.

1.1.2
 Fixed an issue where the URL was incorrect in the ver output.

1.1.1
 Fixed an issue with loading order.

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](https://create-accord.com/production/plugins/hide-gtm-code_changelog/)“.

## 额外信息

 *  版本 **1.1.4**
 *  最后更新：**4 天前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 7.0 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 8.3 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/hide-gtm-code/) 和 [Japanese](https://ja.wordpress.org/plugins/hide-gtm-code/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/hide-gtm-code)
 * 标签
 * [ga4](https://cn.wordpress.org/plugins/tags/ga4/)[gtm](https://cn.wordpress.org/plugins/tags/gtm/)
   [japan](https://cn.wordpress.org/plugins/tags/japan/)[meta tag](https://cn.wordpress.org/plugins/tags/meta-tag/)
   [seo](https://cn.wordpress.org/plugins/tags/seo/)
 *  [高级视图](https://cn.wordpress.org/plugins/hide-gtm-code/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/hide-gtm-code/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/hide-gtm-code/reviews/)

## 贡献者

 *   [ createaccord ](https://profiles.wordpress.org/createaccord/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/hide-gtm-code/)