Google Tag Manager for Magento 2


Magento 2 Google Tag Manager extension is the properly mixed solution with the site-tagging function and the supplement of Google Analytics Enhanced Ecommerce, Google Adwords Conversion Tracking, Facebook Pixel. The module with the full functionalities definitely will support e-commerce stores to collect huge data, analyze customers insight deeply, improve store performance and increase conversion rate.

  • Simplify the management of GTM tags
  • Support dynamic remarketing
  • 70+ tag types
  • Included Google Analytics Enhanced Ecommerce
  • Included Facebook Pixel
  • Compatible with Magento 2 GDPR, Magento 2 One Step Checkout
  • Looking for REST API, GraphQL? ETA: 2-4W Chat now.


60-day Money Back

Frequent Update

365-day Support

Magento 2 Google Tag Manager for Magento 2.2.x, 2.3.x, 2.4.x

Adobe Commerce
2.2.x, 2.3.x, 2.4.x

Most-Trusted Pick

  • Work perfectly together
  • Cost-effective
  • 90-day money back guarantee
  • FREE installation for all
Google Tag Manager
Layered Navigation
PDF Invoice



Live Demo

You've just added this product to the cart:

Google Tag Manager

Google Tag Manager for Magento 2

Frequently Bought Together

You've just added this product to the cart:

Google Tag Manager Pro

Google Tag Manager for Magento 2

From February 1, 2022, we are launching Product Subscriptions
Buy now to get 15% cashback and other appealing incentives.
Learn more →

Google Tag Manager and the great benefits

Tags are snippets of code which are added to a site to collect information and send it to third parties. Commonly, sites use a lot of different tags and this requires a deal the amount of code to create them. Therefore, the workload can become quite overwhelming to store sites, especially trying to add or edit tags by going directly into the site’s source code.

Google Tag Manager is a tool with a user-friendly, web-based interface that simplifies the process of working with tags. With Google Tag Manager, store admins are able to add, edit, and disable tags without having to interfere with the source code.

Google Tag Manager makes it so much easier to add and edit tags without hard requirements of technical knowledge. It’s great for e-commerce businesses that might have limited access to technical support. With the usage of dozens of tags, Google Tag Manager makes it easier to manage them well and improves site speed.

Besides, Magento 2 Google Tag Manager extension will help your Magento store to integrate Google Adwords, Google Analytics and Facebook Pixel, from which you can manage all through the site.

In order to apply Google Tag Manager for Magento 2, only need to insert Google Tag ID, which you get from creating Google Tag Manager account from Google, into the Magento Admin and then, enable it to use.

Improve website performance

As usual, for Google Analytics or Adword, you must put many codes on the source of website and the speed of your site is lower than normal because it is hard to load. However, with Magento 2 Google Tag Manager, it is called as the third-party to handle all your script-tags and you only need to add its code into your site.

In this case, we test, the DOMContentLoaded: 848ms, page loaded in 2.58s

GTM Support Dynamic Remarketing

Magento 2 Google Tag Manager module supports Dynamic Remarketing. If remarketing is showing ads to the ones who have previously visited a website, dynamic remarketing will take a further step that is showing ads which contains products and services they viewed.

Because the messages are tailored to different audience, dynamic remarketing helps online stores build leads and sales by bringing previous visitors back to store sites to complete what they started.

Google Tag Manager Enchanced eCommerce

Outstanding features of Google Analytics are well integrated with Google Tag Manager. Enhanced E-commerce Data Reports are the most noticeable. The online stores are allowed to track customers’ behaviors with every detail via the 5 powerful reports:

  • Shopping Behaviors: Identify where they lose the customers at each step (product view, add to cart, checkout)
  • Checkout Behaviors: See how successfully the customers moved through the checkout process
  • Product Performance: See products’ performance in two various ways - revenue/ price/ quantity and user engagement (viewing, adding, removing)
  • Sales Performance: Evaluate sales in details
  • Product List Performance: See details about Product List Views, Product Adds To Cart, Product Checkouts, Product Revenue.

It's easy to configure in backend, just enable Google Analytics for eCommerce and get eCommerce Reports in GA.

Facebook Pixel is integrated in Google Tag Manager

To track Facebook Conversions, it is necessary to have the Facebook Pixel installed on store site along with standard or custom events set up. Facebook Pixel is integrated well in Google Tag Manager extension for Magento 2. Facebook Pixel provides multiple benefits such as:

  • Capturing site visitor data
  • Build retargeting lists
  • Track standard & custom events & conversions
  • Build advertising audiences
  • Provide people-based reports through Facebook Analytics

Especially, Facebook Pixel is great for running retargeting ads on Facebook.

Google Tag Manager + Install & Setup Service

Google Tag Manager
Google Tag Manager
43 reviews
Install & Setup GTM Service
Install & Setup GTM Service
$199 Only +$99
no review


Google Tag Manager

Install & Setup GTM Service



Full Magento 2 Google Tag Manager Features

Google Tag Manger supports the following tag types

GTM Featured tags

  • Universal Analytics
  • Classic Google Analytics
  • AdWords Conversion Tracking
  • AdWords Remarketing
  • DoubleClick Floodlight Counter
  • DoubleClick Floodlight Sales
  • Google Optimize
  • Google Surveys Website Satisfaction
  • Custom HTML Tag
  • Custom Image Tag
  • Other 60+ tag types
  • Compatiple with Google Analytics: Product Feed, Webhook, Two Factor Authentication

Other Features

  • Support GA4
  • Allow excluding tax, shipping, shipping tax from the transaction
  • Allow excluding transactions with 0 value
  • Allow showing/hiding the brand, variant
  • Enhanced E-commerce Tracking Reports from Google Analytics
  • Facebook Pixel Implementation
  • 100% Open-source
  • Support multi-stores
  • Support multi-languages
  • Easy to custom

Other GTM tag types

  • AB TASTY Generic Tag
  • Adometry
  • AdRoll Smart Pixel
  • Audience Center 360
  • AWIN Conversion
  • AWIN Journey
  • Bizrate Insights Buyer Survey Solution
  • Bizrate Insights Site Abandonment Survey Solution
  • ClickTale Standard Tracking
  • comScore Unified Digital Measurement
  • Crazy Egg
  • Criteo OneTag
  • DistroScale Tag
  • Dstillery Universal Pixel
  • Eulerian Analytics
  • Google Trusted Stores
  • Hotjar Tracking Code
  • Infinity Call Tracking Tag
  • Intent Media - Search Compare Ads
  • K50 tracking tag
  • LeadLab
  • LinkedIn Insight
  • Lytics JS Tag
  • Marin Software
  • Mediaplex - IFRAME MCT Tag
  • Mediaplex - Standard IMG ROI Tag
  • Bing Ads Universal Event Tracking
  • Mouseflow
  • AdAdvisor
  • DCR Static Lite
  • Nudge Content Analytics
  • Oktopost Tracking Code
  • Optimise Conversion Tag
  • Message Mate
  • Perfect Audience Pixel
  • Personali Canvas
  • Placed
  • Pulse Insights Voice of Customer Platform
  • Quantcast Measure
  • SaleCycle JavaScript Tag
  • SaleCycle Pixel Tag
  • SearchForce JavaScript Tracking for Conversion Page
  • SearchForce JavaScript Tracking for Landing Page
  • SearchForce Redirection Tracking
  • Shareaholic
  • Survicate Widget
  • Tradedoubler Lead Conversion
  • Tradedoubler Sale Conversion
  • Turn Conversion Tracking
  • Turn Data Collection
  • Twitter Universal Website Tag
  • Upsellit Confirmation Tag
  • Upsellit Global Footer Tag
  • Ve Interactive JavaScript
  • Ve Interactive Pixel
  • VisualDNA Conversion Tag
  • Xtremepush - Web Push & Onsite Engagement
  • Yieldify


Google Tag Manager is an automated site-tagging solution for websites. It helps connect your web pages with Google Analytics, Google Adwords and Facebook to keep track of customer activities on your online store.

Google Tag Manager replaces the manual work of adding the snippet codes to multiple pages. With this tool, you only have to fill in Google tracking codes and let it do the rest.

The manual adding task requires a lot of time and great care, not to mention when you have new pages. Therefore, using a tagging solution as Google Tag Manager is entirely a smart decision.

You need to install Google Tag Manager extension. Then go to Stores > Configuration > Mageplaza Extensions > Google Tag Manager > fill the Google Tracking ID. To learn about getting the tracking ID, please read our guide.

To configure Google Tag Manager, just go to Stores > Configuration > Mageplaza Extensions > Google Tag Manager. For more details, please refer to our user guide.


Can't find your feature?

Are you looking for a feature in Google Tag Manager. Tell Elle your wants and needs.

Chat with Elle

Are you an agency?

Do you often visit us for purchasing extensions and technical support? Speak to April to learn about your exclusive benefits on Mageplaza

Chat with April


25 June 2021

Great value

Great extension that delivers as promised. It provides an easy way of handling e-commerce tracking. We use it for Google Ads and Facebook and it works without problems. We are using several extensions from Mageplaza (Layered navigation, Product feed, Facebook plugin, etc.) and they always deliver work of high quality and extensions of great value.

Stig Hubred -Verified Purchase
08 June 2021

Great value for money

For its price this is a great extension, works out of the box, extremely simple to install with the bare-bone basics of tag manager analytics, etc. The only thing missing from it is instructions on tag manager full setup such as a JSON file import to google tag manager, tag manager is a hurdle in itself to set up the events tags and triggers for advanced tagging. If this came with the extension It would add a lot more value to the extension. Still, despite this gripe(!), I'm very happy with the extension and with the price tag as it is I'm giving it 5 stars!

Jaimie Dijstra -Verified Purchase
19 May 2021

Useful extension to add Ecommerce Tracking feature

A useful extension to add an Ecommerce Tracking feature in Magento for GMC and Facebook Pixel, looking forward to getting more platforms integrated

Senthilkumaran S -Verified Purchase
28 April 2021

Easy Set up, everything else automated

So far it works really well for our Facebook pixel. Everything seems greatly automated. For my taste, it could be a bit more granular in the near future, but I am sure there will be plenty of good updates coming.

PKS -Verified Purchase
16 April 2021

good expensive

Very Helpful extension for Magento 2 website. I have installed this extension and this extension excellent Work With all Platform Google tag manager, Google analytics, google adword, and Facebook pixel. Dear Mageplaza Team please also add other platforms pixel, Snapchat, Pinterest and Twitter, etc

faraz bashir -Verified Purchase
16 April 2021

good expensive

Best Extension For Magento 2 Stores. All in one extension for Facebook Pixel, Google Tag Manager, and Google analytics. Easy to configure. This extension is perfectly working with all platforms. Mageplaza all module is best and very helpful

faraz bashir -Verified Purchase
19 March 2021

Useful extension

Useful extension - allow to configure tags for GTM, flexible settings, working perfectly with Facebook Pixel and Enhanced Ecommerce. Easy installation with composer, perfectly compatible with other Mageplaza modules. Thank you very much!

Oleg -Verified Purchase
17 February 2021

Good module

Very good module. Allowed us to set up a tagging plan in a few days.

Kévin H. -Verified Purchase
05 January 2021

Not bad

The extension is OK but e were hoping for a lot more - It only has the basic tracking for Facebook and Google Analytics. All things like adds to wishlist and swatch requests (specific to our site) all had to be done by ourselves in GTM. Also no support for Google Ads which I was expecting. If you just need basic eCommerce tracking for Facebook and Google analytics then it is good, but if you need more then better to just do everything yourselves.

Joel -Verified Purchase
14 December 2020


Easy to configure. Thanks!

RYAN -Verified Purchase
18 November 2020

Easy to use

Very good extension, very useful and very simple to use.

Fabiano -Verified Purchase
20 September 2020

Great Extension

The extension was easy to install and configure. The documentation is pretty good. Nice and tidy fix for handling tag manager and Facebook pixel in one place without having to do any coding.

Sean -Verified Purchase
18 September 2020


I bought the Mageplaza extensions on the tenth September 2020, it was a sunny day and I like it, My webmaster asked me to buy this extension and it was a good idea. Anyway we are now using the extension and it's GOOD

Olivier -Verified Purchase
07 September 2020



FFC -Verified Purchase
18 June 2020


The extension is great and easy to use !

Marco -Verified Purchase
28 November 2019

Amazing Extension

Purchased this extension and it works like a charm. support team was very helpful and fast. Highly recommend Mageplaza extensions!

Mustafa -Verified Purchase
29 October 2019

Thank you for quick fix!

I had some issues with getting a ticket started but once I was in touch with the technical team everything went smoothly.

It -Verified Purchase
26 July 2019

Awesome support

Shin, my technical supporter was extremely helpful and prompt to identify the issue and provide a fix. Awesome job! I hope these fixes make into the later releases of the extension.

Magnacraft -Verified Purchase
16 July 2019

Thank you for your quick help!

What a great support! Detail-oriented, accurate, straight to the point and solve the problem. I couldn't believe that it solved that fast.

Bruno -Verified Purchase
30 May 2019

Most deserve service to invest

Really great and friendly customer service! I worked with you guys for only 1 day and the issue is sorted fast. Will recommend you to others!

Thomas André Jensen -Verified Purchase
03 May 2019

Great product

Awesome quality, wonderful extension! Google Tag Manager plugin works great and does what it says on the tin, definitely, I will recommend this module.

Salva -Verified Purchase
14 April 2019

Worked Straightaway

The installation was a smooth and painless process and worked straight away. Currently, it works exactly as I expected. Worked seamlessly when I upgraded the core Magento too.

Karthick -Verified Purchase
17 March 2019

Great extension

This is a very important extension that I was looking for in a while, Mageplaza met my expectations and the price tag was awesome too. Thanks, guys for your hard work.

Abed -Verified Purchase
12 March 2019

Solved my issue in flash

Exceptional customer support! Based on the support provided by Eric and his team Mageplaza has earned a new loyal customer. Thank you very much once again, great job!

Xu lanlei -Verified Purchase
26 February 2019

Super easy installation!

Install module, add the google tag manager ID, done! Well, not exactly, you need to configure your tags in your Google account but that is another story. I am using Magento 2.3

Hansi -Verified Purchase
22 February 2019

Good extension

The extension is very good, easy to use and easy to install. It does the job. The support team is also very fast. I can recommend.

Andre -Verified Purchase
15 January 2019

Great customer support

Our developer was able to get support assistant right away. The extension works great on our clients Magento site. Thank you for all your help.

John -Verified Purchase
05 December 2018

Very High Quality Extension

I wish Mageplaza made more Magento extensions. I have used both their SMTP and this Google Tag Manager extension. They work perfectly. I wish they made an extension to turn Magento into a Marketplace. I purchased Webkul's extensions for that and their quality doesn't even come close to Mageplaza's. Maybe it's that Mageplaza focuses on much smaller extensions to ensure they get everything right but I can definitely tell the difference in quality. I used this Google Tag Manager extension to enable Facebook Pixel on my site and it's great. I didn't have to embed any code in my application and Facebook pixel auto detects events like Add to Cart and Purchases and Google Tag Manager wires it all together with the help of this little gem.

Dean -Verified Purchase
26 October 2018

Works perfectly

Google Tag Manager plugin works great and does what it says on the tin, definitely, I will recommend this module. The installation was a smooth and painless process and worked straight away.

Chris -Verified Purchase
13 October 2018

Great extension

It was very easy to install and setup. Currently, it works exactly as I expected. Thanks, Mageplaza. I would recommend this great module to everyone.

Radoslav -Verified Purchase
02 August 2018

Great module!

This is a must-have tool for every store. Everything works as promised, this extension works great, much better than free extensions for Google Tag Manager. Also, the good documentation of this extension helps too. I will be a loyal customer for a long time!

KAROL -Verified Purchase
19 April 2018

Good service

Very good service. My issues were resolved quickly and extensions are working

Yusuf Wadee -Verified Purchase
02 April 2018

Thanks to Mageplaza support team.

Very responsive support. Thanks

Jonathan Cunliffe -Verified Purchase
23 March 2018

Perfect Product

This extension is very helpful and works well. The support is very good. The installation is very easy. The module is very simple to configure. I recommend for every one to use any extension of Mageplaza.

Adriano -Verified Purchase
16 March 2018


Great extension that makes it really easy to work with Google Analytics and AdWords. Makes work easier for my employees. Simple installation and very good manual. I ordered more extensions and had a positive experience everywhere.

Claudio -Verified Purchase
06 February 2018

Great for Tracking Multiple AdWord campaigns!

I need a tool that would let me track multiple ad campaigns as to pay for our affiliates. With this I am able to attribute properly every single different ad campaign and pay my marketers accordingly.

Art -Verified Purchase
01 February 2018

Great one !

This is extension is very good and helps SEO on Google. Helps in marketing as well. Thanks to Magaplaza for introducing this extension. Overall this extension is excellent and very easy to install. Great!

Mohamed -Verified Purchase
14 December 2017

Great Extension

Very smooth, all you have to do is put in your tracking id, and there are some configurations, thanks to their great documentation i was able to set this up smoothly and now analytics is tracking the site effectively! love it, great work MP! loyal customer for long!

Shayan -Verified Purchase
14 October 2017

Nice extension

This extension makes it easier for advanced tracking and integrating with google tag manager. Installation was easy and I am happy with it. Thank you, Mageplaza. Keep up the good work!

Sunil -Verified Purchase
04 October 2017

Good module

Its very necessary, I needed to enable Google Tag Manager for my Magento store. Then I came across this free extension. and In minutes, I was able to install and use this extension. There is a minor issue with setup, I resolved by myself.

Jdfermin -Verified Purchase
23 September 2017

Quite nice extension.

I needed to enable Google tag manger for my magento store. Then I came across this free extension. and In minutes, I was able to install and use this extension. Worked very well for me. A must have extension if you wish to enable GTM on your magento store..

kashish -Verified Purchase
22 August 2017

This extension guided me to the right path unexpectedly

At that miserable time, I was just a newbie to Magento 2 who had no idea about Adwords and Google Analytics and HTML stuff and so on at the same time. Everything was a true mess. Until one of my partners recommended me to try Mageplaza's extensions and luckily it's free so I immediately checked it out like Ihavenothingtolose :d Then things turned out pretty ok, the modules are easy to understand and configure. I did figure out that remarketing is basically necessary for every store. Fortunately, Google Tag Manager supported me on this issue really quickly. One more cup of tea in here that I'm no longer maintaining tons of usual code on the source of our website, mostly for the time being I just need this extension only to handle all my current script-tags. Again, thanks Mageplaza for granting me this good chance to practice!

Rosa Royalfern. -Verified Purchase
19 August 2017

Nice product

This was very helpful for us. We were trying other tag manager but this was good. Installation was also easy when compared to the other extension available in the market. Overall the product was awesome.

Sandeep -Verified Purchase


  • v4.1.2

    10 August 2021

    • Fixed minor bugs
  • v2.3.2

    10 August 2021

    • Fixed minor bugs
  • v4.1.1

    07 July 2021

    • Fixed minor bugs
  • v2.3.1

    07 July 2021

    • Compatible with Magento v2.3.7
    • Fixed minor bugs
  • v2.3.0

    04 May 2021

    • Added support GA4
    • Added exclude tax, shipping, shipping tax from the transaction
    • Added exclude the transactions with 0 value
    • Added show/hide the brand, variant
  • v4.1.0

    01 April 2021

    • Added support GA4
    • Added exclude tax, shipping, shipping tax from the transaction
    • Added exclude the transactions with 0 value
    • Added show/hide the brand, variant
    • Compatible with Magento v2.4.2
  • v4.0.0

    14 October 2020

    • Supported Magento v2.4.0
  • v2.2.4

    14 October 2020

    • Updated Content Security Policies
  • v2.2.3

    27 August 2020

    • Added created_at,items,items_qty fields to DataLayer
  • v2.2.2

    29 May 2020

    • Compatible with Magento v2.3.5
  • v2.2.1

    27 April 2020

    • Compatible with Magento 2.3.4
  • v2.2.0

    24 February 2020

    • Improved: measuring checkout steps & checkout funnel
    • Fixed gtag error
    • Fixed issue with Facebook Pixel
    • Improved code style & performance
  • v2.1.1

    06 May 2019

    • Fixed minor bugs
  • v2.1.0

    01 April 2019

    • Add Google Analytic Feature:
      • Shopping/Checkout behavior
      • Product/Product list performance
      • Sales performance
      • IP Anonymization, Enhanced link attribution, Display advertising feature, etc.
    • Facebook Pixel Implementation
    • Compatible with Mageplaza One Step Checkout
    • Compatible with Magento v2.3.x
  • v2.0.2

    07 August 2018

    • Fix: Product sorting error on Category pages
    • Fix: Error on getting the price for Group, bundle product
    • Fix: Showing product with not visible individually on the purchase page
  • v2.0.1

    21 March 2018

    • Fixed GTM script on head tag
    • Performance improvements
  • 2.0.0

    27 September 2017

    Mageplaza rebuild Google Tag Manger module

    Support the following components:

    • Supports product DataLayer in Category page
    • Supports product impression DataLayer in Product detail page
    • Supports product impresstion DataLayer that it is added to cart event
    • Supports product impresstion DataLayer that it is removed from cart event
    • Supports product information DataLayer in cart page
    • Supports product information DataLayer in checkout page (discound,coupon, shipping fee)
    • Supports product information DataLayer in purchase page (total, tax fee, shipping fee)
    • Supports transactions by product variants (configurable, bundle, downloadable products)
  • v1.1.1

    30 November 2016

    • Fix compilation issue
  • v1.1.0

    12 September 2016

    Update Core Module

Leave a Review

How do you rate this product?

Your email address on Mageplaza's store

Plain text, no HTML tags.