Title: Groundworx GTM – Simple Insert for Google Tag Manager
Author: Groundworx
Published: <strong>16 August 2025</strong>
Last modified: 27 August 2026

---

Search plugins

![](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

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

[Download](https://downloads.wordpress.org/plugin/groundworx-gtm.1.1.1.zip)

 * [Details](https://en-gb.wordpress.org/plugins/groundworx-gtm/#description)
 * [Reviews](https://en-gb.wordpress.org/plugins/groundworx-gtm/#reviews)
 *  [Installation](https://en-gb.wordpress.org/plugins/groundworx-gtm/#installation)
 * [Development](https://en-gb.wordpress.org/plugins/groundworx-gtm/#developers)

 [Support](https://wordpress.org/support/plugin/groundworx-gtm/)

## Description

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

## Screenshots

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

Settings panel with GTM ID and role exclusions.

## Installation

 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.

## FAQ

### 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>`.

## Reviews

There are no reviews for this plugin.

## Contributors and Developers

“Groundworx GTM – Simple Insert for Google Tag Manager” is open source software.
The following people have contributed to this plugin.

Contributors

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

[Translate “Groundworx GTM – Simple Insert for Google Tag Manager” into your language.](https://translate.wordpress.org/projects/wp-plugins/groundworx-gtm)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/groundworx-gtm/), check
out the [SVN repository](https://plugins.svn.wordpress.org/groundworx-gtm/), or 
subscribe to the [development log](https://plugins.trac.wordpress.org/log/groundworx-gtm/)
by [RSS](https://plugins.trac.wordpress.org/log/groundworx-gtm/?limit=100&mode=stop_on_copy&format=rss).

## Change Log

#### 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

 *  Version **1.1.1**
 *  Last updated **2 months ago**
 *  Active installations **10+**
 *  WordPress version ** 5.2 or higher **
 *  Tested up to **7.1.3**
 *  PHP version ** 7.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/groundworx-gtm/)
 * Tags
 * [analytics](https://en-gb.wordpress.org/plugins/tags/analytics/)[google tag manager](https://en-gb.wordpress.org/plugins/tags/google-tag-manager/)
   [gtm](https://en-gb.wordpress.org/plugins/tags/gtm/)[tracking](https://en-gb.wordpress.org/plugins/tags/tracking/)
 *  [Advanced View](https://en-gb.wordpress.org/plugins/groundworx-gtm/advanced/)

## Ratings

No reviews have been submitted yet.

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

[See all reviews](https://wordpress.org/support/plugin/groundworx-gtm/reviews/)

## Contributors

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

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/groundworx-gtm/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://ko-fi.com/groundworx)