

Google Analytics 4 with GTM Support for Magento 2 New version v4.7.4
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.

Stop Struggling with Manual Setup for GTM &GA4

Outstanding Features of Google Tag Manager | Google Analytics 4
Track customer behavior on GA4
Track and measure which products sell well
Track traffic and engagement
Easy setup with JSON templates
Implement dynamic remarketing
Support Facebook Pixel
Ensure user consent New
Additional Features of Magento 2 Google Tag Manager & GA4
Support 60+ tags
Improve website performance
Customize dimensions & metrics
Enable Google Analytics opt-out
Enhance link attribution
What customers say about us
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
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.
Pricing
Community
$ 149 first yearEnterprise/ Magento Cloud