Connects WordPress with Google Search Console, Analytics, AdSense, and PageSpeed Insights through Google's official integration.
GTM4WP
Plugin Health & Stats
Historical overview
364-day WordPress.org historyQuick 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.
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
Similar Plugins
Brings Google Analytics reports into WordPress so site owners can see how visitors find and use their site from the…
Adds Google Analytics tracking to WordPress with configuration options for common setups, without manually editing theme files.