Title: TagFlow for GTM
Author: Tracking with Shadin
Published: <strong>ماي 23, 2026</strong>
Last modified: جوان 1, 2026

---

Search plugins

![](https://ps.w.org/tagflow-for-gtm/assets/icon-256x256.png?rev=3553065)

# TagFlow for GTM

 By [Tracking with Shadin](https://profiles.wordpress.org/sadikulshadin/)

[Download](https://downloads.wordpress.org/plugin/tagflow-for-gtm.1.1.5.zip)

 * [Details](https://arq.wordpress.org/plugins/tagflow-for-gtm/#description)
 * [Reviews](https://arq.wordpress.org/plugins/tagflow-for-gtm/#reviews)
 *  [Installation](https://arq.wordpress.org/plugins/tagflow-for-gtm/#installation)
 * [Development](https://arq.wordpress.org/plugins/tagflow-for-gtm/#developers)

 [Support](https://wordpress.org/support/plugin/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 a robust WooCommerce DataLayer built to
match high-end modern tracking schemas. It supports 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` (Supports both standard and AJAX actions) * `
view_cart` * `remove_from_cart` * `begin_checkout` * `add_shipping_info` * `add_payment_info`*`
purchase` (Includes fallback handling for guest users and Enhanced Conversions data)

### 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](https://shadin.bd).

### 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](https://marketingplatform.google.com/about/analytics/tag-manager/use-policy/)
 * **Privacy Policy:** [Google Privacy Policy](https://policies.google.com/privacy)

## 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 uses WooCommerce hooks, fragments, and frontend fallbacks to
improve compatibility across standard and AJAX add-to-cart flows.

### 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

 *   [ Tracking with Shadin ](https://profiles.wordpress.org/sadikulshadin/)

[Translate “TagFlow for GTM” into your language.](https://translate.wordpress.org/projects/wp-plugins/tagflow-for-gtm)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/tagflow-for-gtm/), 
check out the [SVN repository](https://plugins.svn.wordpress.org/tagflow-for-gtm/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/tagflow-for-gtm/)
by [RSS](https://plugins.trac.wordpress.org/log/tagflow-for-gtm/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.1.5

 * Prevented checkout, order-pay, and order-received pages from outputting pending
   add-to-cart events.
 * Added checkout-aware guards for add-to-cart click, form, AJAX endpoint, and fragment
   fallbacks.
 * Blocked late add-to-cart events after purchase has already fired on the same 
   page.
 * Improved view_item and add_to_cart compatibility for custom WooCommerce themes
   using DOM, body class, WooCommerce JS event, and queried product fallbacks.
 * Tightened product-context detection to avoid firing product detail events on 
   cart, checkout, wishlist, quick-view, compare, and remove controls.

#### 1.1.4

 * Added a global frontend dedupe guard for TagFlow DataLayer events.
 * Improved duplicate prevention across checkout info, product selection, form, 
   EDD AJAX, video, and scroll events.
 * Updated the internal asset version constant to match the plugin release version
   for reliable cache busting.

#### 1.1.3

 * Added stronger duplicate prevention for WooCommerce cart action events.
 * Routed AJAX fragment add-to-cart events through the shared fallback dedupe layer.

#### 1.1.2

 * Added optional event name suffix support for decorated DataLayer event names.
 * Improved WooCommerce event compatibility with page-load, click, AJAX, Store API,
   and cart drawer fallbacks.
 * Removed the development-only debug event source option from public settings.
 * Refined readme wording for clearer compatibility expectations.

#### 1.1.1

 * Fixed WooCommerce ecommerce `value` fields to output numeric values instead of
   strings.

#### 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.

## Meta

 *  Version **1.1.5**
 *  Last updated **5 months ago**
 *  Active installations **10+**
 *  WordPress version ** 5.6 or higher **
 *  Tested up to **6.9.11**
 *  PHP version ** 7.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/tagflow-for-gtm/)
 * Tags
 * [ecommerce analytics](https://arq.wordpress.org/plugins/tags/ecommerce-analytics/)
   [google tag manager](https://arq.wordpress.org/plugins/tags/google-tag-manager/)
   [WooCommerce Tracking](https://arq.wordpress.org/plugins/tags/woocommerce-tracking/)
 *  [Advanced View](https://arq.wordpress.org/plugins/tagflow-for-gtm/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/tagflow-for-gtm/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/tagflow-for-gtm/reviews/)

## Contributors

 *   [ Tracking with Shadin ](https://profiles.wordpress.org/sadikulshadin/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/tagflow-for-gtm/)