Google Analytics 4 with GTM Support for Magento 2

Unlock the full potential of your Magento store with the seamless integration to Google Analytics 4. Get access to a variety of built-in events and extended performance reports. Use Magento 2 Google Analytics extension to gain valuable insights into every stage of customer journey and make informed business decisions.

  • Track product impressions & clicks
  • Observe shopping cart & checkout events
  • Monitor customer account events
  • Discover promotions performance
  • Generate JSON file with a single click
  • Server-Side and Client-Side tracking
  • Track Google AdWords conversions and remarketing
  • Enable Enhanced Conversion to improve the accuracy of conversion measurement
  • Cookie Consent (GDPR) compliant, including Google Consent Mode V2
  • Hyvä-ready storefront and Hyvä Checkout ready
Add to Wish List
Product updates and support for 12 months

Updates and support prolongation - $125

more info

Pick a combo deal with 20% discount:

Save $85.40

What benefits do you get for your store

Save time and effort
by automatically integrating your store with Google Analytics 4


Grow conversion rates
with valuable insights provided by enhanced ecommerce analytics

Boost user experience
by better understanding your customers' behavior and preferences

Smoothly integrate your store with Google Analytics 4

In today's fast-paced world, efficient data measurement is essential for any e-commerce business. With our Magento 2 Google Analytics 4 extension, you can easily keep track and analyze all important data directly in your Google Analytics account. Monitor your transactions, adds-to-cart, impressions, refunds and overall user activity so you can make data-driven decisions when planning your next move!


Easily connect your store to GA 4

The Magento 2 GTM offers easy integration of your ecommerce store with Google Analytics 4, saving you the hassle of manual setup. The extension allows for quick and simple configuration - just enable it from the backend and enter the GTM JS & non-JS codes. This automatically adds the Google Tag Manager code to all pages in your Magento 2 store, enabling site-wide tracking of user data.

Auto-generate JSON file

Flawlessly generate JSON file with a single click using Magento 2 GTM extension. This file contains all necessary tags, triggers, and variables for automatic ecommerce tracking events in Google Analytics 4. JSON file is generated based on your settings in Magento and can be imported into Google Tag Manager for seamless integration with your website.


Utilize Server-Side tagging

Gain control over the data being sent from the browser to your Google products (GTM). By implementing server-side tagging through the creation of a server container and setting up processing rules, you can effectively manage cookies on the server's side before transmitting the data to GTM, ensuring compliance with GDPR requirements and enhancing data privacy and protection. For more details about the way of enhanced Magento 2 ecommerce tracking, check out this user guide.

Monitor Google AdWords conversions and remarketing

Our Magento 2 Google Analytics extension allows you to gain valuable insights into the effectiveness of your campaigns and optimize them for better results with the Google AdWords Conversions tracking and Google AdWords Remarketing tracking. This functionality enables you to stay informed about the actions users take after clicking on your ads and maximize ROI through data-driven decisions.

Get full picture of customer journey

With our Magento Google Analytics plugin, you gain comprehensive insights into every stage of your customers' experience by tracking a variety of events. From the initial website visit to the final purchase, you'll be able to understand how customers interact with your store, which products or pages they show the most interest in, and what actions lead to conversions.


Track product impressions & clicks

The Magento 2 GA4 extension enables you to effortlessly capture key product events, (such as view_item, select_item, view_item_list, search) on category and product pages of your online store. Leveraging this data will provide you with valuable insights into customers' behaviors and preferences, and help you make informed decisions on how to optimize your product pages for better conversion rates.

Monitor customer account events

Magento Google Analytics 4 extension provides an insight into how customers are interacting with their accounts, allowing you to track and analyze key account events such as registrations, logins, and profile updates. Tracking these Magento 2 ecommerce events helps you to better understand your audience, optimize their experience and increase customer loyalty.

Observe shopping cart & checkout events

Monitor every interaction along your customers' path with Magento GA4 extension. Keep track of their shopping cart activities, from adding or removing products to viewing their cart and proceeding to checkout. Keep an eye on key checkout events such as begin_checkout, add_payment_info, add_shipping_info and purchase - to obtain an in-depth understanding of the entire buying process.

Discover promotions performance

Analyze promotion events to gain a deeper understanding of how customers engage with your store promotions and determine which ones are the most effective. Use this information to optimize your marketing efforts by creating targeted and engaging campaigns that speak directly to your audience's interests and preferences.


Track performance by brands

Track customer interactions on your website through brand-related events. Explore the data related to brand-specific attributes such as product name, price, color, size, etc. Gain insights into which brands are most popular among your customers and which brand products are performing well.


Track your Custom Forms efficiency

The Google Analytics 4 extension is compatible with our Custom Form extension. This means, if you have both modules installed, you can effortlessly track user interactions with forms, gaining valuable insights into which forms drive more conversions.


Enhance your Microsoft (Bing) ad results

Directly add the UET Tag to your Magento 2 website without any code changes to accurately measure the Microsoft ad performance. Unlock the power of conversion tracking and remarketing features with the help of Magento 2 Microsoft Ads (UET Tag) extension.


You also may use it with Magento 2.4 5. With Magento 2.4 5 ga4 you can smoothly enable comprehensive tracking of various aspects of customer interactions and product performance. It can monitor impressions and clicks on products, observe actions like adding items to the shopping cart and proceeding to checkout, keep track of customer account activities, evaluate the effectiveness of promotions, and generate JSON files effortlessly. It supports tracking both on the server and client sides, and integrates with Google AdWords for tracking conversions and remarketing efforts.

Magento 2 Google Analytics extension is an effective marketing tool to help store owners enable advanced e-commerce reports and send them to Google Analytics more easily.

Before starting to work with the extension you should connect your store with Tag Manager and Google Analytics. You can do it by filling in the appropriate credentials in the following fields in the plugin's configurations. Magento 2 stores add Google Tag Manager script to facilitate further integration with the module.

If you want to setup GTM in your Magento 2 store, you need to: 

Create a GTM account and GTM container

Get your GTM Account ID and GTM Container ID

Get Google Analytics 4 Measurement ID

Get GTM install code snippet

Paste GTM code snippets and IDs in the Magento store

Create GTM tags

Submit GTM tags

Verify GTM tags work correctly

Read the complete guide for this extension here.

Create a configuration under the AEM> Tools > Cloud Services Configurations > Google Tag Manager. You need to enter container ID, which can be found in the Google Tag Manager interface. Use the configuration on your top-level content page.

With Magento 2 Google Tag Manager you can track the behavior of the customers coming onto your website by integrating the feature of GA4. Easily configure Google Tag Manager on your Magento 2 website with enhanced e-commerce using of Google Tag Manager on your Magento store.

Adobe partner logo
Magento Marketplace logo
See 500+ verified reviews
1 Single points of sales
Trusted by Customers
Are Amasty extensions compatible with all themes and extensions by other vendors?
Amasty extensions work with all plugins we issued and with most 3rd-party plugins. If you come across a Magento 2 compatibility issue with any third-party module, we’ll definitely try to help you. If you face any technical issues, please create a ticket...
Will I get free support and updates?
Product updates for extensions purchased before Feb 1, 2022With the transition to product subscriptions, you will receive product updates for all extensions purchased before Feb 1, 2022 throughout the entire grace period — up to Aug 1, 2022. If you ...
Do you have the installation service?
Yes, you can use installation and configuration services that are available as the part of Pro and Premium add-ons for your product subscriptions.Please note that this installation service doesn’t include uninstallation. So, if you need to completely...
Can I request a free trial?
Amasty doesn’t provide any trials of Magento extensions. There's one exception: Amasty extensions are provided for testing or demo purposes to our official Platinum Partners as a part of the “access to Amasty extensions for testing purposes with Composer...
Can I test an Amasty extension on a staging site before transferring it to a live one?
Yes, you can install any Amasty extension on a test site and configure all the settings there before doing it on your live store.
How can I get a refund?
Amasty offers to its Customers a thirty (30) day money-back guarantee for the Software. In case the acquired extension didn’t meet your expectations, our support team is always ready to help you. Fees for support subscriptions and any services provided...
How can I receive a discount?
We are now working at a loyalty program for our customers that is supposed to bring even greater benefits in the long term. While it’s not out yet, you can look through these Special Offers. New discounts and specials are added every month. To stay ...
How to update a Magento 2 Amasty extension?
To update a Magento 2 extension by manual upload:1. log in to the customer account;2. navigate to the Products tab, scroll to the packages section, and click the Download link next to the extension that should be updated;3. Important: If some extension...
If I need additional features to be added to an Amasty extension, how can I ask for it?
To leave your feature request, log in to your customer account and open the Products tab. Then, scroll down to the bottom of the page, and leave your feature request in the following form: As soon as you send your request, it is considered by our ...
Magento 2 Amasty extensions installation
Each Amasty extension package is provided with the extension files, installation & setup guides, and a license agreement. Some extensions include import files examples as well. So how to install our Magento extension? What is the plugin...
How can I prolong support?
If you have an active support service subscription, it grants you access to support services for all products purchased before Feb,1 as long as your subscription is active. Alternatively, support services are only available as the part of a product ...
Can I change the EE extension to CE for free?
Usually, no, you can’t exchange modules. Please, contact our support managers and they’ll consider your case individually. → Learn more about our special offers
How can I get a discount to re-purchase plugins?
Usually, we don’t provide any discounts. But you can contact us, and we’ll consider your case individually. → Learn more about our special offers
Customer Reviews

Do you need specific features added so you can achieve your business goals?

Drop us a line and we'll customize this extension for you!

You can always download the recent version free of charge from your account installing an upgrade is easy

See Magento (and other software) versions we support and guarantee their compatibility with our extensions

Version 2.2.0
Last Update: Jul 16, 2024
2.2.0 - Jul 16, 2024
  • New we added the possibility to track custom dimensions such as 'Reviews Count' and 'Reviews Score
  • Compatibility compatibility with Promo Banners was added, so now it is possible to track the interaction with banners in Google Analytics 4
  • Improvement we improved Google AdWords Remarketing tracking by adding support for Dynamic Remarketing
  • Improvement we expanded the list of events for tracking via the Measurement Protocol
  • Fix fixed the issue with tracking the 'purchase' event
Version 2.1.1
Last Update: Apr 19, 2024
2.1.1 - Apr 19, 2024
  • 2.1.1
  • Compatibility now the extension is compatible with Magento 2.4.7
2.1.0 - Mar 28, 2024
  • New we added compatibility with Google Enhanced Conversion (Note: the release version is temporarily not available on Hyvä Theme)
  • Improvement according to Google recommendations we added parameter 'value' and 'currency' to the following events: 'add_to_cart', 'add_to_wishlist' and 'remove_from_cart'
  • Improvement the ability to exclude taxes from events involving product price was added
  • Fix we fixed the issue with the GTM Server Container URL subdomain
  • Fix we corrected the tracking of the 'remove_from_cart' event based on whether the Parent or Child Identifier is selected
  • Fix we solved the issue with the set of accepted cookies when the JavaScript code was moved to the bottom of the page
  • Fix we eliminated the issue with incorrect customer ID in the dataLayer when Varnish is enabled
Version 2.0.0
Last Update: Feb 29, 2024
2.0.0 - Feb 29, 2024
  • Improvement we separated the compatibility functionality with Consent Mode V2 in a distinct package. You can find the 'amasty/module-google-consent-mode' package for installing in composer suggest
Version 1.5.0
Last Update: Feb 15, 2024
1.5.0 - Feb 15, 2024
  • Compatibility the compatibility with Hyvä Checkout was added. You can find the 'amasty/module-ga4-hyva-checkout' package for installing in composer suggest (Note: the compatibility is available as a part of an active product subscription or support subscription)
Version 1.4.0
Last Update: Feb 12, 2024
1.4.0 - Feb 12, 2024
  • Compatibility now the extension is compatible with the Consent Mode V2
  • Fix we eliminated the error that occurred on a website Home Page
Version 1.3.0
Last Update: Jan 22, 2024
1.3.0 - Jan 22, 2024
  • New the possibility to track Google AdWords Remarketing was added
  • New Tracking via Measurement Protocol was added so now it is possible to track refunds
  • Improvement the 'select_item' event is now tracked in analytics when opening products from widgets
  • Fix we fixed the 'add_to_cart' event tracking
  • Fix now the message about adding an item to the cart is displayed as it should
Version 1.2.0
Last Update: Nov 22, 2023
1.2.0 - Nov 22, 2023
  • Compatibility we added the compatibility with Hyvä Theme for Google Analytics 4 with GTM Support. You can find the 'amasty/module-ga4-hyva' package for installing in composer suggest (Note: the compatibility is available as a part of an active product subscription or support subscription)
Version 1.1.0
Last Update: Aug 11, 2023
1.1.0 - Aug 11, 2023
  • New the possibility to track Google AdWords Conversion was added
  • Compatibility we added compatibility with Amasty Cookie Consent so now it is possible to send data to GA4 using conversion modeling and behavior modeling if the user declined cookies (Note: access to this feature will be enabled once you update the module Cookie Consent (GDPR) to the version, 2.10.1 or newer)
  • Improvement now 'Sign Up' via Amasty One Step Checkout is being tracked in the GA4
  • Improvement ‘purchase’ event is now tracked in GA4 when placing an order with multishipping
  • Fix we fixed the issue with sorting on the search results page
Version 1.0.1
Last Update: Jun 29, 2023
1.0.1 - Jun 29, 2023
  • Fix we eliminated the error occurred on category pages after the module installation on PHP 7.4
1.0.0 - Jun 23, 2023
  • New Initial release. The module is available for installation

Ratings & Reviews

100% of 100