Stand with Ukraine! How can you help?
Find out more

Magento 2 Google Analytics 4 (GA4) with GTM Support

Magento 2 Google Analytics 4 (GA4) Extension is an all-in-one data tracking solution that connects Google Analytics and Google Ads with Magento in minutes and tracks vital eCommerce data through Google Tag Manager (GTM) with no manual configuration.

The extension includes a pre-built data layer with ready-to-use tags, triggers and variables for GTM, advanced GA4 server-side tracking options and custom environment settings.

Get full insights into customer behaviour, product impressions, cart and checkout actions, conversions, and custom blocks performance — without struggling with scripts.

  • 13+ essential eCommerce events
  • Full pre-built data layer with all ready-to-use tags, triggers, and variables
  • Web and server-side GTM containers
  • Google Tag Gateway
  • GTM Server Container or Measurement Protocol
  • Google Ads Remarketing and Conversion Tracking
  • Google Analytics Enhanced Conversions
  • Optimised GTM loading (script loading delay)
  • GDPR-ready (Google Consent Mode/ default Magento Cookies support)
  • Compatibility with the Magento 2 Cookie Consent Extension
  • Hyva Theme & Hyva Checkout compatibility
  • No code editing or technical skills required
Pricing plans:
Compare Plans and Pricing
Regular Price $79 Special Price $0
one-time-payment-info
one-time payment
Add to Cart
More accurate tracking. Better ad performance. More consistent marketing decisions.
FREE version available
magento google analytics 4
track checkout actions in ga4 magento
track product performance in google analytics magento
track store performance in ga4 magento
Live DemoLive Demo
Compatibility:Magento 2.3.0 - 2.4.8-p4 (CE, EE, ECE, B2B)
Version:2.4.0

Benefits of Magento 2 G4 Extension

relevant

Quick setup

Launch eCommerce tracking in Google Analytics 4 in minutes with a pre-built data layer containing ready-to-use GTM tags, triggers and variables. No scripts, no developers, no complex admin settings, no manual GTM setup.
relevant

Improved data accuracy

Track every vital eCommerce event reliably with flexible client-side (web) or server-side options — GA4 measurement protocol, Google Tag Gateway, GTM server container or custom GTM loaders. Stop losing data to adblockers, browser restrictions or cookie limitations.
relevant

Full funnel insights

Get insights about customer behaviour, catalogue performance, cart and checkout flow, related products, coupons effectiveness, traffic source and multiple other metrics. Extend generic reports with custom parameters and custom product data.

Features of the Magento Google Analytics 4 Extension

Magento GA4 Extension comes with a variety of features to ensure accurate, reliable and error-free data tracking in Magento.

track ecommerce events in magento store

Accurate Google Analytics eCommerce Tracking. Finally.

Inaccurate event tracking, missing event parameters, and broken tracking scripts quietly break your campaigns. And your business decisions.

With our Magento Google Analytics 4 Extension, you track every important customer integration automatically. From product page visits to checkout success, events are triggered and passed with the correct parameters.

Just enable the extension, connect GA4 and GTM and start collecting reliable insights immediately.

No missing events. No broken conversion tracking. No guessing.

Set Up GA4 and Google Ads in Minutes. Not Hours.

Setting up GA4 and Google Ads in Magento shouldn’t take days of configuration.

With Magefan GA4 Extension, insert your tracking ID into the admin panel and export the pre-built GTM container. It already contains all required tags, triggers and variables.

  • - No developer required.
  • - No manual tag creation.
  • - No complex debugging.

Launch Google Analytics 4 tracking in minutes and move straight to optimising your campaigns, audiences and performance.

set up google tag manager in magento
track customer journey magento

Track Full Funnel — From Product Views to Purchases

Without proper data tracking, you never know where and why customers leave. Is it login, shipping or payment? Guessing where the problem is — is expensive.

Understand how customers go through each stage in your store. Track product impressions, clicks, add-to-cart actions, checkout steps and completed purchases.

Visualise your funnel in GA4, so you can:

  • - Spot optimisation opportunities
  • - Improve checkout flow
  • - Optimise conversion rates
  • - Optimise with confidence

Track the Entire Customer Journey — Not Just Purchases

Revenue doesn’t start at checkout. It starts with product views, searches, account sign-ups and additions to the wishlists.

Monitor an entire customer journey and track micro-conversions that influence purchases.

Use Magento 2 Google Analytics 4 Extension to learn:

  • - Which products are added to wishlists but never purchased?
  • - What do customers search for the most?
  • - How many customers create accounts before purchasing?

Understand purchasing behaviour long before the purchase to find patterns and optimise.

track customer journey ga4 magento
magento google ads conversion tracking

Smarter Google Ads Conversion Tracking and Remarketing

Turn more accurate e-commerce data into better Google Ads performance.

Magefan GA4 Extension for Magento sends structured product IDs, cart values and order parameters directly to Google Ads.

Connect Google Ads in minutes and make your ads smarter with better attribution.

Build better remarketing audiences, optimise bidding and improve your ads based on real conversions.

Improve Data Accuracy with Server-Side Tracking

Browser restrictions and ad blockers prevent some of your data from ever reaching G4. This means lost conversions, broken attribution, and underreported revenue.

Avoid that with our Magento 2 Google Analytics 4 Extension.

Enable server-side tracking though GA4 Measurement protocol, GTM server container or Google Tag Gateway.

Improve attribution accuracy. Reduce data loss. Track consistently without any extra extensions.

magento server side tracking
google tag manager event parameters

Build Custom GA4 Reports with Multiple Parameters

What customer groups convert the best? How much revenue each coupon generates? Standard reports rarely answer these questions.

Get detailed page, product, order, customer and traffic source parameters with every event.

Our Magento 2 Google Analytics 4 Extension allows you to build custom GA4 reports tailored to your store.

Stop relying on generic data. Rely on Magefan and start analysing what reallymatters to your business. In more detail.

Stay Compliant While Tracking Data

Tracking should respect data privacy regulations without breaking your analytics. Stay aligned with Google policies and track data confidently.

This Magento Google Analytics Enhanced Ecommerce extension supports Google Consent Mode and the default Magento Cookie Restriction Mode.

Just configure consent directly in the admin to control consent behaviour and maintain data tracking accuracy. Without any extra extensions.

Note: this GA4 Extension is fully compatible with the Magento 2 Cookie Consent Extension.

magento gtm cookie compliance
google tag manager script loading magento

Better GA4 Tracking That Keeps Your Store Fast

Heavy tracking scripts silently hurt your Core Web Vitals every time they load. It slows down your store and affects SEO and sales.

But not with this Google Analytics 4 Extension for Magento. It gives you full control over the script load, which never competes with the critical sources.

Delay GTM and GA4 scripts loading until the first scroll, click or interaction. Track accurately without sacrificing performance.

Flexible Integration for Custom and Headless Stores

Every Magento store is unique. Magefan GA4 Extension for Magento adapts to each.

Integrate GA4 tracking for Mageno custom themes and headless storefronts without rebuilding your architecture.

Our extension allows you to use HEAD and BODY script insertion for custom GTM loaders and REST API endpoints for PWA builds.

google tag manager magento hyva theme

Frequently asked questions about the Magento Google Analytics 4 Extension

Can Magento 2 track GA4 events out of the box?
collapsible icon
Yes. The default Magento setup allows you to connect to Google Analytics 4. But it only tracks page views. For more advanced GA4 events like clicks, scrolls, add-to-carts and purchases, you need to add Google Tag Manager.
Does Magento 2 support Google Analytics 4?
collapsible icon
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 do I add Google Analytics to Magento 2?
collapsible icon
Magento enables you to add Google Analytics 4 by default. You just need to add your Measurement ID to Sales > Google API > Google Gtag > Google Analytics 4. However, it just connects Magento with GA4. You still need to connect GTM and create tags, triggers and variables there to pass data to Google Analytics.
Should I use Google Tag Manager or Google Analytics in Magento?
collapsible icon
You generally use both in Magento since Google Analytics 4 only analyses data, while Google Tag Manager collects it and manages tags and triggers that make tracking possible. Use the Magefan Google Tag Manager Extension to connect both in Magento without manual setup.
What is the Magento 2 Google Analytics 4 Extension?
collapsible icon
Magento 2 Google Analytics 4 is an extension that allows you to connect Google Analytics 4 to Magento through pre-built GTM data layer and track all vital eCommerce events without setting up tags, triggers and variables manually or with developer support.

This extension converts multiple custom parameters for product, order, customer and traffic sources which allows you to create custom GA4 reports and get more insights into your store performance.
Can I enable server-side Google Analytics 4 in Magento?
collapsible icon
Yes. Magefan Google Analytics Extension supports GA4 Measurement protocol so you can send data from your server directly to Google Analytics and avoid ad blockers and browser restrictions.
Can I install Magento 2 Google Analytics 4 Extension via the composer?
collapsible icon
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).

People Also Searched For
google analytics magento
magento google analytics
magento 2 google analytics 4
magento 2 google analytics extension
magento 2 google analytics 4 extension
magento 2 google analytics
magento 2 google analytics ecommerce tracking
google analytics 4 magento 2
magento 2 google analytics ecommerce
magento 2 google analytics enhanced ecommerce
google analytics magento 2
google analytics 4 magento 2 extension
magento 2 ga4 extension
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.
Related Extensions
Magento 2 Facebook Pixel Extension
Facebook Pixel
Regular Price $79 Special Price $0
(11)
Track customers' behaviour in your store with Facebook Pixel to leverage that data in your Facebook campaigns.
Magento 2 TikTok Pixel
TikTok Pixel
$149
Track customers' behaviour on your store with the TikTok Pixel and Conversion API to optimise your ads and create custom audiences.
Magento 2 Google Shopping Feed Extension
Google Shopping Feed
$99
(18)
Extend your reach and create product feeds for Google Shopping in a few simple clicks. Don't overpay for platforms you don't need.
Magento 2 Google Analytics 4
Live Demo
chevron-up Top