flash sale Product image of Google Analytics 4 with GTM Support
Standard
User Guide
Instruction
How to use
Magento Edition *
Version *
FREE installation Tooltip
SAVE 50%
Ends in:
03 : 00 : 00 : 00
Get 10% OFF
icon logo magento 2.4.4 - 2.4.8
Hyva logo Theme & Checkout

Google Analytics 4 with GTM Support for Magento 2 New version v4.7.4

5.0
(61 reviews)
Read all >
Mageplaza Google Tag Manager with GA4 extension for Magento 2 helps merchants unlock powerful insights by sending accurate store data into GA4. From tracking customer journeys and product performance to analyzing traffic, campaigns, and promotions, it delivers the reports you need to grow sales, optimize marketing, and make smarter business decisions.
tick icon
Compatible with Hyva theme (view demo)
tick icon
Compatible with Hyva Checkout
tick icon
Compatible with Magento 2.4.8
Free Installation
60 days money back guarantee

How GTM and GA4 Work Together

GTM sets up and sends events from your website, while GA4 receives those events and turns them into reports and insights. Together, they give you a complete view of customer behavior and store performance, from tracking actions to analyzing results.

statistics about faq usage

Stop Struggling with Manual Setup for GTM &GA4

 Surprising statistics about GTM and GA4

Outstanding Features of Google Tag Manager | Google Analytics 4

Track customer behavior on GA4

With the Mageplaza Magento 2 Google Tag Manager extension, every action of your shoppers is captured in GA4. From sign-ups, logins to browsing, cart updates, and completed purchases, you gain complete view of of the customer journey and shopping activities.

Track and measure which products sell well

Find out bestsellers and weak performers at a glance. GA4 reports show product impressions, views, time spent, and completed purchases, along with campaign or promotion influence. With these insights, you can refine pricing, highlight winning products, and adjust marketing for items that need an extra push.

Track traffic and engagement

Beyond sales data, GA4 reveals how people discover and interact with your store. You’ll see which pages bring visitors, how long they stay, and what content keeps them engaged. This helps connect marketing efforts to real on-site behavior and link traffic quality directly to conversions.

Easy setup with JSON templates

Unlike manual GA4 setup, our module provides ready-made JSON templates with preconfigured eCommerce events. Simply import them into GTM and start tracking immediately to save times and avoiding costly mistakes for beginners and experts alike.

Implement dynamic remarketing

Magento 2 Google Tag Manager with GA4 enables dynamic remarketing through Google Ads. The extension pushes accurate store data to build remarketing audiences and measure conversions. This lets you retarget shoppers with the right products, improve ad performance, and boost return on ad spend (ROAS) effectively.

Support Facebook Pixel

The Mageplaza extension also supports Facebook Pixel integration through GTM, without manual coding. This means you can track conversions, build remarketing audiences, and optimize Facebook Ads campaigns easily. With Magento 2 GA4 and Facebook Pixel combined, your advertising strategy becomes smarter and more effective.

Ensure user consent New

Magento 2 Google Tag Manager with Google Analytics extension fully supports Google Consent Mode v2. It ensures user data is collected responsibly by asking for consent before tracking. This feature helps your store comply with GDPR and privacy laws while keeping GA4 insights accurate and reliable.

Additional Features of Magento 2 Google Tag Manager & GA4

Support 60+ tags

Tag is one of the three key elements that Google Tag Manager works with: Tag, Trigger, and Variable. More particularly, it's a piece of code running in your page structure, used to send data to other systems like Google Analytics 4.
With our Magento 2 GTM extension, you can set up and manage over 60+ popular tags to match your marketing strategy. Supported tags include Google Ads, Crazy Egg, Floodlight, Pinterest Tag, and Quora Pixel.

Improve website performance

Google Tag Manager centralizes all tracking scripts into one container, keeping your Magento store lighter and easier to maintain. With Mageplaza’s extension, you can manage all GA4 and marketing tags in GTM without touching your site’s code, reducing the risk of errors and improving long-term performance.

Customize dimensions & metrics

Our module allows you to create brand new custom tracking dimensions and metrics to collect and analyze the attributes that are not automatically tracked by GA4. Therefore, you can gain deeper insights into specific customer behaviors, tailor reports to your business needs, and make more data-driven decisions for optimizing your store's performance.

Enable Google Analytics opt-out

When shoppers visit your GDPR-compliant website, this feature will protect and sync their data to GA4, providing you more neccessary information of customers. (Properly compatible with GDPR Professional.)

Enhance link attribution

Google Tag Manager with GA4 goes beyond basic click tracking. It can tell you exactly which link a customer clicked, even if multiple links point to the same page. For example, you’ll know whether shoppers clicked a “Buy Now” button, a banner, or a menu link, helping you optimize page layout and calls to action.

What customers say about us

Product reviews: 61
Overall rating: 5.0
5
4
3
2
1
How much do you like this product?
Leave your email to get reward points for reviews
Submit a relevant review of 30+ words to earn 5 reward points (one-time per extension)
Gursaant Singh
18 March 2025
Verified purchase
A very useful extension at a reasonable price.A wonderful module if you're currently using Google Analytics for your store
Gursaant Singh
18 March 2025
Verified purchase
This is a very good module. Easy to install and configure with no issues.
Shahid Gill
22 January 2024
Verified purchase
We've tried several tag management solutions, and this extension stands out for its simplicity and efficiency. The real-time preview mode and the ability to customize tags for specific pages have made our tracking setup more flexible and reliable.
Ramez
18 October 2022
Verified purchase
very good product , simply does what described and easy to install and configure
Leonardo
22 September 2022
Verified purchase
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!
Lydia
19 September 2022
Verified purchase
I'm good thanks
Chris
13 August 2022
Verified purchase
Great Support
Nicolas
26 July 2022
Verified purchase
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.
Unicorn Denmart
26 July 2022
Verified purchase
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.
SNNR Pvt. Ltd.
06 July 2022
Verified purchase
Purchasing the plugin was seamless, Implementation was equally easy as well
SNNR Pvt. Ltd.
06 July 2022
Verified purchase
Purchasing the plugin was seamless, Implementation was equally easy as well
Maria Mosso
21 June 2022
Verified purchase
All Mageplaza extensions are well documented. No need to ask for support and best quality price.
pratheek
05 June 2022
Verified purchase
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.
Javier
17 May 2022
Verified purchase
Because Magento Community does not export e-commerce data to Analytics through GTM, this extension is a must-have.
Manny
04 May 2022
Verified purchase
A wonderful module if you're currently using Google Analytics for your store. Cheers!
Abby
29 April 2022
Verified purchase
The support is on point. Thanks for such a timely response.
Michael West
19 April 2022
Verified purchase
I am glad and very happy with the customer service of Mageplaza. Your support engineer helped me a lot.
Prelyk
19 April 2022
Verified purchase
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.
Stig Hubred
25 June 2021
Verified purchase
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.
Jaimie Dijstra
08 June 2021
Verified purchase
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!
Senthilkumaran S
19 May 2021
Verified purchase
A useful extension to add an Ecommerce Tracking feature in Magento for GMC and Facebook Pixel, looking forward to getting more platforms integrated
PKS
28 April 2021
Verified purchase
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.
faraz bashir
16 April 2021
Verified purchase
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
16 April 2021
Verified purchase
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
Oleg
19 March 2021
Verified purchase
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!
Kévin H.
17 February 2021
Verified purchase
Very good module. Allowed us to set up a tagging plan in a few days.
Joel
05 January 2021
Verified purchase
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.
RYAN
14 December 2020
Verified purchase
Easy to configure. Thanks!
Fabiano
18 November 2020
Verified purchase
Very good extension, very useful and very simple to use.
Sean
20 September 2020
Verified purchase
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.
Olivier
18 September 2020
Verified purchase
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
FFC
07 September 2020
Verified purchase
AMAZING EXTENSION
Marco
18 June 2020
Verified purchase
The extension is great and easy to use !
Mustafa
28 November 2019
Verified purchase
Purchased this extension and it works like a charm. support team was very helpful and fast. Highly recommend Mageplaza extensions!
It
29 October 2019
Verified purchase
I had some issues with getting a ticket started but once I was in touch with the technical team everything went smoothly.
Magnacraft
26 July 2019
Verified purchase
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.
Bruno
16 July 2019
Verified purchase
What a great support! Detail-oriented, accurate, straight to the point and solve the problem. I couldn't believe that it solved that fast.
Thomas André Jensen
30 May 2019
Verified purchase
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!
Salva
03 May 2019
Verified purchase
Awesome quality, wonderful extension! Google Tag Manager plugin works great and does what it says on the tin, definitely, I will recommend this module.
Karthick
14 April 2019
Verified purchase
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.
Abed
17 March 2019
Verified purchase
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.
Xu lanlei
12 March 2019
Verified purchase
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!
Hansi
26 February 2019
Verified purchase
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
Andre
22 February 2019
Verified purchase
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.
John
15 January 2019
Verified purchase
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.
Dean
05 December 2018
Verified purchase
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.
Chris
26 October 2018
Verified purchase
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.
Radoslav
13 October 2018
Verified purchase
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.
KAROL
02 August 2018
Verified purchase
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!
Yusuf Wadee
19 April 2018
Verified purchase
Very good service. My issues were resolved quickly and extensions are working
Jonathan Cunliffe
02 April 2018
Verified purchase
Very responsive support. Thanks
Adriano
23 March 2018
Verified purchase
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.
Claudio
16 March 2018
Verified purchase
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.
Art
06 February 2018
Verified purchase
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.
Mohamed
01 February 2018
Verified purchase
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!
Shayan
14 December 2017
Verified purchase
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!
Sunil
14 October 2017
Verified purchase
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!
Jdfermin
04 October 2017
Verified purchase
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.
kashish
23 September 2017
Verified purchase
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..
Rosa Royalfern.
22 August 2017
Verified purchase
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!
Sandeep
19 August 2017
Verified purchase
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.

Release notes

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

    24 August 2025

    • Bug Fix: Fixed issue where orders could not be refunded if a product had no category assigned
  • v4.7.3 (Magento v2.4.x)

    11 July 2025

    • Compatibility: Now compatible with Hyva Checkout
  • v4.7.2 (Magento v2.4.x)

    14 April 2025

    • Compatibility: Now compatible with Magento 2.4.8
    • Bug Fix: Fixed cannot add to cart
    • Update: User guide link of Extension
  • v4.7.0 (Magento v2.4.x)

    12 August 2024

    New Feature: We added Google Consent v2 for Google Analytics 4

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

    03 May 2024

    • Compatibility: The extension is now compatible with Magento 2.4.7
    • New Feature: We added to show Event for Facebook Pixel
  • v4.6.0 (Magento v2.4.x)

    26 December 2023

    • New Feature: We added “Show Events” field into group “Google Analytics 4”
    • Compatibility: The extension is now compatible with PHP 8.1
    • Compatibility: The extension is now compatible with Mageplaza GDPR in Ga4
    • New Update: We updated config
    • New Update: We updated the following event add to cart, remove from cart
    • New Update: We updated event add to wish list, event Customer Login After, event Order refund, event Add shipping, event Add Payment, event add_to_cart for “add all to cart” wishlist, Search event in Ga4 and FB Pixel
    • New Update: We updated Custom Dimensions, and Custom Metrics in Ga4
    • New Update: We updated Track Impressions and Clicks By Position in Ga4
    • New Update: We updated the missing code of the event Customer Login After in GA4
    • New Update: We updated compa event add_to_cart with module Mageplaza Osc in GA4
    • New Update: We updated the template for the new event
  • v4.5.0 (Magento v2.4.x)

    23 March 2023

    • Compatibility: The extension is now compatible with Magento 2.4.6
    • New Feature: We added track product impressions and click by position in the Related, Up-sell, and Cross-sell section
    • New Feature: We added track product impressions and click by position in the Advanced Result Page
  • v4.4.4 (Magento v2.4.x)

    30 January 2023

    • Compatibility: The extension is now compatible with Magento 2.4.5
    • Bug Fix: We fixed a minor bug which Datalayer
  • v4.4.3 (Magento v2.4.x)

    04 November 2022

    • New Update: We added 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)

    09 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)

    28 February 2022

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

    28 February 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
Load More

Frequently Asked Questions

Absolutely! GTM helps you manage tracking codes and events without needing complex code, while GA4 provides essential metrics for analyzing store performance. Together, they provide powerful insights that drive eCommerce success.

The differences between these two are quite big, actually. The Mageplaza GTM extension simplifies tag management by providing an easy-to-use interface. Unlike GTM’s manual setup, this module auto-generates tags, triggers, and variables, saving you time and minimizing errors. It also integrates directly with GA4 to improve efficiency.

Mageplaza’s GTM extension simplifies setup by automatically generating JSON files with pre-configured tags and events. This means you don’t need to manually add code or tags, saving you hours of work and ensuring accurate tracking right out of the box.

To track Google Ads activities, first create a Google Ads account, then navigate to Google Ads Conversion Tracking in the Mageplaza GTM extension’s backend. Follow the detailed instructions provided to link your Google Ads with GTM and GA4 for precise conversion tracking.

Follow the steps below:

  • Login Google Analytics account (or create a new account if you haven't got one)
  • Navigate to admin panel in backend > Stores > Configuration > Sales > Google API
  • Under the Google Analytics section, please enable the integration
  • Enter your Google Analytics Tracking ID
  • Save config
  • Remember to preview and test your Google Tag Manager setup before publishing it
  • Clear cache

If your Google Analytics 4 with Google Tag Manager support extension isn’t tracking, double-check that you’ve completed the installation and configuration steps correctly. If everything looks fine, try updating the extension to the latest version to ensure compatibility with your Magento version. Also, check for any GTM container errors in the browser console.

GTAG is a single tracking code for a specific tool (like Google Analytics or Ads), while Tag Manager (GTM) is a tool to manage all your tracking codes in one place. GTM simplifies and organizes multiple tracking tools, making it easier to manage all your marketing tags without needing to edit code directly.

The answer is yes. GTM helps improve page load speed by reducing the need for multiple tracking codes directly in your Magento theme. With GTM, tracking scripts are loaded asynchronously, so your website loads faster, improving both user experience and SEO performance.

This is a common question, but don't worry; there's nothing wrong at all. It may take up to 48 hours for data transfer into GA4, so please be patient. In the meantime, you should check your configuration again to make sure everything is correct. Use GTM’s Preview mode and GA4’s real-time reporting to confirm events are being tracked.

There are basic steps that you need to follow before adding GA4 in Magento 2, such as:

Before adding GA4 to your Magento 2 store, please prepare several things below:

  • Create GA4 Property
  • Get Measurement ID
  • Create a GTM Account and Container
  • Locate Public, Account, and Container ID

Once you have got these elements prepared, please follow our detailed instructions.

To collect eCommerce data in GA4, you need to add eCommerce tracking events to your GTM container. With the Mageplaza GTM extension, these events are pre-configured, so you only need to enable them in your backend, and GA4 will automatically start tracking key metrics like product views and purchases. For more information, please check our Google Tag Manager installation guide.

Yes, Google Analytics 4 with GTM Support is compatible with Hyva theme & Hyva Checkout. However, if you still want to use the Luma Checkout, you can enable it by following this guide.

Magento Edition *
Version *
FREE installation Tooltip
SAVE 50%
Ends in:
03 : 00 : 00 : 00
Get 10% OFF
icon logo magento 2.4.4 - 2.4.8
Hyva logo Theme & Checkout

Pricing

Choose your suitable edition.

Community

$ 149 first year
Includes support & updates for 1 year Tooltip
60 days money back guarantee
Read our policies
check
Support Magento 2 Community Eddition

Enterprise/ Magento Cloud

$ 349 first year
Includes support & updates for 1 year Tooltip
60 days money back guarantee
Read our policies
check
Support Magento 2 Enterprise Eddition
check
Highest priority support
Can't see the feature you're looking for?
Describe it and we will customize this extension to suit your needs!
Request customization
feature looking icon