TagFlow for GTM

Description

TagFlow for GTM is a powerful, lightweight, and robust Google Tag Manager implementation designed specifically to bridge the gap between complex tracking schemas and easy setup. With just a few clicks, your WordPress and WooCommerce site can push enterprise-level, highly accurate DataLayer events straight to GTM.

Whether you need to fire simple outbound link clicks or track complex WooCommerce purchase metrics like true Customer Lifetime Value (LTV), returning customer status, and Enhanced Conversions payloads, TagFlow for GTM has you covered with zero coding required.

Key Features

  • Universal GTM Injection: Automatically drops your GTM <head> and <body> (noscript) snippets efficiently without modifying your theme files.
  • Global Variables: Pushes essential details like pageTitle, pageCategory, userRole, and post IDs seamlessly on every single page load.
  • WooCommerce/EDD Integration: Full Google Analytics 4 (GA4) schemas for advanced e-commerce activities.
  • Universal Form Tracking: 1-click DataLayer integration for 12 popular form plugins.
  • Engagement Tracking: Automatically track user behavior like Scroll Depth, YouTube video plays, and Vimeo video progress.

The Ultimate WooCommerce Tracker (Built for GA4 & Ads)

TagFlow for GTM comes fully equipped with the most robust WooCommerce DataLayer built to match high-end modern tracking schemas. We support the entire customer journey:
* view_item_list (Shop and Category Pages)
* select_item (Product link clicks from grids)
* view_item (Detailed Product Page View)
* add_to_wishlist (Deep Integration with YITH Wishlist)
* add_to_cart (Flawlessly supports both standard and AJAX actions)
* view_cart
* remove_from_cart
* begin_checkout
* add_shipping_info
* add_payment_info
* purchase (Extremely robust fallback architectures for Guest Users and Enhanced Conversions)

Supported Form Plugins

You can conditionally enable or disable JavaScript execution for the following forms to save page speed:
* Contact Form 7 (CF7)
* Elementor Forms
* WPForms
* Gravity Forms
* Forminator
* Fluent Forms
* Ninja Forms
* HubSpot Forms
* Jet FormBuilder
* GoHighLevel Forms
* Typeform
* JotForm

Form tracking implementation credit: LeoMeasure.

Why Choose TagFlow for GTM?

Our purchase payload includes advanced customer object structuring. Not only does it pass standard transaction info, but it computes new_customer status, ongoing order_count, and cumulative lifetime_value metrics out of the box so you can build better Lookalike Audiences dynamically in Meta and Google Ads!

TagFlow for GTM is built and maintained by Tracking With Shadin.

External services

This plugin relies on the Google Tag Manager (GTM) service to function optimally.

  • Service: Google Tag Manager (provided by Google LLC).
  • Usage: It is used to load and manage tracking tags and scripts on your website dynamically.
  • Data Sent: When enabled, the plugin sends your GTM Container ID to Google’s servers to fetch the container script. It also pushes website interaction data (events, product details, anonymized user attributes) to the local browser dataLayer which is then processed by GTM based on your container configuration.
  • Terms of Service: Google Tag Manager Terms of Service
  • Privacy Policy: Google Privacy Policy

Installation

From your WordPress Dashboard (Recommended):
1. Go to Plugins > Add New Plugin in your WordPress dashboard.
2. Search for “TagFlow for GTM”.
3. Click Install Now and then Activate.

Manual Installation:
1. Download the plugin .zip file from the WordPress repository.
2. Go to Plugins > Add New Plugin > Upload Plugin and upload the downloaded .zip file.
3. Click Install Now and then Activate.

Setup Instructions:
1. Open your WordPress dashboard and navigate to Settings > TagFlow for GTM.
2. Enter your core Google Tag Manager Container ID (e.g., GTM-XXXXXXX).
3. Toggle your preferred E-commerce, Form Tracking, and Engagement features.
4. Click Save Changes!
5. Head over to your website and test your implementation via GTM Preview Mode.

FAQ

Does this support AJAX Add to Cart?

Yes! TagFlow for GTM leverages WooCommerce fragments and backend sessions simultaneously to guarantee we never miss an add-to-cart event, even on highly customized AJAX themes.

Does it support Enhanced Conversions?

Yes. Our customer data mapping has a deep 3-tier fallback system that ensures Email, Phone, Address, First Name, and Last Name are passed into the DataLayer whenever available so you can feed it directly to Meta/Google Ads.

Do I need a specific theme for this?

No. TagFlow for GTM is built to be theme-agnostic. The tracking hooks directly into the core WooCommerce action hooks rather than relying on frontend classes.

Does Form Tracking slow down my site?

No! JavaScript for each form tracker is conditionally loaded. If you do not enable a specific form in the dashboard, the respective JavaScript is completely stripped out to ensure peak performance.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“TagFlow for GTM” is open source software. The following people have contributed to this plugin.

Contributors

Translate “TagFlow for GTM” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.1.0

  • Renamed plugin to “TagFlow for GTM” for trademark compliance.
  • Added mandatory documentation for external services (GTM).
  • Refactored script loading to use WordPress enqueuing standards (no more direct script tags).
  • Security hardening and global prefixing (tagflow_).
  • Added sadikulshadin as a primary contributor.

1.0.5

  • Implemented Universal Form Tracking for 12 major WordPress form providers.
  • Added native Tabbed settings interface UI.
  • Introduced Engagement trackers (Scroll Depth, YouTube, Vimeo).
  • Performance optimizations allowing form scripts to load conditionally.

1.0.4

  • Performance optimization for purchase tracking DataLayer.
  • Added EDD (Easy Digital Downloads) support and enhanced AJAX add to cart tracking.
  • Security hardening and translation improvements.

1.0.3

  • Cleaned up core DataLayer events.
  • Version bump to force browser cache refresh.

1.0.0

  • Initial Plugin Release. Included core structure and full GA4 Commerce Schema integration.