Google Tag Manager
GA4-ready GTM for Magento 2
- GA4 Events Structured ecommerce dataLayer
- CSP Safe Hyvä-friendly container load
- Consent Ready OneTrust, Cookiebot, CookieYes
- Server Side Optional Measurement Protocol
Accurate GA4 ecommerce tracking
Manual tag setup is error-prone and missing ecommerce events hurt marketing decisions. This extension injects Google Tag Manager and pushes structured GA4 dataLayer events for views, cart, checkout, and purchase.
- Loads your GTM container with optional deferred loading
- GA4 events including view_item, add_to_cart, purchase
- Track by SKU or ID with optional brand and variant
- Tax, shipping, coupon, currency, and order ID controls
- Consent hooks for OneTrust, Cookiebot, and CookieYes
Built for your store
Hyvä-oriented Magento 2.4.x GTM setup with CSP-conscious loading and optional React Checkout Pro purchase plugins.
- Works with Magento 2.4.x Open Source & Adobe Commerce
- PHP 8.1, 8.2, and 8.3 compatible
- Configure under Toweringmedia Google Tag Manager (Hyvä)
- Ads-ready dataLayer for conversion and remarketing
- Core tracking works without React Checkout Pro
How It works
See It In Action
Coming Soon...
Google Tag Manager for Magento 2
Unlock powerful tracking and marketing automation with a clean, reliable Google Tag Manager integration built specifically for Magento 2.
This extension provides a fully structured dataLayer that powers GA4, Google Ads, remarketing, and third-party analytics tools — without modifying Magento core files.
Why This Extension?
Many GTM implementations in Magento are incomplete, inconsistent, or unreliable. Revenue mismatches, missing events, and incorrect product data can break your reporting and advertising performance.
This extension ensures:
-
Accurate eCommerce tracking
-
Proper event sequencing
-
Clean JSON dataLayer output
-
No duplicate purchase events
-
Reliable transaction values
Built for merchants who depend on data accuracy.
Included eCommerce Events
The extension automatically pushes structured GA4-compatible events including:
-
view_item -
view_item_list -
select_item -
add_to_cart -
remove_from_cart -
begin_checkout -
purchase
Each event includes:
-
Product ID / SKU
-
Name
-
Category
-
Price
-
Quantity
-
Coupon (if applied)
-
Tax & shipping (for purchase)
-
Transaction ID
Revenue Accuracy
The purchase event includes:
-
Grand total
-
Tax amount
-
Shipping amount
-
Applied coupon code
-
Currency
-
Order ID
No more revenue mismatches between Magento and GA4.
Built for Performance
-
No blocking scripts
-
No unnecessary observers
-
Optimized event dispatch
-
Lightweight output
-
Cache-friendly implementation
Works seamlessly with:
-
Full Page Cache
-
Varnish
-
LiteSpeed
-
Hyvä Theme
-
Luma Theme
Google Ads & Remarketing Ready
Because the extension pushes a complete structured dataLayer, you can:
-
Configure Google Ads conversion tracking
-
Build dynamic remarketing audiences
-
Track ROAS accurately
-
Use Enhanced Conversions
-
Deploy Meta / TikTok / LinkedIn pixels via GTM
All without editing theme files.
Clean Magento Architecture
-
No core file modifications
-
Magento event/observer based
-
Version-safe implementation
-
Easy to upgrade
-
Compatible with Magento 2.4.x
Simple Setup
-
Install extension
-
Enter your GTM Container ID (GTM-XXXXXX)
-
Publish your container
-
Done
Tracking begins immediately.
Who Is This For?
-
Magento merchants running Google Ads
-
Agencies managing paid traffic
-
Stores migrating to GA4
-
Businesses that require accurate conversion tracking
-
Developers who want a clean GTM foundation
Key Features
CSP-safe Google Tag Manager and GA4 ecommerce tracking built for Magento 2 and Hyvä storefronts.
- GTM container inject Load your GTM container with optional deferred loading.
- GA4 ecommerce events Push view, cart, checkout, and purchase events to the dataLayer.
- Product identifiers Track by SKU or ID with optional brand and variant fields.
- Purchase accuracy Include tax, shipping, coupon, currency, and order ID controls.
- Cookie consent hooks Integrate with common consent managers before firing tags.
- Ads-ready dataLayer Support Google Ads conversion and remarketing setups in GTM.
- Container export tools Export GTM container JSON and event documentation from admin tools.
-
Hyvä optimized
Built for Hyvä storefronts with CSP-conscious script loading.
Demo
Docs & Support
📘 Documentation
Get started quickly with our detailed user guide. The documentation covers everything from installation to GTM container setup, ecommerce tracking, and advanced configuration.
- Step-by-step installation instructions
- Google Tag Manager container configuration
- Enhanced ecommerce event tracking setup
- Google Analytics and Ads integration guidance
- Testing and troubleshooting best practices
💬 Support
Need help? Our Magento experts are here to assist you with setup, configuration, and tracking troubleshooting.
- Quick and reliable email support
- Help with installation and GTM setup
- Troubleshooting tracking and event issues
- Guidance for Analytics and Ads integrations
- Regular updates and compatibility support
Frequently Asked Questions
The extension connects your Magento 2 store with Google Tag Manager, allowing you to manage tracking tags and capture ecommerce events without manual code edits.
Common events such as product views, add to cart, remove from cart, checkout steps, purchases, and customer interactions can be tracked depending on your setup.
Basic familiarity with Google Tag Manager is helpful, but the extension simplifies setup by automatically sending Magento ecommerce data to your GTM container.
Yes, accurate tracking data helps optimize Google Ads, Analytics reports, remarketing campaigns, and overall conversion performance.
Where do I enter my GTM and GA4 IDs?
Go to Stores → Configuration → Toweringmedia → Google Tag Manager (Hyvä). Enable the module, set your GTM Container ID and optional GA4 Measurement ID, then choose deferred loading and product-tracking options.
Does it require React Checkout Pro?
No. Core GTM and GA4 dataLayer tracking work without React Checkout Pro. Optional plugins improve purchase tracking when RCP payment flows are present.
Can I delay GTM until after shopper interaction?
Yes. Enable Defer GTM loading in the General settings so the container loads after user interaction for better frontend performance.
Do you offer support?
Yes. Email support@toweringmedia.com or call (773) 466-2454. Updates and support continue while your subscription is active.
Can I try a demo?
Yes. Use the View Demo button on this page. For a guided walkthrough, email support@toweringmedia.com.
What happens when I don’t renew?
Uncheck auto-renew at purchase, or cancel later. You keep access until the end of the paid period. After that, updates and support stop.
Technical Specifications
- Magento Version: Compatible with Magento 2.4.x (Open Source & Adobe Commerce)
- PHP Version: PHP 8.1–8.3 (composer >=8.1 <8.4)
- Framework: Built using Magento 2 native architecture (no core overrides)
- Installation Type: Composer / Manual installation supported
- Module Dependency: Requires Toweringmedia Base (toweringmedia/module-base)
- Integration Type: Google Tag Manager Container Integration
- Tracking Support: Enhanced Ecommerce Events
- Compatible Platforms: Google Analytics / Google Ads / GTM
- Container ID Setup: Admin configurable
- Script Loading: Header / Body container placement
- Multi-Store Support: Yes
- Store Scope Configuration: Website / Store View level
- Tracked Events: View Item / Add to Cart / Checkout / Purchase
- Checkout Compatibility: Magento native checkout supported
- Cookie Consent Ready: Can be configured with GTM consent mode
- Admin Configuration Path: Stores → Configuration → Toweringmedia → Google Tag Manager (Hyvä)
- Security: No core overrides, Magento standard implementation
- Performance Impact: Minimal (lightweight implementation)
- Updates: Ongoing compatibility and feature improvements
Compatible with your Magento 2 store
Compatible with Magento 2.4.x (Open Source and Adobe Commerce) and PHP 8.1, 8.2, and 8.3. Requires toweringmedia/module-base. Configure under Stores → Configuration → Toweringmedia → Google Tag Manager (Hyvä).
-
Magento 2.4.x
Open Source & Adobe Commerce
Updates & supportKeep your store running smoothly