Theme
Go Dark Go Light
Stand with Ukraine! How can you help?
Find out more

Magento Google Analytics 4 with GTM | GA4 Integration

Magento 2 Google Analytics 4 Extension is a sophisticated tool that enables you to track customers’ behaviour, impressions, checkout, conversion, custom blocks and much more. It allows you to set up better e-commerce tracking and reports in GA4 with no code editing.

Add measurement codes to your Magento 2 store and get detailed insights on your store performance. Data-driven decisions are a few clicks away with advanced GA4 for Magento.

  • 13+ eCommerce events
  • Client-side tracking and server-side tracking
  • Web container and server container
  • Speed optimization for the GTM script
  • Ready-made JSON files
Regular Price $79 Special Price FREE
one-time payment
Download Now Free Trial
Google Ads Remarketing Tracking / Google Ads Conversion Tracking / Analytics Enhanced Ecommerce Support
FREE version available
Magento 2 Google Analytics 4 Extension benefits
Track 15+ custom events in GA4
Export preset GTM tags from Magento admin panel
Enable GA4 tracking for Magento 2
Live Demo
Compatibility:Magento 2.3.0 - 2.4.7-p3 (CE, EE, ECE, B2B)
Version:2.4.0
Magento 2 Google Analytics 4 Extension
magento 2 google analytics 4

Don’t Edit the Source Code

Magento Google Analytics 4 Extension helps you to implement GA4 tracking codes easier. You don’t need to call out for a developer or edit the source code yourself.

Simply insert the GA4 and GTM tracking IDs in the admin panel and the extension will do the rest.

Choose better Google Analytics 4 tracking with no technical restrictions. Anyone can add, edit and remove tags now.

Benefit from Better GA4 and Reports

Enable rich data tracking and reporting with the Magento 2 Google Analytics 4 integration. No need to wonder what events you need to track and create.

This extension uses Google Tag Manager and offers ready-made tags.

Just enable the tracking IDs in the admin and generate the JSON file with all the essential tags.

Then import that file into your GTM account and that’s it. Start tracking all vital store actions now!

Magento 2 Google Analytics 4
Measure Checkout Performance in Google Analytics

Monitor Checkout Performance

If you don’t want people to abandon checkout on your store, you need to find out what causes them to leave.

Do that with the robust Magento Google Analytics 4 Extension.

Visualize your checkout funnel to discover the bottlenecks and act on them.

Learn how customers move through each step of the checkout in detail and improve each accordingly.

Follow Customers’ Journey

You can't improve customer experience without learning how they interact with your store first.

Follow every step of the customer's journey in your store and see what actions they take:

  • - add products to a cart or wishlist
  • - abandon their shopping carts
  • - create an account
  • - finish checkout successfully


Use Magento 2 GA4 Extension to make data-driven decisions and improve customer retention.

Track custom events in Google Analytics 4
Product performance report in Google Analytics 4

Track Product Performance

Magento 2 Google Analytics 4 with GTM helps you to drive more customers' attention to certain products.

Track products that get the most views, products that are usually abandoned in a cart or added to a wishlist.

Measure user engagement on different product pages, analyze impressions and clicks and tweak your marketing strategies.

Enable Dynamic Remarketing and Conversion Tracking

Analysing current and new customers only won't make your marketing strategy successful.

You should also focus on people who visit your website but leave without a purchase.

That's what Google Ads Dynamic Remarketing and Enhanced Conversion Tracking help you with.

Show personalized ads based on products and services people visit. Improve conversions while focusing on a customer-centric approach.

 magento 2 google ads

Transform your digital strategy

Maximize the potential of your online presence by getting valuable insights

magento server side tracking

Enable Server Side Tracking

Sometimes, GTM tracking scripts can't capture all the data. Your customers might use the adblockers or simply don't convert to cookies.

Prevent some data from being missed with the server-side tracking.

Enable it through GA4 Measurement Protocol or GTM server container using our Magento Google Analytics tool. Never miss a conversion again!

Measure Coupon Performance

To determine whether your marketing campaigns are successful, you need to know how your coupons perform.

Monitor coupon performance and the revenue they generate by source and medium with GA4 advanced reporting.

Improve your marketing channels based on insightful data reports. Track the total revenue your coupons generate or the total revenue per coupon with Magento Google Analytics 4.

Coupon Performance Google Analytics 4
Track product blocks Google Analytics

Track Product Blocks in Magento 2

Related products, cross-sells and up-sells can increase conversions when implemented properly.

However, creating personalized product blocks is not always enough. Especially if you don’t know if they work.

Use the Magento 2 Google Analytics 4 tool to monitor product impressions in custom product blocks and increase sales accordingly.

Monitor Customers’ Searches

One way to find out what products customers are interested in is to track product views and conversions. But that’s not the only way.

Use this Magento 2 Google Analytics 4 Extension to track customers’ searches.

Monitor what pages customers use the search on and what medium they come from.

Make optimizations, restock and start selling products your customers are eager to buy.

track search requests in google analytics
login and sign up events ga4

Track Customer's Account Activity

Your customers' account activity is as important as their browsing through your catalogue.

Magento 2 Google Analytics 4 Extension helps you to track the login and sign-up events.

Learn how many visitors sign up for an account daily and how many of them make purchases as guests.

Tweak your strategies towards building a more extensive customer base. Encourage more customers to log in before going to checkout.

Comply with Google Content Mode

Since Google takes the responsibility to protect customers’ privacy very seriously, you should too.

Magento Google Analytics 4 tool ensures that you comply with Google Consent Mode.

Set consent to denied by default if you use default Magento Cookies Restrictions Mode.

Only when customers accept the cookies certain parameters will be set to granted.

magento google consent mode
gtm script loading optimizazation in magento

Maintain Great Website Performance

Since you don’t need to add any GMT code snippets to your website source code, it loads faster.

Just enable the deferred loading of the GTM scripts. The Magento Google Analytics 4 Extension will load them only after the first click, scroll or mouse touch.

Maintain better data tracking with no influence on website performance.

Use Custom GTM Loaders

Since our Magento 2 GA4 Extension works with different scenarios, you can install the GTM code in different ways.

Go the easy way and use only the tracking IDs or use the HEAD and BODY fields, if you use Stape.io or any custom GTM loaders.

use custom gtm loaders for magento

FAQs
Does Magento 2 support Google Analytics 4?
Yes, Magento 2 supports Google Analytics 4 along with Google Ads Conversion Tracking and Dynamic Remarketing. And our Google Analytics 4 for Magento 2 allows you to implement it without any technical knowledge.
How to integrate Google Analytics 4 with Magento 2?
To add Google Analytics 2 to Magento you need to create a GTM account and GA4 property. Then insert your Measurement ID into Stores > Configuration > Magefan Extensions > Google Tag Manager and Analytics > Google Analytics 4 > Measurement ID and save the configuration.
Can I use both Google Analytics 4 and Universal Analytics?
You could use both Universal Analytics and Google Analytics 4 for your Magento 2 store before Google announced that UA is going away on July 1. Now you need to move to GA4.
Can I install Magento 2 Google Analytics 4 Extension via the composer?
Yes, all our modules can be installed via the composer. Once you purchase the extension, you receive keys to the private Magefan composer repository. The composer installation commands are available in your account ("My Downloads" section).
Do you offer installation for this extension?
Each Magefan extension comes with the extension files and installation guides. The installation service is not included in the extension price. You can purchase it separately.
Does this extension come with free support and updates?
After you purchase the extension, you get 365 days of free updates and free support. You also keep the source code of the latest version released during these 365 days.

Yet, if you'd still like to update after 365 days pass, you can renew access to updates and support for 50% of the extension's price. Find more in our license agreement.

Do you offer a free trial for Magento 2 Google Analytics 4?
Yes, you can request a free trial for this extension by filling out the free trial form. If you comply with all the free trial requirements, we’ll issue a trial for 14 days.
Do you offer any discounts?
If no sale is running currently, you can get a discount by subscribing to our newsletter or leaving a review for any of the extensions you already use.
How many websites can I use Magefan extensions on?
According to our license agreement you can use one extension license on one live Magento instance and multiple stage, dev and test instances.

This means the extension will work on all websites within one Magento admin panel. At the same time, you don’t need a license key to use the extension on stage, dev or test websites.

Quick Overview Video

Track important eCommerce events better with the Magefan Google Analytics 4 Extension. Improve your marketing campaigns with in-depth data reports.

Watch this short video to learn how to add GA4 to Magento using GTM.
Brands Who Trust Us
Magento 2 Google Analytics 4 Extension
Live Demo
Top