Type to search.

#83 by installs

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

by Thomas GeigerVersion 2.0.6

Advanced tag management for WordPress with Google Tag Manager

Active installs
700,000+
#83 of 1,000
Downloads, all time
16.7M
16,724,275
Downloads, 30 days
659.8K
76K in the last 7
Rating
4.5 / 5
155 reviews
Last updated
19 days ago
Oct 12, 2026
Version
2.0.6
82 releases

What GTM4WP's own page says

Read from gtm4wp.comon

Features it lists

  • Track what visitors do on your website
  • Integrates with WooCommerce and Easy Digital Downloads
  • Tracks eCommerce interactions
  • Works with Google Analytics 4
  • Tracks media player events

A script read this page, and kept only what the page's text backs up. These are the vendor's list prices and its own words, not a deal and not my review. Prices change and can differ by country, so confirm on the vendor's page before you buy.

Upkeep and compatibility

Last updatedOctober 12, 2026Updated in the last 3 months
Tested up toWordPress 7.1.4Covers WordPress 7.1.4, the current release
Needs WordPress6.3 or newer
Needs PHP8.0 or newer
First publishedSeptember 23, 2013
Support, last two months8 of 14 threads resolved (57%)

Reviews

4.5 / 5 from 155 reviews

Reviews by star rating
5 stars132
4 stars1
3 stars5
2 stars2
1 star15

Downloads, last 30 days

Low 3.5K a dayHigh 112.2K a day

What the author says it does

Google Tag Manager (GTM) is Google’s free tool for everyone to manage and deploy analytics and marketing tags as well as other code snippets

using an intuitive web UI. To learn more about this tool, visit the official website.

This plugin places the GTM container code snippets onto your WordPress website so that you do not need to add them manually.

Multiple containers are also supported, and each container can have its own environment parameters, custom domain and custom path.

The plugin complements your GTM setup by pushing page meta data and user information into the so-called data layer.

Google’s official help pages include more details about the data layer.

PHP 8.0 and WordPress 6.3 are required to use this plugin.

GTM container code placement

The original GTM container code is divided into two parts:

The first part is a javascript code snippet that is added to the <head> section of every page of the website.

This part is critical to enable all features of GTM, and this plugin helps to place this part

correctly on your site.

The second part is an iframe snippet that acts as a failsafe/fallback should users’ JavaScript be disabled.

Google recommends – for best performance – to place this code snippet directly after the opening <body> tag on each page.

The opening of the plugin's own description. The full text, installation notes and changelog are on its WordPress.org page.

Questions the author answers

How can I …

Tutorials for various Google Tag Manager settings and implementation are available on the plugin’s website:

https://gtm4wp.com/setup-gtm4wp-features

PayPal / 3rd party payment gateway transactions in WooCommerce are not being tracked in Google Analytics

PayPal and some other 3rd party payment gateways do not redirect users back to your website after a successful transaction by default.

They offer a route back for your customer, but it can happen that users close the browser before arriving at your thank you page

(also known as the order received page). This means that neither Google Analytics tags nor any other tags have a chance to fire.

Purchase event is not tracked with WooCommerce

This can happen if you are using a 3rd party plugin that alters the default order received page in a way that does not use

WooCommerce’s integration hooks. Either stop using that plugin, or ask its authors to mimic the behavior of the default order

received page more closely by supporting the woocommerce is_order_received_page function and the woocommerce_thankyou action.

Why isn’t there an option to blocklist tag/variable classes

Although Google recommends blocklisting tags and variables using classes, people struggle to know

which tags and variables get affected. Therefore I opted for individual tags and variables rather than classes

on the tag restriction tabs.

Regarding variables: ensure they are not part of any critical tags, as blocklisting such variables will render those tags useless.

How can I track scroll events in Google Tag Manager?

Google Tag Manager supports basic scroll depth tracking based on percentage or pixels natively. Add a Scroll Depth

trigger in your container and use it to fire your Google Analytics 4 and/or Google Ads remarketing/conversion tags.

(The plugin’s own scroll tracking feature was removed in 2.0 in favor of this built-in GTM functionality.)

I use a page cache. Can visitor data leak between visitors?

Yes, this is a real risk with any full page cache, and it is not specific to this plugin: the HTML generated for one visitor is

stored and served to everyone else. If visitor specific values (email address, user role, IP address) are written into the data

layer, the cached copy will contain the values of whoever happened to trigger the caching.

Latest changelog entry

2.0.6

  • Fixed: visitors browsing in the in-app browser of an Android app such as Facebook or Instagram got no WooCommerce data layer, so their purchase and other e-commerce events were missing. Thanks to @sw33tr for the report (#477).
  • Fixed: on the classic cart page, re-adding a removed product with “Undo” now sends add_to_cart. WooCommerce restores it in the background and discarded the page part that carried the event.

Screenshots

First 4 of 6, from WordPress.org.

Tagged

Plugins that share its tags

Google Tag Manager and GA4 integration. Including WooCommerce data for Google Analytics 4 and support for server side GTM.

Installs
30,000+
Rating
4.8 (20)
Updated
5 days ago

Add Meta Pixel with Conversion API, Google Analytics (GA4) + Consent Mode, Google Tag Manager, OpenAI Pixel & API, and Head & Footer scripts.

Installs
400,000+
Rating
4.3 (281)
Updated
10 days ago

Where this page's numbers come from

Read from the WordPress.org plugin API on , when WordPress 7.1.4 was the current release. WordPress.org rounds active installs into buckets. These are the directory's figures, not my verdict, and I haven't tested this plugin. The author takes donations at their donate page.