Google tag manager with consent mode GDPR for Magento

SKU
MBEXT005
Quickly and easily update measurement codes & related code fragments to Google Analystics 4 without having to modify the code.
Include Google Consent Mode v2 that designed for compliance with GDPR, enhancing user privacy by offering granular control over cookie consent.
$90
2.4.x, 2.4.9 compatible
Hyva Theme Theme compatiable
 
One-Time Payment
No monthly/yearly fee
 
30 Days Return
If item issue can't be fixed
 
Lifetime update
No extra fee
 
24/7 Support
6 months free

Built for Magento merchants

One Magento integration, clearer tracking

Prepare ecommerce data in Magento, then use Google Tag Manager to route it to the Google tags your store needs.

  • GTMCentral tag management
  • GA4Ecommerce events
  • ConsentConsent Mode v2
  • Google AdsConversion tracking
  • RemarketingProduct context
  • EnhancedConversion variables
  • Data layerMagento EAV mapping
  • Server URLOptional container endpoint

From Magento data to configured Google tags

The extension prepares Magento product, category, cart, checkout, and customer context as data-layer events. GTM then routes that data to the tags you configure.

  1. Magento storefront
  2. Ecommerce data layer
  3. Google Tag Manager
    • GA4
    • Google Ads
    • Consent Mode v2

Magento ecommerce event tracking

Follow the customer journey with ecommerce events that your GTM destinations can use.

Discovery

view_item_listselect_itemview_item

Cart

add_to_cartremove_from_cartview_cart

Checkout

begin_checkoutadd_shipping_infoadd_payment_info

Conversion

purchase

Customer

loginsign_uplogout

Admin and offline events

Administrator-created order tracking can produce purchase. Refund and order-cancellation handling produces refund when enabled and configured with Measurement Protocol credentials.

Make Magento conversion data usable in Google Ads

Measure configured conversion actions such as purchases, provide product context for appropriately configured dynamic remarketing tags, and use the supplied GTM container variables for enhanced conversions.

  • Configure your Google Ads destination and applicable consent or legal basis in GTM.
  • Import the supplied GTM container as a starting point, then review its tags for your store.
Configuration walkthrough for the shipped GTM import; screen labels may vary by Google UI version.

The extension provides a configurable consent popup and passes configured consent states to Google tags. It helps support a GDPR-oriented consent implementation; merchant legal review, cookie inventory, regional behavior, and tag configuration remain required.

Visitor consent interface and GTM debug view showing Consent Mode default and update states
A visitor consent interface alongside GTM Debug view evidence for the configured default and update consent states.

Inspect the data your Magento store sends

This purchase-event debug example includes item parameters such as SKU, product name, category, price, quantity, and checkout context. Available fields depend on your product, category, customer attribute mappings, and GTM configuration.

Use the data layer as a transparent hand-off between Magento and the measurement destinations configured in GTM.

GA debug view showing a Magento purchase event and item parameters
A Magento purchase event and its ecommerce item parameters in a Google tag debugging view.

Setup, loading, and implementation facts

Container import

Admin configuration can generate GTM import files, including a Google Ads variant.

Controlled loading

GTM loading is configurable and supports delayed insertion. Test the selected setting against your consent requirements.

Magento integration

Use EAV mapping, minicart view_cart, checkout information events, Hyvä support, and an optional Server Container URL.

Content Security Policy note

The module supplies payment-page CSP settings for Magento 2.4.7+. Verify them against your deployed CSP and custom GTM tags.

Why use this extension?

  • Keep ecommerce event generation in one Magento integration.
  • Configure destinations and tags centrally in GTM.
  • Avoid editing storefront templates for each tracking tag.
  • Map relevant Magento EAV data when it is needed.
  • Keep consent signaling, ecommerce tracking, and Ads setup in the same implementation path.

Compatibility and technical details

Magento2.4.x, 2.4.9
EditionsOpen Source and Adobe Commerce options
ThemeMagento storefront and Hyvä support
TrackingGTM, GA4 ecommerce data layer, Google Ads import option
ConsentConfigurable Consent Mode v2 popup and categories
Server containerOptional Server Container URL
CSPCSP support for gtag custom scripts
Only registered users can write reviews. Please Sign in or create an account
v2.0.4
- Compatiable with Hyva theme

v2.0.3
- Support CSP on custom gtag scripts

v2.0.2
- Add payment method for datalayer
- Add Customizable Options for product variant

v2.0.1
- Add google ads conversion tracking
- Add google ads dynamic remarketing
- Add datalayer enhanced conversions

v2.0.0
- Initial extension