Title: Groundworx GTM – Simple Insert for Google Tag Manager
Author: Groundworx
Published: <strong>16 Tháng 8, 2025</strong>
Last modified: 27 Tháng 8, 2026

---

Tìm kiếm plugin

![](https://ps.w.org/groundworx-gtm/assets/banner-772x250.jpg?rev=3345689)

![](https://ps.w.org/groundworx-gtm/assets/icon-256x256.jpg?rev=3345689)

# Groundworx GTM – Simple Insert for Google Tag Manager

 Bởi [Groundworx](https://profiles.wordpress.org/alexandrie/)

[Tải về](https://downloads.wordpress.org/plugin/groundworx-gtm.1.1.1.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/groundworx-gtm/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/groundworx-gtm/#reviews)
 *  [Cài đặt](https://vi.wordpress.org/plugins/groundworx-gtm/#installation)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/groundworx-gtm/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/groundworx-gtm/)

## Mô tả

Groundworx GTM is a lightweight plugin that cleanly adds Google Tag Manager (GTM)
to your WordPress site.

It uses core WordPress hooks like `wp_head` and `wp_body_open`, ensuring compatibility
and avoiding messy theme edits.

Features:
 * Injects GTM scripts in the proper locations (`<head>` and after `<body
>`) * Option to disable tracking for logged-in users, by user role * No ads, no 
tracking — just works

### License

GPLv2 or later

## Ảnh màn hình

[⌊Settings panel with GTM ID and role exclusions.⌉⌊Settings panel with GTM ID and
role exclusions.⌉[

Settings panel with GTM ID and role exclusions.

## Cài đặt

 1. Upload the plugin folder to `/wp-content/plugins/` or install via Plugins > Add
    New.
 2. Activate the plugin.
 3. Go to Settings > Groundworx GTM and enter your GTM ID.
 4. Optionally choose user roles to exclude from GTM injection.

#### External services

This plugin relies on the following third-party service:

**Google Tag Manager (GTM)**
 • **Purpose:** Loads your GTM container so you can
manage analytics/marketing tags from GTM. • **When it runs:** Only when a valid 
GTM Container ID (e.g., GTM-XXXXXXX) is saved in the plugin settings and output 
is enabled. If no ID is set or output is disabled, nothing is loaded. • **What is
sent and where:** The plugin outputs the standard GTM bootstrap script and a `<noscript
>` iframe. The visitor’s browser then requests: – `https://www.googletagmanager.
com/gtm.js` – `https://www.googletagmanager.com/ns.html` These requests send standard
browser metadata (IP, user agent, referrer, page URL) to Google to serve the files.•**
Scope:** Front-end pages only. The plugin does not transmit admin data. • **Policies:**–
[Google Tag Manager Terms of Service](https://marketingplatform.google.com/about/analytics/terms/tag-manager/)–
[Google Privacy Policy](https://policies.google.com/privacy) • **Data stored by 
this plugin:** None. The plugin does not log, transmit, or store visitor data in
WordPress.

## Hỏi đáp

### Will this track logged-in users?

No, not if you exclude their role from the settings panel.

### Where is the GTM code inserted?

 * The `<script>` is injected in the `<head>` using `wp_head`.
 * The `<noscript>` fallback is injected after `<body>` using `wp_body_open`.

### What if my theme doesn’t use `wp_body_open`?

You’ll see an admin notice prompting you to update your theme.
 If your theme doesn’t
support `wp_body_open`, you can manually add it by inserting `<?php wp_body_open();?
>` immediately after the opening `<body>` tag in your theme’s `header.php` file.

### Do I need to edit my theme?

Usually no — most modern themes include `wp_head` and `wp_body_open`. But if your
theme is older or custom, you might need to add `wp_body_open()` manually after `
<body>`.

## Đánh giá

Không có đánh giá nào cho plugin này.

## Người đóng góp & Lập trình viên

“Groundworx GTM – Simple Insert for Google Tag Manager” là mã nguồn mở. Những người
sau đã đóng góp vào plugin này.

Những người đóng góp

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

[Dịch “Groundworx GTM – Simple Insert for Google Tag Manager” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/groundworx-gtm)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/groundworx-gtm/), check 
out [SVN repository](https://plugins.svn.wordpress.org/groundworx-gtm/), hoặc theo
dõi [nhật ký phát triển](https://plugins.trac.wordpress.org/log/groundworx-gtm/)
qua [RSS](https://plugins.trac.wordpress.org/log/groundworx-gtm/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

#### 1.1.1

 * Confirmed compatibility with WordPress 7.1

#### 1.1.0

 * Rebuilt settings page with React using WordPress components
 * Moved settings under shared Groundworx admin menu
 * Added REST API for settings (replaces Settings API)
 * Added settings link to plugin action links
 * Added keyboard shortcut (Ctrl/Cmd+S) to save settings
 * Lowered PHP requirement to 7.4

#### 1.0.0

 * Initial release: inject GTM via `wp_head` and `wp_body_open`

## Meta

 *  Phiên bản **1.1.1**
 *  Cập nhật lần cuối **3 tháng trước**
 *  Số lượt cài đặt **10+**
 *  Phiên bản WordPress ** 5.2 hoặc cao hơn **
 *  Đã kiểm tra lên đến **7.1.4**
 *  Phiên bản PHP ** 7.4 hoặc cao hơn **
 *  Ngôn ngữ
 * [English (US)](https://wordpress.org/plugins/groundworx-gtm/)
 * Thẻ
 * [analytics](https://vi.wordpress.org/plugins/tags/analytics/)[google tag manager](https://vi.wordpress.org/plugins/tags/google-tag-manager/)
   [gtm](https://vi.wordpress.org/plugins/tags/gtm/)[tracking](https://vi.wordpress.org/plugins/tags/tracking/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/groundworx-gtm/advanced/)

## Đánh giá

Chưa có đánh giá nào được gửi.

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

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/groundworx-gtm/reviews/)

## Những người đóng góp

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

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/groundworx-gtm/)

## Ủng hộ

Bạn có muốn hỗ trợ vào sự phát triển của plugin này?

 [ Ủng hộ plugin này ](https://ko-fi.com/groundworx)