=== Groundworx GTM – Simple Insert for Google Tag Manager === Contributors: alexandrie Plugin URI: https://wordpress.org/plugins/groundworx-gtm Author URI: https://groundworx.dev Donate link: https://ko-fi.com/groundworx GitHub URI: https://github.com/groundworx-dev/groundworx-gtm Tags: gtm, google tag manager, analytics, tracking Requires at least: 5.2 Tested up to: 7.1 Requires PHP: 7.4 Stable tag: 1.1.1 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Cleanly inject Google Tag Manager (GTM) into your site using WordPress-native hooks. No tracking for selected user roles. == 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 (`
` and after ``) * Option to disable tracking for logged-in users, by user role * No ads, no tracking — just works == 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 `