60-day Money Back


Frequent Update


365-day Support

Magento 2 Google Tag Manager


Magento 2 Google Tag Manager extension allows stores to edit tags and snippets of code related to marketing campaigns without complex source codes. This complete solution also works seamlessly with Google Analytics Enhanced Ecommerce, Google Adwords Conversion Tracking, and Facebook Pixel.

Magento 2 Google Tag Manager for Magento 2.2.x, 2.3.x, 2.4.x CE/EE/B2B/Cloud/ Adobe Commerce 2.2.x, 2.3.x, 2.4.x
Mageplaza This extension includes all features of Google Analytics
Add to Cart

Most-Trusted Pick

  • Work perfectly together
  • Cost-effective
  • 60-day money back guarantee
  • FREE installation for all
Google Tag Manager
Layered Navigation
$134.1 ($149)
PDF Invoice



What is Google Tag Manager (GTM)?

Google Tag Manager (GTM) 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. Everything is in one place, so that if any problems happen, it is easier to track and fix errors.

It helps connect your web pages with Google Analytics, Google Adwords and Facebook to keep track of customer activities on your online store.

Benefits of using GTM

  • Easy tracking of website events: You can track clicks, form submissions, pageviews, and more, without having to modify your website code.
  • Simplified tracking code management: Instead of adding multiple tracking codes to your website, Google Tag Manager allows you to manage all your tags in one place.
  • Faster tag deployment: You can start tracking website activity in real-time, without having to wait for website updates
  • Increased website speed: Google Tag Manager loads tags asynchronously, which means they won't slow down your website's loading speed.
  • Improved data accuracy: GTM reduces the risk of data errors by providing a streamlined process for managing your tracking tags.


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 great deal of codes 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. Or if your business does not have a separate technical team, it will take lots of time to learn how to use the tool.


Mageplaza Magento 2 Google Tag Manager extension provides stores with a great solution:

  • 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
  • Centralized location to manage dozens of tags while improving site speed
  • Integrate Google Adwords, Google Analytics and Facebook Pixel: While Google Adwords and Google Analytics track advertisement and website performance, Facebook Pixel takes care of Facebook conversion statistics for a more complete process.
Take the stress out of Magento 2 store analysis - Install & Setup Google Tag Manager, Google Analytics, Facebook Pixel, and more.

How Mageplaza can help?

Magento 2 Google Tag Manager Highlight Features

Improve website performance

Google Analytics or Adword, usually requires stores to use many codes on the source of the website, which makes your site load more slowlier than normal. However, with Magento 2 Google Tag Manager, the third-party to handle all your script-tags, you only need to add its tracking code into your site.

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

Most importantly, with Edit Order extension, the order is not cancelled after modification, the order ID is kept unchanged.

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 contain products and services they viewed.

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

Set up GTM quickly with experts' help

Google Tag Manager Enhanced eCommerce / Google Analytics (GA)

Outstanding features of Google Universal Analytics and Google Analytics 4 (GA4) are well integrated with Magento 2 Google Tag Manager. There are 5 Enhanced E-commerce Data Reports provided for online stores to track customers’ behaviors:

Shopping Behaviors: Identify how customers behave 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 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 Add To Cart, Product Checkouts, Product Revenue.

It's easy to configure in the backend, you just need to enable Google Analytics for eCommerce to get eCommerce Reports.

Facebook Pixel is integrated in Google Tag Manager

Mageplaza Magento 2 Google Tag Manager (GTM) also includes Facebook Pixel, which enables stores to track Facebook Conversions for better sales funnel and higher conversion strategies. Some other benefits can be named as follows:

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

This tool is especially great for running retargeting ads on Facebook.

Didn't see the feature you are looking for? – It may be in our product roadmap. Check it now!

More Features
Check out more details of Google Tag Manager (GTM)

Google Tag Manager

Gooogle Analytics opt out (New)

Track customers' information by your Google Analytics account only when they follow and accept cookies. Properly compatible with GDPR Professional.

Google Tag Manager

Custom dimensions & metrics (New)

Create new custom tracking dimensions and custom tracking metrics to collect and analyze attributes not automatically tracked by Google Analytics.

Choose your suitable edition


Crafted for a great webstore start $ 149 first year

  • 1-year extension updates
  • 1-year support
  • 60-day money-back guarantee
  • Read our policies
  • Supports for Magento 2 Community Edition


Great for an enterprise solution $ 349 first year

  • 1-year extension updates
  • 1-year support
  • 60-day money-back guarantee
  • Read our policies
  • Supports for Magento 2 Enterprise Edition
  • Highest priority support

Full features list

Frequently Asked Questions (FAQs)

Google Tag Manager (GTM) 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 Magento Google Tag Manager is entirely a smart decision. You can easily manage all your tracking and measurement tools from one central location, without the need to modify any code on your website.

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.

Set up Magento Google Tag Manager module and login to your Magento Admin Panel. After that, go to Google Analytics > Sales > Google API > Google Analytics, and select Enable to turn on the Google functionality.

To use Magento Google Tag Manager, you can follow these steps:

1. Create a Google Tag Manager account and container.
2. Install the Mageplaza Google Tag Manager extension.
3. Configure the extension by entering your Google Tag Manager container ID in the backend configuration
4. Add tags, triggers, and variables to your Google Tag Manager container, according to your tracking and measurement needs.
5. Preview and test your Google Tag Manager setup before publishing it live.
6. Once you're satisfied with the setup, publish the container and start tracking user behavior on your Magento 2 website.

No, Google Tag Manager (GTM) is not going away. In fact, it is a widely used tool for managing tracking and marketing tags on websites, and its usage is only increasing with time.

Mageplaza Magento 2 Google Tag Manager includes Facebook Pixel as one of the features. You can learn how to enable this by following our user guide.

Yes, you can totally do this. First you have to create a Google Ads account, then go to the Google Adwords Conversion Tracking section in the Google Tag Manager module’s backend, and click onto the guide link.

In the backend, please go to the Google Analytics eCommerce section, then follow this guide for more detailed steps.

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

It is possible to install two Google Tag Managers on one website, but it is not recommended. Having multiple Tag Managers installed can cause conflicts and result in incorrect data being tracked. It is best practice to only have one Tag Manager installed on a website to ensure accurate tracking and avoid any potential issues.

To install the Google Analytics script in Magento 2, follow these steps:

1. Sign up for a Google Analytics account if you don't already have one.
2. In the Magento Admin Panel, go to Stores > Configuration > Sales > Google API.
3. Under the Google Analytics section, enable the integration and enter your Google Analytics Tracking ID.
4. Save the configuration.
5. Preview and test your Google Tag Manager setup before publishing it live.
6. Flush the Magento cache to ensure the changes take effect.

Reviews (58)

18 October 2022

very good product

very good product , simply does what described and easy to install and configure

Ramez -Verified Purchase
22 September 2022


The Google Tag Manager was suggested to us by our SEO managers as it makes easier to work on tags without any particular technical knowledge. we are very happy with it!

Leonardo -Verified Purchase
19 September 2022

I'm satisfied

I'm good thanks

Lydia -Verified Purchase
13 August 2022

Great Support

Great Support

Chris -Verified Purchase
26 July 2022

Very good extension for affiliation

I use this extension for affiliation and it's perfect i select support complete and dev Mageplaza at configured Google Tag Manager for me. Configuration is perfect now. Thank you very much for your work and your help.

Nicolas -Verified Purchase
26 July 2022

Best Dental Deals

Google tag manager has been great to use functionality-wise. Mageplaza also provided great support and corporation during the support period, we really hope we can have many amazing products from Mageplaza in future.

Unicorn Denmart -Verified Purchase
06 July 2022

Good Module

Purchasing the plugin was seamless, Implementation was equally easy as well

SNNR Pvt. Ltd. -Verified Purchase
06 July 2022

Good Module

Purchasing the plugin was seamless, Implementation was equally easy as well

SNNR Pvt. Ltd. -Verified Purchase
21 June 2022


All Mageplaza extensions are well documented. No need to ask for support and best quality price.

Maria Mosso -Verified Purchase
05 June 2022

Nice Extension

A very useful extension at a reasonable price. We are using it since a long time. Satisfied with the extension and the support by Mageplaza. Keep up the good work.

pratheek -Verified Purchase
17 May 2022

Does what it promises

Because Magento Community does not export e-commerce data to Analytics through GTM, this extension is a must-have.

Javier -Verified Purchase
04 May 2022


A wonderful module if you're currently using Google Analytics for your store. Cheers!

Manny -Verified Purchase
29 April 2022

Timely response

The support is on point. Thanks for such a timely response.

Abby -Verified Purchase
19 April 2022


I am glad and very happy with the customer service of Mageplaza. Your support engineer helped me a lot.

Michael West -Verified Purchase
19 April 2022


With only $99, I can enjoy a great Google Tag Manager extension for my store. Plus, the support team has helped me a lot with my first use. I can never complain about such a great service like this.

Prelyk -Verified Purchase
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

Leave a Review

How do you rate this product?

Your email address on Mageplaza's store

Plain text, no HTML tags.

Use Cases of Magento 2 Google Tag Manager

Use Case #1: Better tracking the web store's performance with Google tags

Business goals:

  • Use the power of Google Analytics to track many aspects of the store.
  • Access enhanced eCommerce data reports to understand the business better.

Default Magento technical limitations:

  • You can set up Google Analytics and Tags in a default Magento store, but there are many steps with complicated configuration.


  • Quickly set up Google tags for Google Analytics in a blink of an eye after installing the extension.
  • Access the enhanced eCommerce data reports on Shopping behavior, Checkout behavior, Product performance, Sales performance, and Product performance.
  • Easily configured in the backend just by enabling Google Analytics for eCommerce.

Use Case #2: Increase the website's loading speed to enhance the user experience

Business goals:

  • Increase the loading speed to keep visitors on the website.
  • Optimize the SEO performance with better loading time.
  • Reduce the website's source code.

Default Magento technical limitations:

  • There is no solution for code management. For each new tag, you will need to add new codes to your website's source file.


  • GTM handles all your script-tags so you only need to insert a small line of code to your website.
  • Visibly improve the loading speed of a site when tested.

Use Case #3: Set up dynamic remarketing to increase the advertising's effectiveness

Business goals:

  • Display advertisements that are relevant and personalized to the audience.
  • Increase the number of leads and customers through advertising.

Default Magento technical limitations:

  • There's no default and quick option to turn on dynamic marketing for a default Magento store.


  • Magento 2 Google Tag Manager (GTM) supports tags for dynamic marketing that you can turn on for tracking with one button.
  • Help gain more leads and sales with better information for advertising - a great tool to turn marketing efforts into real conversions.

Use case 4: Easily configure and manage all the standard tags and more

Business goals:

  • Track all the essential tasks and more for the eCommerce store.
  • Easily manage these tags and enable/disable each.

Default Magento technical limitations:

  • Unfortunately, you will have to insert all tags by hand if you don't have a third party app.


  • Provide 70+ tag types for all the needs of an eCommerce store.
  • Include Facebook Pixel to track Facebook conversion and enhanced ecommerce events.

How to identify the most often viewed and clicked through products?

The Shopping Behaviour Report allows you to quicklly view Product Impressions, Add to Cart, Product Clicks on various pages (homepage to product page and category page and other widgets). Via this feature, you can evaluate the popularity of each product and build suitable future strategies.

I want to check if one of the reasons my customers leave is due to the poor checkout experience or not.

It is highly recommended that you use Magento Google Tag Manager to follow the checkout flow and check how people navigate through the site to reach the final step. This feature is well included in the Checkout Behaviour Report, where you can track each step of the checkout process, including the abandonment rate at each stage.

Some products are getting lower sales, but I’m not sure whether to improve them or remove them. How can GTM help me make the decision?

GTM equips stores with a powerful Product Performance report that showcase product revenue, quantity, and user engagement activities (viewing, product adding or removing). Based on the data, you can make informed decision based on the demand and the abandonment rate.

I have plans to modify product pages content and design, but not sure if it works. How can I evaluate?

GTM allows you to conduct A/B testing, where you can compare the performance of different versions of a product page. By testing different product descriptions, images, prices, or other factors, you can determine which changes lead to more sales and make data-driven decisions about how to improve your products.

All of the feature updates plan and status will be updated as soon as possible in our public Trello.

View Mageplaza Extension Roadmap 2023 ->

Don't see the features you are looking for?

Request feature

Want to do extension customization?

Custom request

Let us know your requirements

Release Notes

  • v4.5.0 (Magento v2.4.x)

    24 March 2023

    • Compatible with Magento 2.4.6
    • Track product impressions and click by position in the Related, Up-sell, and Cross-sell section
    • Track product impressions and click by position in the Advanced Result Page
  • v4.4.4 (Magento v2.4.x)

    30 January 2023

    • Compatible with Magento 2.4.5
    • Fixed minor bugs
  • v4.4.3 (Magento v2.4.x)

    04 November 2022

    • Update setup database schema xml
  • v4.4.2 (Magento v2.4.x)

    07 September 2022

    • Compatible with Magento v2.4.5
  • v4.4.1 (Magento v2.4.x)

    17 August 2022

    Fixed minor bugs

  • v2.6.1 (Magento v2.3.x)

    17 August 2022

    Fixed minor bugs

  • v4.4.0 (Magento v2.4.x)

    29 July 2022

    • New feature: create & export tag, trigger, variables
  • v2.6.0 (Magento v2.3.x)

    29 July 2022

    • New feature: create & export tag, trigger, variables
  • v4.3.1 (Magento v2.4.x)

    10 June 2022

    • Compatible with Magento v2.4.4
  • v4.3.0 (Magento v2.4.x)

    15 April 2022

    • Added Google Analytics Opt out
    • Added Tracking custom dimensions and metrics
    • Compatible with Mageplaza GDPR
  • v2.5.0 (Magento v2.3.x)

    15 April 2022

    • Added Google Analytics Opt out
    • Added Tracking custom dimensions and metrics
    • Compatible with Mageplaza GDPR
  • v2.4.0 (Magento v2.3.x)

    01 March 2022

    • Supported RestAPI & GraphQL
    • Added Advanced Matching & Add To Wishlist event for Facebook Pixel
    • Fix minor bugs
  • v4.2.0 (Magento v2.4.x)

    01 March 2022

    • Supported RestAPI & GraphQL
    • Added Advanced Matching & Add To Wishlist event for Facebook Pixel
    • Compatible with Magento v2.4.3-p1
    • Fix minor bugs
  • v4.1.3 (Magento v2.4.x)

    26 October 2021

    • Compatible with Magento v2.4.3
  • v4.1.2 (Magento v2.4.x)

    10 August 2021

    • Fixed minor bugs
  • v2.3.2 (Magento v2.3.x)

    10 August 2021

    • Fixed minor bugs
  • v4.1.1 (Magento v2.4.x)

    07 July 2021

    • Fixed minor bugs
  • v2.3.1 (Magento v2.3.x)

    07 July 2021

    • Compatible with Magento v2.3.7
    • Fixed minor bugs
  • v2.3.0 (Magento v2.3.x)

    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 (Magento v2.4.x)

    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

How to add Google Tag Manager to Magento 2 store

Image Description

Step 1: Create GTM account

First, you need to create a Google Tag Manager account by going to this link and fill in the necessary information:

Then, you need to finish setting up the 'container'. Enter the website's domain name in the container, then select 'Web' container for your website. In case of multiple store sites, users need to create several containers.

Image Description

Step 2: Copy GTM install code

Now, click onto the GTM code at the upper right corner of the screen. You will see a popup with a code generated by the GTM system.

Copy the code and paste it on every page of your site.

Image Description

Step 3: Get Container ID

Go to the Admin section to copy the Container ID to Magento later.

Step 4: Enable the extension

Go to Stores > Configuration > Mageplaza Extensions > Google Tag Manager

In the Enable field, select Yes.

Image Description

Step 5: Configure the extension

In the ID Variable Base On field: Set whether the ID value of the product to be shown according to the product ID or product SKU.

Copy the code and paste it on every page of your site.

Image Description

Step 6: Fill in the Container ID

Paste the Container ID that you copied in Step 3 to this field.

When you leave this field blank or the container ID is inaccurate, it cannot display detailed information.

How to create new GTM tags

Start creating Trigger, Tag, then Preview the result. If GTM is disabled, click Submit.

How to check Google Tag Manager on your website

Image Description

Method 1: Use Ctrl + U

You can press Ctrl + U to view any page's source code.

Image Description

Method 2: Preview in the Workspace

Another way is that you can go to Workspace, then click the Preview button.

Then enter your website's URL.

If successful, a message stating that the GTM is connected will be displayed.

Magento 2 Google Tag Manager's Full Features

GTM Featured tags

  • Universal Analytics
  • Classic Google Analytics
  • AdWords Conversion Tracking
  • AdWords Remarketing
  • Client ID Tracking / User ID Tracking
  • Promotion Tracking
  • IP Anonymization
  • 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
  • Google Analytics Opt Out
  • Custom Dimensions
  • Custom Metrics
  • API: Export JSON files for tags, triggers, variables (New)
  • 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

Why choose Mageplaza Magento 2 Google Tag Manager

Mageplaza provides consistent and customer-centric extensions for your Magento 2 store.

We don't sell products for one time. We provide lifetime solutions which help our customers thrive with their businesses.


60-day Money Back

Extensive 60-day money-back period. You love it or get a full refund no questions asked.


Extensive Support Timeframe

Mageplaza provides support 16 hrs/day, 5.5 days/week to guarantee the seamless operation of our extensions on your store.


Install via Composer

Simple installation via composer helps you save time and eliminates technical issues during future updates.


Frequent Updates

Intensive update roadmaps ensure great performance, bug-free, highly compatible, and innovative extensions.