Skip to main content
GTM4WP logo

GTM4WP

Integrates Google Tag Manager with WordPress, adds WordPress and WooCommerce data-layer variables, and exposes events for analytics, advertising, consent, forms, and media tracking.
Visit Plugin
Last Updated: September 9, 2026

Plugin Health & Stats

Checked 2 weeks agoSource: WordPress.org
Active installs
700,000+Official WordPress.org tier
WP.org rating
4.5/5155 ratings
Version
2.0.2Current repository release
Last updated
1 week agoSep 24, 2026
Total downloads15,635,263
Tested with WP7.1.1
Requires WP6.3+
Requires PHP8.0+
Support resolved (2 mo.)10 of 16 (63%)
Plugin age13 years
Updates observed1
Tracking sinceSep 12, 2026
Repository data is older than 3 days. Showing the latest successful snapshot.

Historical overview

364-day WordPress.org history
Download trendDaily package downloads · last 90 days
7d383,239 30d1,112,736 90d1,906,742 Peak day144.2KAug 4
Jul 3Aug 1Aug 31Sep 30
Active version adoptionCurrent usage share
1.22 39.2%2.0 37.9%other 13.8%1.20 9.1%

Quick take

GTM4WP is a Google Tag Manager plugin for WordPress, not an analytics dashboard. It places Google Tag Manager container code in WordPress, enriches the data layer with WordPress and WooCommerce information, and exposes events that can be used by tags you configure in GTM.

My GTM4WP review conclusion is that it is a strong free option for marketers and developers who already understand Google Tag Manager and want WordPress-specific data without hand-coding the integration. I would not choose it for someone who wants a guided analytics dashboard or a plugin that decides which tags should run.

Best fit: GTM4WP makes the most sense for technical marketers, analytics specialists, and WooCommerce teams that actively manage Google Tag Manager containers. I would choose a different option for users who only need basic analytics tracking or want a guided analytics dashboard rather than a technical tag-management layer.

What GTM4WP actually does

This Google Tag Manager plugin handles the WordPress integration layer for GTM. It can place the GTM container snippets, support multiple containers and server-side custom domains, and push WordPress context into the data layer.

GTM4WP does not configure your Google Analytics, Google Ads, Meta, or other tags for you. The logic still lives in the Google Tag Manager container, which means implementation quality depends on the container setup as much as the plugin.

Features that matter in a GTM4WP implementation

WordPress data layer variables

GTM4WP can expose page titles, dates, taxonomy information, author details, post IDs and types, logged-in state, user role, search data, multisite information, and optional content-engagement variables. That gives GTM triggers and variables richer WordPress context without custom theme code.

WooCommerce GA4 eCommerce events

The GTM4WP WooCommerce integration implements GA4 eCommerce data and supports classic and block-based Cart, Checkout, Mini-Cart, Product Collection, and cross-sell flows. It also supports enhanced-conversion user data on purchase events and WooCommerce HPOS.

Consent-mode plumbing

GTM4WP can send the Google Consent Mode default state and bridge selected consent tools, including CookieYes, Cookiebot, and Axeptio. It does not display a consent banner or decide whether consent was granted. Your consent platform still controls the update state.

Media and form events

The plugin can push events for Contact Form 7 submissions and media interactions across services such as YouTube, Vimeo, HTML5 audio/video, Wistia, Spotify, and others. GTM still needs triggers and tags that consume those events.

Cache-safe data layer

Version 2.0 introduced an experimental cache-safe data layer option. It avoids writing visitor-specific information into cacheable HTML and delivers those values client-side instead. This matters on sites where full-page cache could otherwise serve one visitor’s embedded data to another.

GTM4WP 2.0 requirements and compatibility

GTM4WP 2.0 was a major rewrite and raised the minimum requirements to WordPress 6.3 and PHP 8.0. Existing public template functions, hooks, constants, and the legacy option key were kept for compatibility, but old environments need to meet the new runtime requirements before updating.

The GTM4WP WooCommerce and WordPress implementation supports multiple containers, server-side containers with custom domains/paths, Contact Form 7 integration, WooCommerce, consent integrations, and several media players. I would test a major GTM4WP update in staging on sites with complex WooCommerce or custom data-layer dependencies.

Choose GTM4WP if

  • Your team already manages tags inside Google Tag Manager.
  • You need WordPress or WooCommerce data in the GTM data layer.
  • You want container placement without modifying theme files.

Keep the workflow simpler if

  • You only need basic Google Analytics tracking and do not use GTM.
  • You want a dashboard that interprets analytics rather than a technical data layer.

Where the trade-offs show up

The plugin gives you data and events, but GTM can also execute powerful code. Misconfigured tags, duplicated consent defaults, broken triggers, or unsafe Custom HTML can create privacy, performance, or security problems even when the WordPress plugin itself is working correctly.

Some data-layer fields can contain personal or visitor-specific information. The plugin documentation explicitly warns about consent for values such as visitor IP, and version 2.0’s cache-safe option exists because cached visitor data can be sensitive. I would enable only the variables a measurement plan actually needs.

GTM4WP pricing

GTM4WP pricing is simple: the WordPress plugin is free and open source. There is no separate GTM4WP Pro license required for the WordPress integration.

That does not mean the wider analytics stack has no cost. Google Tag Manager itself is free, but server-side hosting, consent-management platforms, analytics services, advertising platforms, and implementation work can have separate costs.

PluginSuggest verdict

GTM4WP is a strong fit for a WordPress site that already treats Google Tag Manager as part of its analytics architecture. The GTM4WP review case is especially strong for WooCommerce and technically managed sites that need a richer data layer without maintaining custom integration code.

I would not use it simply because GTM sounds more advanced. If the site only needs basic analytics, a simpler integration has less configuration risk. GTM4WP is most valuable when a real tag-management strategy already exists.

GTM4WP FAQs

Is GTM4WP free?

Yes. GTM4WP is a free, open-source WordPress plugin.

Does GTM4WP install Google Analytics automatically?

It installs and enriches the Google Tag Manager integration. You still configure Google Analytics tags and other tracking logic inside your GTM container.

Does GTM4WP support WooCommerce?

Yes. Version 2.0 includes GA4 eCommerce support for WooCommerce, including block-based cart and checkout flows, purchase data, enhanced conversions, and HPOS compatibility.

Does GTM4WP handle cookie consent?

It can help with Google Consent Mode defaults and selected consent-tool integrations, but it does not show a consent banner or decide whether a visitor granted consent.

What are the requirements for GTM4WP 2.0.1?

GTM4WP 2.0.1 requires WordPress 6.3 or higher and PHP 8.0 or higher, and is tested through WordPress 7.1.

How much does GTM4WP cost?

The GTM4WP WordPress plugin is free. Related services such as server-side container hosting or consent platforms can have separate costs.

Compare before you install

Explore researched plugin profiles, alternatives, and community signals before making your next WordPress choice.

Similar Plugins

Community Reviews

0 community reviews
Log in or create an account to write a review.
No published community reviews yet.