G
Analytics & Stats Free WordPress.org

GTM4WP – A Google Tag Manager (GTM) plugin for WordPress

4.5 (154 reviews)
· 700K+ active installs · By Thomas Geiger
Active Installs
700K+
Rating
4.5 / 5
Version
v1.22.3
Last Updated
Dec 2025
Share

Plugin Review

AI-Researched

What is GTM4WP?

GTM4WP is a WordPress plugin that places Google Tag Manager container code onto your website. It eliminates the need to manually edit your theme files. The plugin pushes page metadata and user information into the data layer for deeper tracking. Created by Thomas Geiger, this plugin is 13 years old and has been actively maintained since its release. It currently has over 700,000 active installs with a 4.5 out of 5 star rating from 154 ratings. 85% of those ratings are 5% are one-star. The latest version is 1.22.3, last updated on December 15, 2025.

The plugin works by splitting the GTM container code into two parts. The first part is a JavaScript snippet placed in the <head> section of every page. The second part is an iframe fallback for users with JavaScript disabled. GTM4WP handles both placements for you. It supports multiple containers and requires PHP 7.4 or higher. The plugin has been tested up to WordPress 6.9.4.

Key Features of GTM4WP

  • Automatic Container Code Placement – Inserts both GTM code snippets into the correct <head> and <body> locations without manual editing.
  • Data Layer Integration – Automatically pushes post titles, dates, categories, tags, author data, and post IDs into the data layer for tag triggers.
  • User Information Tracking – Captures logged-in status, user role, user ID, email addresses (both unhashed and SHA256 hashed), and account creation date.
  • Browser and Device Detection – Provides browser name, version, engine, OS data, and device type, manufacturer, and model using the WhichBrowser library.
  • Weather Data (Beta) – Pushes current weather conditions into the data layer for weather-related audience lists on ad platforms.
  • WooCommerce Transaction Tracking – Tracks purchases with a note that PayPal and third-party gateways require auto-return settings for accurate data.
  • Multisite Support – Includes site name and site ID data for WordPress multisite instances.
  • Custom Taxonomy Support – Pushes custom terms associated with any post type into the data layer.

Who Should Use GTM4WP?

GTM4WP is ideal for site owners who want Google Tag Manager without touching code. The plugin requires no advanced technical skills. You only need a GTM container ID from Google. With 700,000 active installs, it suits blogs, ecommerce stores, and business websites. The plugin works with popular themes like Genesis, GeneratePress, and builders such as Elementor, Oxygen Builder, and Beaver Builder. It also handles the fallback code placement for these themes automatically.

Marketing professionals and analytics teams benefit from the data layer features. The plugin pushes search data, post counts, and category information. This enables custom triggers for Google Analytics and Google Ads. Users running WooCommerce stores will find the transaction tracking useful, though third-party payment gateways require extra configuration. Beginners can use the footer placement option for the iframe snippet, though the head placement is recommended for best performance.

Installation & Setup

Install the plugin by uploading the duracelltomi-google-tag-manager-for-wordpress folder to /wp-content/plugins/. Activate it through the Plugins menu, then go to Settings / Google Tag Manager. Enter your GTM container ID and configure additional options. The process is beginner-friendly and takes under five minutes. The plugin works with WordPress 3.4.0 and above, so compatibility is broad.

Support & Community

Support data from the last 2 months shows 7 open threads with 0 resolved, giving a 0% resolution rate. This is a notable concern for a plugin with 700,000 users. The rating breakdown reveals 85% 10% one-star ratings. The plugin's website at gtm4wp.com offers tutorials for setup and features. The FAQ section addresses common issues like WooCommerce purchase tracking and PayPal transaction handling. Users struggling with third-party plugin conflicts or payment gateway tracking may need to rely on community forums or the plugin's documentation rather than direct developer support.

Pros & Cons

What's Good
  • With over 700,000 active installs and an 85% 5-star rating, it is one of the most widely trusted GTM plugins for WordPress.
  • The plugin automatically places both the JavaScript and fallback iframe GTM snippets, supporting multiple containers without manual code editing.
  • It pushes basic page metadata (titles, dates, categories) into the data layer, reducing the need for custom coding for common tracking setups.
  • Compatibility modes for popular themes and builders (Genesis, GeneratePress, Elementor, Oxygen, Beaver Builder) ensure the fallback snippet is placed correctly for many users.
Drawbacks
  • Support is effectively absent: out of 7 total support threads, 0 are resolved, yielding a 0% resolution rate.
  • The plugin requires PHP 7.4 or higher, potentially excluding sites on older but still common PHP versions like 7.3 or 7.2.
  • Users without a compatible theme or builder must resort to manual PHP coding or a footer placement option, which is explicitly noted as not ideal by Google.

Technical Details

Requires WordPress
3.4.0+
Requires PHP
7.4+
Tested up to WP
6.9.4
First Released
2013 (13+ years)
Support (last 2 months)
6 threads  —  0% resolved

Feature Tags

google-ads google-analytics google-tag-manager gtm tag-manager

Frequently Asked Questions

Compare GTM4WP With...

1 comparisons