Skip to content
Contact
Linkedin Github WordPress Facebook RSS
Google Tag Manager for WordPress
  • Services
  • DocumentationExpand
    • Setup & privacy

      Container settings

      Consent mode & consent tools

      GDPR

      Exclude WordPress admins

      Restriction mode

      AMP support

      Data layer

      Page / post attributes

      Site search

      User data

      Multisite data

      Browser, device & geo data

      Visitor & cart data triggers

      Event tracking

      Embedded media players

      User interactions

      Contact Form 7

      E-commerce

      GTM for WooCommerce

      GTM for Easy Digital Downloads

      Google Data Manager

      GA4 for WooCommerce

      Google Ads conversions for WooCommerce

      Dynamic remarketing for WooCommerce

  • DevelopersExpand
    • For developers

      Actions and filters

      Theme compatibility for e-commerce

      AI assistants (MCP)

      GTM4WP on GitHub

      Changelog

      For WP managers

      GTM environments

      Hard-code GTM settings in wp-config

      Site Health

  • Blog
Download
Contact
Linkedin Github WordPress Facebook RSS
Google Tag Manager for WordPress

GTM4WP: Google Tag Manager for WordPress

The first Google Tag Manager plugin with business goals in mind.

Track what visitors do on your website and every step of the purchase in your WooCommerce or Easy Digital Downloads store. GTM4WP puts Google Analytics 4 ecommerce events, page and visitor data, form submissions and media player events into the data layer, and sets the Google consent mode defaults.

All this without coding…

Free download Learn more

Version 2.0.6 · 700,000+ active installations · rated 4.5 out of 5 on wordpress.org

GTM4WP - A Google Tag Manager plugin for WordPress

Track WordPress Data

Use Google Tag Manager for WordPress with simple post and page data in your data collection including data from custom post types and taxonomies.

Post attributes

Use post ID, author name, category and tag list to track content and analyze performance

Learn More

Visitor data

Track logged in status, user role and user ID to tailor tracking and reporting to specific user groups.

Learn More

Multisite

GTM4WP works on WordPress Multisite with some limitations. Learn more about the opportunities.

Learn More
Explore all

Track Special Data

Tailor your tracking plan to the name or branding of the device that the user is using while visiting your site.

Use the name and version of the operating system or browser to segment your reports or to personalize content with custom code in your Google Tag Manager container.

See which embedded videos and audio tracks your visitors start, pause and finish.

Device / OS / Browser

Read from the data layer data about the device being used to load your website, the operating system name and version as well as browser information.

Learn More

Media players

Track when visitors play, pause and finish embedded Vimeo, Wistia, JW Player, SoundCloud, Spotify and other video and audio players, and how far they get.

Learn More

Integrations

Google Tag Manager for WordPress works with popular WordPress plugins and Google services. Every integration is part of the free plugin.

WooCommerce

Track ecommerce interactions, set up Google Ads conversion tracking and dynamic remarketing, and tell new customers from returning ones without extra coding.

Learn More
WooCommerce
Google Analytics

Google Analytics

Track ecommerce data in your Google Analytics 4 property for WooCommerce and Easy Digital Downloads stores at no extra cost.

Learn More

Contact Form 7

Track successful form submits as well as issues while sending a message.

Learn More
Contact Form 7
Easy Digital Downloads

Easy Digital Downloads

Send Google Analytics 4 ecommerce events from your Easy Digital Downloads store and measure Google Ads conversions, including new customer data.

Learn More

Google Data Manager

Send the refunds you issue in WooCommerce or Easy Digital Downloads to Google Analytics 4 from your server, so your reports stop counting revenue you have given back.

Learn More
Google Data Manager

© 2026 Google Tag Manager for WordPress - Privacy policy - Contact

  • WordPress.org plugin page
  • Plugin support
  • Plugin reviews
  • Services
  • Documentation
    • Setup & privacy

      Container settings

      Consent mode & consent tools

      GDPR

      Exclude WordPress admins

      Restriction mode

      AMP support

      Data layer

      Page / post attributes

      Site search

      User data

      Multisite data

      Browser, device & geo data

      Visitor & cart data triggers

      Event tracking

      Embedded media players

      User interactions

      Contact Form 7

      E-commerce

      GTM for WooCommerce

      GTM for Easy Digital Downloads

      Google Data Manager

      GA4 for WooCommerce

      Google Ads conversions for WooCommerce

      Dynamic remarketing for WooCommerce

  • Developers
    • For developers

      Actions and filters

      Theme compatibility for e-commerce

      AI assistants (MCP)

      GTM4WP on GitHub

      Changelog

      For WP managers

      GTM environments

      Hard-code GTM settings in wp-config

      Site Health

  • Blog
Search