GTM4WP – A Google Tag Manager (GTM) plugin for WordPress
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 it manually. Multiple containers are also supported! 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 includes more details about the data layer. PHP 7.4 is 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 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 tag on each page. Albeit not ideal, it will work when placed lower in the code. This plugin provides a code placement option for the second code snippet. If your WordPress theme is compatible with the additions of WordPress 5.2 then this plugin will place this second code to the right place. Users of the Genisis theme, GeneratePress theme, Elementor, Oxygen Builder and Beaver Builder Theme will also have this placed correctly. To utilize this, set the compatibility mode in plugin options to off. All other users can place this second code snippet using a custom PHP code (“Manually coded” option) or select the so called “Footer” option to add the code lower in the code (it is not the recommended way but will work) Basic data included post/page titles post/page dates post/page category names post/page tag names post/page author ID and name post/page ID post types post format post count on the current page + in the current category/tag/taxonomy custom terms associated with any post type logged in status logged in user role logged in user ID (to track cross device behaviour in Google Analytics) logged in user email address (both unhashed and SHA256 hased values to be used with tracking) logger in user creation date site search data site name and id (for WordPress multisite instances) IP address of the visitor (please use the explicit consent of the visitor to utilize this) Browser / OS / Device data browser data (name, version, engine) OS data (name, version) device data (type, manufacturer, model) Data is provided using the WhichBrowser library: http://whichbrowser.net/ Weather data (beta) Push data about users’ current weather conditions into the dataLayer. This can be used to generate weather-related audience/remarketing lists on ad platforms and allows for user segmentation in your web analytics solutions: weather category (clouds, rain, snow, etc.) weather description: more detailed data temperature in Celsius or Fahrenheit air pressure wind speed and degrees Weather data is queried from Open Weather Map. Depending on your websites traffic, additional fees may apply: http://openweathermap.org/price An (free) API key from OpenWeatherMap is required for this feature to work. ipstack.com is used to determine the site visitor’s location. A (free) API key from IPStack.com is required for this feature to work: https://ipstack.com/product Media player events (experimental) Track users’ interaction with any embedded media: YouTube Vimeo Soundcloud DataLayer events can be chosen to fire upon media player load, media is being played, paused/stopped and optionally when the user reaches 10, 20, 30, …, 90, 100% of the media duration. Tracking is supported for embedded media using the built-in oEmbed feature of WordPress as well as most other media plugins and copy/pasted codes. Players injected into the website after page load are not currently supported. Scroll tracking Fire tags based on how the visitor scrolls from the top to the bottom of a page. An example would be to separate “readers” (who spend a specified amount of time on a page) from “scrollers” (who only scroll through within seconds). You can use these events to fire Analytics tags and/or remarketing/conversion tags (for micro conversions). Scroll tracking is based on the solution originally created by Nick Mihailovski Thomas Baekdal Avinash Kaushik Joost de Valk Eivind Savio Justin Cutroni Original script: http://cutroni.com/blog/2012/02/21/advanced-content-tracking-with-google-analytics-part-1/ Blacklist & Whitelist Tag Manager tags, triggers and variables To increase website security, you have the option to white- and blacklist tags/triggers/variables. You can prevent specific tags from firing or the use of certain variable types regardless of your GTM setup. If the Google account associated with your GTM account is being hacked, an attacker could easily execute malware on your website without accessing its code on your hosting server. By blacklisting custom HTML tags and/or custom JavaScript variables you can secure the Tag Manager container. Integration Google Tag Manager for WordPress integrates with several popular plugins. More integration to come! Contact Form 7: fire an event when a Contact Form 7 form was submitted with any result (mail sent, mail failed, spam detected, invalid input) WooCommerce: Implementation of GA4 E-commerce Does not support promotions since WooCommerce does not have such a feature (yet) Does not support refunds Compatibility with High Performance Order Storage (HPOS) AMP: load your AMP container on the AMP version of your pages Cookiebot: use automatic cookie blocking mode if needed Google Consent Mode v2: fire the “default” command with specific consent flags to integrat with non-certified Consent Management Platforms (CMPs) and plugins. Server side containers If you are using a server side container you can enter your custom domain name and custom path to load gtm.js from your there. Exclude specific user roles from being tracked You can set which user roles needs to be excluded from tracking when a user with that role visits the frontend. This will completely disable the container code for that user.
Top keywords
- code16×1.56%
- data14×1.36%
- page13×1.26%
- user11×1.07%
- post10×0.97%
- gtm9×0.88%
- google8×0.78%
- tags8×0.78%
- container7×0.68%
- media7×0.68%
- tag7×0.68%
- custom6×0.58%
Pixel Manager for WooCommerce – Conversion Tracking, Google Ads, GA4, TikTok, Dynamic Remarketing
The Pixel Manager is the most complete conversion tracking plugin for WooCommerce. Set up Google Ads conversion tracking, Google Analytics GA4 e-commerce tracking, Meta/Facebook Pixel, TikTok Pixel, and more – in minutes, not hours. No coding required. Unlike Google Tag Manager (GTM), which requires significant technical expertise to configure WooCommerce e-commerce tracking correctly, the Pixel Manager provides a turnkey solution with over 12 years of development. It automatically handles edge cases like payment gateway redirects, order duplication prevention, and consent mode – all the things that take hours to get right with manual tag management. 🚀 Endorsed by Google’s Tag Team This plugin was recommended to us by Google’s Tag Implementation Team. That should say enough. says @dpackert24 This plugin was demonstrated to me by a Google Tagging Support person. ‘nough said 🙂 says @galbaras We’re using this for our biggest clients and it’s working great! says @wodobo Pixel Manager for WooCommerce is the go-to plugin for both tech wizards and casual users. says @chxz What makes the Pixel Manager different? Most WooCommerce tracking plugins only handle the basics: firing a conversion pixel on the thank you page. The Pixel Manager goes much further. It tracks the entire e-commerce customer journey – from product impressions and add-to-cart events through checkout and purchase – across all major advertising and analytics platforms simultaneously. This gives you complete data for conversion optimization, dynamic remarketing audience building, and accurate ROAS reporting. The Pro version adds server-side tracking (Conversion API / CAPI) that sends conversion data directly from your server to advertising platforms. This bypasses browser limitations like ad blockers, Safari ITP cookie restrictions, and network issues – typically recovering up to 30% more conversions that browser-only tracking misses. Our unique Automatic Conversion Recovery (ACR) feature goes even further by automatically identifying and recovering missed conversions nightly. Key Benefits ✅ Easy setup – just enter your tracking IDs and you’re done. ✅ Accurate e-commerce event tracking across all platforms. ✅ GDPR and CCPA compliant with Google Consent Mode v2. ✅ Works with 15+ consent management platforms out of the box. ✅ Lightweight – won’t slow down your WooCommerce store. ✅ Payment Gateway Accuracy Report – diagnose conversion tracking drops. ✅ Automatic Conversion Recovery (ACR) – recover lost conversions (Pro). Free Tracking Pixels Google Ads Pixel – conversion value tracking, dynamic remarketing, cart item data Google Analytics Pixel (GA4) – full Enhanced E-Commerce tracking Meta Ads Pixel (Facebook Pixel) – remarketing events and custom audiences Hotjar Pixel – heatmaps and session recordings Free Features Google Tag Gateway for Advertisers – first-party tracking through Google’s servers Google Consent Mode v2 – full compliance with EU, UK, and US privacy regulations Google Ads Dynamic Remarketing – build audiences based on product interactions Google Ads Cart Item Tracking – feed cart data to Smart Shopping and Performance Max campaigns Google Shopping New Customer Parameter – optimize for new customer acquisition GA4 Enhanced E-Commerce – track product impressions, add to cart, checkout steps, and purchases Meta Remarketing Events – ViewContent, AddToCart, InitiateCheckout, Purchase Basic Order Duplication Prevention – avoid counting the same conversion twice Customizable filters – fine-tune tracking output for your specific setup Lazy-loaded product list support – works with infinite scroll and AJAX product loading Payment Gateway Accuracy Report – identify which payment gateways cause conversion tracking drops Have a look at the full feature list over here. Premium Tracking Pixels Adroll Ads Contentsquare Statistics CrazyEgg Analytics LinkedIn Ads Microsoft Ads (Bing Ads) Outbrain Ads Pinterest Ads Reddit Ads Snapchat Ads Taboola Ads TikTok Ads X (Twitter) Ads VWO (Visual Website Optimizer) – A/B testing Premium Features Automatic Conversion Recovery (ACR) – automatically recover missed conversions nightly Server-side tracking (CAPI) – Meta, TikTok, Pinterest, Snapchat, Reddit, GA4 Measurement Protocol Advanced Order Duplication Prevention Google Ads Enhanced Conversions – first-party data for improved attribution Google Ads Conversion Adjustments – send refund data back to Google Ads Scroll Tracking – measure how far visitors scroll on your pages Automatic Phone and Link Click Tracking Have a look at the full feature list over here. Ready to recover lost conversions and get accurate tracking data? Visit sweetcode.com to learn more about the Pro version. Documentation Comprehensive setup guides, troubleshooting, and API references: Open the documentation News Consent Management The Pixel Manager integrates with all major Consent Management Platforms (CMPs) to ensure your tracking pixels respect visitor consent choices. It supports Google Consent Mode v2, including region-specific consent defaults for the EU, UK, and US states with privacy regulations. Compatible consent management plugins: Beautiful and Responsive Cookie Consent Cookiebot Cookie Confirm Cookie Script Complianz GDPR/CCPA Cookie Consent Cookie Notice Cookie Notice & Compliance for GDPR / CCPA Cookie Law Info FAZ Cookie Manager GDPR Cookie Compliance WP AutoTerms CookiePro by OneTrust Termly Iubenda WP Consent API WP Cookie Consent Please read the following for additional setup information Requirements List of requirements Security Review Although we follow security best practices, we wanted to ensure that we didn’t miss anything. So, we had the plugin reviewed by Patchstack, a cybersecurity company specializing in WordPress security. The summary of their report was: “We were unable to detect any vulnerabilities that would impact the security status of the plugin in a serious way.” Managed Vulnerability Disclosure Program We are committed to ensuring the security of our customers and their data. If you believe you have found a security vulnerability in the Pixel Manager for WooCommerce, we encourage you to report it through Patchstack our security partner. Patchstack runs a managed Vulnerability Disclosure Program (mVDP) that helps us receive, triage, and respond to reported vulnerabilities. Patchstack also provides a reward for the responsible disclosure of security vulnerabilities. Report a vulnerability