Generated by Rank Math SEO, this is an llms.txt file designed to help LLMs better understand and index this website. # Google Tag Manager for WordPress: The first Google Tag Manager plugin with business goals in mind ## Sitemaps [XML Sitemap](https://gtm4wp.com/sitemap_index.xml): Includes all crawlable and indexable pages. ## Posts - [GTM4WP 2.0.1 is out](https://gtm4wp.com/announcements/gtm4wp-2-0-1-is-out.html): GTM4WP 2.0.1 is a bugfix release: checkout step events no longer fire on the block-based Cart page, and a settings screen blocked by an ad or privacy blocker now explains what happened. - [GTM4WP 2.0.0 is out](https://gtm4wp.com/announcements/gtm4wp-2-0-0-is-out.html): GTM4WP 2.0.0 is the new stable release on wordpress.org. A short summary of what changed, with links to the posts and documentation pages that cover the details. - [What GTM4WP 2.0 changes for WooCommerce stores](https://gtm4wp.com/development-log/what-gtm4wp-2-0-changes-for-woocommerce-stores.html): GTM4WP 2.0 changes seven things you should check in your plugin settings and Google Tag Manager container after upgrading a WooCommerce store. - [GTM4WP 2.0.0 Release Candidate is available for download](https://gtm4wp.com/development-log/gtm4wp-2-0-0-release-candidate-is-available-for-download.html): Release candidate of GTM4WP 2.0 is out. You can download it from GitHub. - [GTM4WP 2.0.0 beta 3 is available for download](https://gtm4wp.com/development-log/gtm4wp-2-0-0-beta-3-is-available-for-download.html): The third beta of GTM4WP 2.0 is out. You can download it from GitHub. - [Prepare your measurement setup for the new cache-safe data layer](https://gtm4wp.com/development-log/prepare-your-measurement-setup-for-the-new-cache-safe-data-layer.html): GTM4WP 2.0 introduces a new option that help WordPress site owners have more reliable tracking with the cache-safe data layer option. - [GTM4WP 2.0.0 beta 2 is available for download](https://gtm4wp.com/announcements/gtm4wp-2-0-0-beta-2-is-available-for-download.html): The second beta of GTM4WP 2.0 is out. You can download it from GitHub. - [GTM4WP 1.22.4 is out, and 2.0 is on the way](https://gtm4wp.com/announcements/gtm4wp-1-22-4-is-out-and-2-0-is-on-the-way.html): GTM4WP 1.22.4 is out: let me be straight about where things stand, what just shipped, and what happens next. - [Be prepared to big changes in GTM4WP v1.20](https://gtm4wp.com/announcements/be-prepared-to-big-changes-in-gtm4wp-v1-20.html): GTM4WP version 1.20 is set to be released on February 5th. I believe the most fitting title for this release would be "The Big Cleanup." Get ready to removed features to ensure your measurement setup continues to function smoothly. - [GTM4WP v1.15 beta1 – Test the new version before the release](https://gtm4wp.com/announcements/gtm4wp-v1-15-beta1-test-the-new-version-before-the-release.html): Along with some fixes, GTM4WP v1.15 beta1 comes with lots of updates to existing functionality and some new features as well. - [GTM4WP v1.14: good-bye jQuery, welcome WooCommerce Blocks](https://gtm4wp.com/announcements/gtm4wp-v1-14-good-bye-jquery-welcome-woocommerce-blocks.html): GTM4WP v1.14: One of the most waited features was the support for WooCommerce Blocks. And GTM4WP does not need jQuery anymore. - [GTM4WP v1.13 – Updated Google Dynamic Remarketing and support for server-side containers](https://gtm4wp.com/announcements/gtm4wp-v1-13-updated-google-dynamic-remarketing-and-support-for-server-side-containers.html): An update to the Google Ads Dynamic Remarketing codes are here as well as support for server-side containers with custom domains - [GTM4WP v1.12 – Google Analytics 4 tracking is here](https://gtm4wp.com/announcements/gtm4wp-v1-12-google-analytics-4-tracking-is-here.html): Finally, Google Analyitcs 4 tracking is here. And with that, the next generation of the popular measurement product can be used on WooCommerce sites. And just like every other feature of GTM4WP, the GA4 integration is free too! - [Codeless container placement option and WordPress 5.5](https://gtm4wp.com/development-log/codeless-container-placement-option-and-wordpress-5-5.html): With WordPress 5.5 codeless container placement works now in less cases. But you can fix your theme. - [GTM4WP: the past and the future](https://gtm4wp.com/announcements/gtm4wp-the-past-and-the-future.html): You may have noticed that nothing special happened around this plugin in the past few months. First, I want to reassure everyone that the plugin is not abandoned. There will be a next version and another next version, etc. - [Google Tag Manager for WordPress v1.10 – Even better WooCommerce integration](https://gtm4wp.com/announcements/google-tag-manager-for-wordpress-v1-10-even-better-woocommerce-integration.html): Google Tag Manager for WordPress v1.10 delivers besides some bug fixes even better WooCommerce related features to boost your marketing efforts. - [Facebook Pixel update: do you think you are ready?](https://gtm4wp.com/google-tag-manager/facebook-pixel-update-do-you-think-you-are-ready.html): 24th October is an important day in the life of Facebook's user tracking: the Facebook Pixel. Let me explain you what is happening and what you need to do especially if your business is located in the EU. - [GTM4WP v1.9: AMP, WooCommerce, Google Optimize and more](https://gtm4wp.com/announcements/gtm4wp-v1-9-amp-woocommerce-google-optimize.html): GTM4WP v1.9 has been released with lots of additions, improvements around WooCommerce and Google Optimize integration and better compatibility with cache plugins. - [GTM4WP v1.8 beta 1 is here – by far the longest changelog](https://gtm4wp.com/announcements/gtm4wp-v1-8-beta-1-is-here-by-far-the-longest-changelog.html): I am happy to announce that v1.8 of this Google Tag Manager plugin is out, at least in beta stage. If you read the changelog, you will see that this version includes by far the most changes, additions in the history of this plugin. Let's go through those changes. - [Missing purchase events in GA4? Here are 12 reasons why](https://gtm4wp.com/google-tag-manager/missing-purchase-event-in-ga4.html): Your WooCommerce order is in the admin but the purchase event never reached GA4. Twelve reasons why, from consent mode to gateway redirects, and the fix for each. - [Google Analytics plugin or Tag Manager plugin: benefits and disadvantages](https://gtm4wp.com/google-tag-manager/google-analytics-plugin-or-tag-manager-plugin-benefits-and-disadvantages.html): WordPress has a great gallery of plugins, extensions written by 3rd party developers. There are some plugins in the top downloaded list, which are installed on many websites, that makes it easy to measure website traffic, visitor behavior using Google Analytics. More and more users of my Google Tag Manager plugin are therefore confused how this plugin and Google Tag Manager itself differs from those very good and popular Google Analytics plugins. Let's talk about the benefits of using my plugin. - [4 years ago… and now a new home](https://gtm4wp.com/announcements/4-years-ago-and-now-a-new-home.html): It is incredible that nearly 4 years passed since I opened a new folder on my laptop and started to build this Google Tag Manager WordPress plugin. And now, it is time to move to this new domain where the growth of the plugin can be supported much easier. Let me give you a brief history and some details about plans around this plugin. ## Pages - [Container settings reference](https://gtm4wp.com/setup-gtm4wp-features/container-settings-reference): Every option in the Google Tag Manager container section of GTM4WP: what it changes on your pages, what it is set to by default, and when to change it. - [Restriction mode](https://gtm4wp.com/setup-gtm4wp-features/restriction-mode): Both GTM4WP tag restriction settings: what blocklist and allowlist mode do, which entities you can restrict, and how to check that the result is the one you wanted. - [AMP support](https://gtm4wp.com/setup-gtm4wp-features/amp-support): How GTM4WP loads a Google Tag Manager AMP container on the AMP version of your pages, what data reaches it, and which events cannot work there. - [WooCommerce settings reference](https://gtm4wp.com/google-tag-manager-for-woocommerce/woocommerce-settings-reference): Every option in the WooCommerce section of GTM4WP: what it changes, what it is set to by default, and when to change it. - [How to set up Google consent mode](https://gtm4wp.com/setup-gtm4wp-features/consent-mode-and-consent-tools/how-to-setup-google-consent-mode): GTM4WP sends the Google consent mode default command before your container loads. This page explains the seven signals, when to enable the option, and how to build the update command in Google Tag Manager. - [CookieYes + GTM4WP – How to setup?](https://gtm4wp.com/setup-gtm4wp-features/consent-mode-and-consent-tools/cookieyes-gtm4wp-how-to-setup): The CookieYes consent bridge turns the CookieYes browser events into a cookie_consent_update data layer event. This page covers the web app prerequisite, both payload shapes and the Google Tag Manager setup. - [Cookiebot + GTM4WP – How to setup?](https://gtm4wp.com/setup-gtm4wp-features/consent-mode-and-consent-tools/cookiebot-gtm4wp-how-to-setup): What the Cookiebot auto blocking option in GTM4WP actually does, which consent mode settings to combine it with, and how to read the Cookiebot consent state in Google Tag Manager. - [Axeptio + GTM4WP – How to setup?](https://gtm4wp.com/setup-gtm4wp-features/consent-mode-and-consent-tools/axeptio-gtm4wp-how-to-setup): GTM4WP can load the Axeptio SDK for you, no separate Axeptio plugin required. This page covers the project ID, the cookies version, the Google Consent Mode v2 option and the gtm4wp.axeptioConsentUpdate data layer event. - [Consent mode and consent tools](https://gtm4wp.com/setup-gtm4wp-features/consent-mode-and-consent-tools): How GTM4WP connects your consent management tool to your Google Tag Manager container: the consent mode default command, Cookiebot, CookieYes and Axeptio. - [How to track user logins, registrations and form interactions](https://gtm4wp.com/setup-gtm4wp-features/how-to-track-user-logins-registrations-and-form-interactions): GTM4WP turns three things your visitors do into data layer events: moving between the fields of a form, logging in and registering an account. This page shows how to switch them on and how to build the triggers in Google Tag Manager. - [How to track Contact Form 7 submissions](https://gtm4wp.com/setup-gtm4wp-features/how-to-track-contact-form-7-submissions): GTM4WP turns every Contact Form 7 submission into a data layer event carrying the form ID, the form name and, if you allow it, the submitted field values, so you can build conversion triggers in Google Tag Manager. - [Track embedded media players in Google Tag Manager](https://gtm4wp.com/track-embedded-media-players-in-google-tag-manager): Google Tag Manager for WordPress can report what your visitors do with the media players embedded on your site. Every play, pause, seek and completion becomes a data layer event, so you can build triggers in Google Tag Manager without writing player-specific JavaScript. - [Track dynamically inserted media players](https://gtm4wp.com/track-embedded-media-players-in-google-tag-manager/track-dynamically-inserted-media-players): New in 2.0.0. A media player that appears after the page has finished loading, in a popup, a lightbox or a section fetched in the background, is invisible to the media trackers unless you tell them to keep watching. The Track dynamically inserted players option does that. - [VideoPress video tracking in Google Tag Manager](https://gtm4wp.com/track-embedded-media-players-in-google-tag-manager/videopress-video-tracking): New in 2.0.0. Google Tag Manager for WordPress reports how your visitors watch the VideoPress videos embedded on your site. VideoPress is the video hosting built into Jetpack and WordPress.com, so this covers videos you uploaded through either one. - [Cloudflare Stream video tracking in Google Tag Manager](https://gtm4wp.com/track-embedded-media-players-in-google-tag-manager/cloudflare-stream-video-tracking): New in 2.0.0. Google Tag Manager for WordPress reports how your visitors watch the Cloudflare Stream videos embedded on your site. Starting, pausing, seeking, buffering and finishing become data layer events that you can use as triggers in Google Tag Manager. - [Mixcloud tracking in Google Tag Manager](https://gtm4wp.com/track-embedded-media-players-in-google-tag-manager/mixcloud-tracking): New in 2.0.0. Google Tag Manager for WordPress reports how your visitors listen to the Mixcloud shows embedded on your site. Starting, pausing, buffering and reaching the end become data layer events that you can use as triggers in Google Tag Manager. - [Dailymotion video tracking in Google Tag Manager](https://gtm4wp.com/track-embedded-media-players-in-google-tag-manager/dailymotion-video-tracking): New in 2.0.0. Google Tag Manager for WordPress reports how your visitors watch the Dailymotion videos embedded on your site. Starting, pausing, seeking, buffering and finishing become data layer events, and so do changes to the volume, the quality and full screen. - [JW Player video tracking in Google Tag Manager](https://gtm4wp.com/track-embedded-media-players-in-google-tag-manager/jw-player-video-tracking): New in 2.0.0. Google Tag Manager for WordPress reports how your visitors watch the JW Player videos on your site. Starting, pausing, seeking, buffering and finishing become data layer events that you can use as triggers in Google Tag Manager. - [Wistia video tracking in Google Tag Manager](https://gtm4wp.com/track-embedded-media-players-in-google-tag-manager/wistia-video-tracking): New in 2.0.0. Google Tag Manager for WordPress reports how your visitors watch the Wistia videos embedded on your site. Starting, pausing, seeking and finishing become data layer events, and so do changes to the volume and the playback speed. - [Twitch tracking in Google Tag Manager](https://gtm4wp.com/track-embedded-media-players-in-google-tag-manager/twitch-tracking): New in 2.0.0. Google Tag Manager for WordPress reports how your visitors watch the Twitch streams and videos embedded on your site. Starting, pausing, seeking and finishing become data layer events, and the plugin also reports when a channel goes live or drops offline while someone is watching. - [Spotify tracking in Google Tag Manager](https://gtm4wp.com/track-embedded-media-players-in-google-tag-manager/spotify-tracking): New in 2.0.0. Google Tag Manager for WordPress reports how your visitors listen to the Spotify tracks, episodes and playlists embedded on your site. Starting, pausing, buffering and reaching the end become data layer events that you can use as triggers in Google Tag Manager. - [HTML5 video and audio tracking in Google Tag Manager](https://gtm4wp.com/track-embedded-media-players-in-google-tag-manager/html5-video-and-audio-tracking): Open the plugin settings, go to the Media events section, expand the Media players group and check HTML5 video and audio events. The option is switched off by default. - [SoundCloud audio tracking in Google Tag Manager](https://gtm4wp.com/track-embedded-media-players-in-google-tag-manager/soundcloud-audio-tracking): Google Tag Manager for WordPress reports how your visitors listen to the SoundCloud tracks embedded on your site. Playing, pausing, seeking and finishing a track become data layer events, and so do the download, buy and share buttons inside the player. - [Vimeo video tracking in Google Tag Manager](https://gtm4wp.com/track-embedded-media-players-in-google-tag-manager/vimeo-video-tracking): Google Tag Manager for WordPress reports how your visitors watch the Vimeo videos embedded on your site. Starting playback, pausing, seeking, buffering, changing the quality or the playback rate, going full screen and switching to Picture in Picture all become data layer events that you can use as triggers in Google Tag Manager. - [YouTube video tracking in Google Tag Manager](https://gtm4wp.com/track-embedded-media-players-in-google-tag-manager/youtube-video-tracking): Google Tag Manager for WordPress can report how your visitors watch the YouTube videos embedded on your site. Starting playback, pausing, buffering and reaching the end all become data layer events that you can use as triggers in Google Tag Manager. - [How to set up triggers for visitor, device, customer and cart data](https://gtm4wp.com/setup-gtm4wp-features/how-to-setup-triggers-for-visitor-device-customer-and-cart-data): Device data, visitor data, WooCommerce customer data and cart data no longer arrive in the first data layer push. Each has a data layer event of its own, so the tags that read them need a Custom Event trigger. - [WebToffee GDPR Cookie Consent Plugin + GTM4WP – How to setup?](https://gtm4wp.com/setup-gtm4wp-features/webtoffee-gdpr-cookie-consent-plugin-gtm4wp-how-to-setup): Google Tag Manager for WordPress can now integrate with the popular GDPR Cookie Consent Plugin by WebToffee. This integration lets you set up Consent Mode in Google Tag Manager based on the cookie choices users make in the WebToffee plugin. - [Enhanced Conversions for Google Ads with WooCommerce – How to setup?](https://gtm4wp.com/google-tag-manager-for-woocommerce/enhanced-conversions-for-google-ads-with-woocommerce-how-to-setup): Measuring conversions with cookies alone has become less reliable. Browser tracking protections, shorter cookie lifetimes and consent requirements all mean that some of your conversions can no longer be connected to the ad click that produced them. Google's answer is Enhanced Conversions, which measures conversions rather than complete user journeys. You can read more about this feature in the Google Ads Help Center. - [Track country, city and other geo data of the current visitor](https://gtm4wp.com/use-special-3rd-party-data-in-google-tag-manager/track-country-city-and-other-geo-data-of-the-current-visitor): This page describes GTM4WP 2.0.0 and newer. That release removed the geo data feature that was built on the IP Stack service, and one geo variable survives it: geoCloudflareCountryCode, which needs no 3rd party service and no API key. The variables that IP Stack provided are kept at the bottom of this page, each marked Legacy 1.x variable, so that you can look up what they used to hold. - [Google Tag Manager for WooCommerce](https://gtm4wp.com/google-tag-manager-for-woocommerce): GTM4WP is a free plugin to integrate Google Tag Manager for WooCommerce websites. - [Setup Google Tag Manager Environments using GTM4WP](https://gtm4wp.com/gtm4wp-for-developers/setup-google-tag-manager-environments-using-gtm4wp): Google Tag Manager Environments is an advanced feature that allows you to publish different container version into different versions of your website. Environments are useful for organizations that use multi-tiered environments in their development workflow. - [Hard code Google Tag Manager parameters in wp-config.php](https://gtm4wp.com/gtm4wp-for-developers/hard-code-google-tag-manager-parameters-in-wp-config-php): You can set a fixed Google Tag Manager container ID and environment parameters in wp-config.php using PHP constants. This gives you better workflows when dealing with different environments to develop and test updated versions of the whole site. - [Use special 3rd party data in Google Tag Manager](https://gtm4wp.com/use-special-3rd-party-data-in-google-tag-manager): Track data loaded using 3rd party data sources. - [Use basic WordPress data in Google Tag Manager](https://gtm4wp.com/use-basic-wordpress-data-in-google-tag-manager): Track basic WordPress post and page attributes as well as custom post type attributes. Track content groups and target user segments based on basic WordPress data. - [Download Google Tag Manager for WordPress](https://gtm4wp.com/download): To download Google Tag Manager for WordPress (aka. GTM4WP) for free, please select from the following options: - [Google Ads conversion tracking for WooCommerce – How to setup?](https://gtm4wp.com/google-tag-manager-for-woocommerce/how-to-setup-google-ads-conversion-tracking-for-woocommerce): Learn to setup advanced Google Ads conversion tracking for WooCommerce purchases using Google Tag Manager and GTM4WP. - [Actions and filters in GTM4WP for developers](https://gtm4wp.com/gtm4wp-for-developers/actions-and-filters-in-gtm4wp-for-developers): On this page, you can read more about all WordPress actions and filters provided by GTM4WP. - [GTM4WP For Developers](https://gtm4wp.com/gtm4wp-for-developers): If you are a theme author or other 3rd party plugin author, here are some articles for you - [Google Analytics 4 / GA4 – Enhanced Ecommerce tracking – How to setup?](https://gtm4wp.com/google-tag-manager-for-woocommerce/how-to-setup-enhanced-ecommerce-tracking-google-analytics-4-ga4-version): Setting up ecommerce tracking for your Google Analytics 4 property with WooCommerce, Google Tag Manager and GTM4WP. - [GDPR](https://gtm4wp.com/gdpr): Many GTM4WP users raise the question, how to make using this plugin compliant with GDPR. This article tries to explain this. - [WordPress multisite information](https://gtm4wp.com/use-basic-wordpress-data-in-google-tag-manager/wordpress-multisite-information): The following two data layer variables tell you which site of a WordPress Multisite network the visitor is on. Both are added on every page of the site. - [GTM4WP Blog](https://gtm4wp.com/blog) - [Track weather conditions around the current visitor](https://gtm4wp.com/use-special-3rd-party-data-in-google-tag-manager/track-weather-conditions-around-the-current-visitor): GTM4WP loaded the weather conditions around the visitor from the OpenWeatherMap API and cached the result for one hour to keep the number of API calls down. It relied on the geo data feature to work out where the visitor was, so both had to be set up, each with an API key of its own, and both services could charge for the traffic a busy site generated. The geo data feature was removed in 2.0.0 as well and is described on the geo data page. - [WordPress taxonomy listing page – access post count in Google Tag Manager](https://gtm4wp.com/use-basic-wordpress-data-in-google-tag-manager/wordpress-taxonomy-llisting-page-post-count-in-google-tag-manager): The plugin can add the number of posts shown on the current page and the total number of posts behind the current listing to the data layer. Both variables are most useful on category, tag and custom taxonomy listing pages, where they tell you how much content the visitor was offered. - [Device attributes in the data layer](https://gtm4wp.com/use-special-3rd-party-data-in-google-tag-manager/device-attributes-in-the-data-layer): Google Tag Manager for WordPress can add the type and the model of the device your visitor uses into the data layer. Turn on the Device data option in the Browser, OS & device data section of the plugin settings to make these variables available. - [Operating system attributes in the data layer](https://gtm4wp.com/use-special-3rd-party-data-in-google-tag-manager/operating-system-attributes-in-the-data-layer): Google Tag Manager for WordPress can add the name and version of the operating system your visitor uses into the data layer. Turn on the OS data option in the Browser, OS & device data section of the plugin settings to make these variables available. - [Browser attributes in the data layer](https://gtm4wp.com/use-special-3rd-party-data-in-google-tag-manager/browser-attributes-in-the-data-layer): Google Tag Manager for WordPress can add the name and version of the browser your visitor uses into the data layer. Turn on the Browser data option in the Browser, OS & device data section of the plugin settings to make these variables available. - [Site search usage on your WordPress site](https://gtm4wp.com/use-basic-wordpress-data-in-google-tag-manager/site-search-usage-on-your-wordpress-site): You do not need these variables to report internal site search in Google Analytics 4. WordPress passes the search term in the s query parameter, and site search in enhanced measurement watches that parameter by default, so Google Analytics records the search on its own. Use the variables below when you need more than that, for example your own trigger, a remarketing audience or a custom parameter on another tag. - [WordPress page/post attributes in Google Tag Manager](https://gtm4wp.com/use-basic-wordpress-data-in-google-tag-manager/wordpress-page-post-attributes-in-google-tag-manager): Use the following data layer variables to access data about the content that is currently shown. They are available on single posts and pages and on archive pages, and they support custom post types as well. ## Categories - [Announcements](https://gtm4wp.com/announcements) - [Development Log](https://gtm4wp.com/development-log) - [Google Tag Manager Guides](https://gtm4wp.com/google-tag-manager) Official WordPress plugin repository page: https://wordpress.org/plugins/duracelltomi-google-tag-manager/ Development page in GitHub: https://github.com/duracelltomi/gtm4wp/