Magento 2 Google Analytics 4 (GA4)

The easiest method to set up Magento 2 GA4 tracking is here. The extension comes with all the important e-commerce events set up in GTM to get a complete view of customers' journeys.
Key Features:
- Enhanced e-commerce events
- Google Ads conversion tracking
- Track user sign-ups & logins
Note: Google has made it mandatory to add consent mode v2 for sites with visitors from the EEA region. You can install Google Consent Mode v2 for uninterrupted data tracking.
Magento Cloud
GraphQL
Hyvä

Description
Get a crystal-clear picture of your marketing performance and store’s experience. The Magento 2 Google Analytics 4 (GA4) extension by Meetanshi helps you set up Google Analytics tracking in your store with ease.
The extension integrates Google Analytics 4 with your store via Google Tag Manager. It helps you track your customer’s entire journey with your store – from the first visit to purchase and beyond – and gain valuable insights to make informed decisions.
The process is super easy and won’t take more than 10 minutes.
Benefits of Google Analytics 4 for Magento 2 Stores
Improve Your E-commerce Tracking with Magento 2 GA4 Extension
Quick Magento 2 GA4 Setup in 10 Minutes
Hundreds of store owners have successfully used Meetanshi's Magento GA 4 integration extension. It's easy to use and comes with a detailed user guide.
You can set up Magento 2 GA4 in just three easy steps:
- Create a GTM account
- Configure extension & generate JSON file
- Import JSON into GTM
No complex settings. No need to hire developers.




GA4 Enhanced Measurement
Get deeper insights into customer behavior and engagement on your Magento 2 store. The enhanced measurement feature that comes with the GA4 integration to measure events like:
- Page views
- Scrolls
- Outbound clicks
- Site search
- Video engagements
- File downloads
- Form interactions
Fully Customizable Magento Tracking
The Magento 2 Google Analytics 4 integration extension can be configured as per your tracking preferences.
In the extension, you can configure:
- Product brand tracking
- Product variants settings
- Revenue calculation
- Product click measurement
- Child vs parent product tracking




Multi-store & Multi-currency Support
Got a multi-store Magento site? Or selling in multiple currencies. No worries. Our Magento Google Analytics plugin has got you fully covered. The Magento 2 GA4 via GTM extension has been successfully tested in multi-store and multi-currency sites.
Track End-to-end Customer Journey with Google Analytics 4


Our Magento Google Analytics extension supports tracking the complete customer journey in your store. This includes getting insights like how many visitors add products to carts, begin checkouts, complete the payment, and abandon the purchase. You can use this data to find bottlenecks in the customer journey in your store and improve the process.
Measure Campaigns’ Performance
Track which marketing source or campaign is driving the most conversions. In the GA4 dashboard, you can analyze the traffic/user acquisition by sources, mediums, and campaigns, along with revenue data so that you can make informed marketing decisions to grow your online business.
Shopping Cart & Checkout Tracking
Google Analytics 4 for Magento 2 extension supports all the shopping cart and checkout events. It helps you to find the cart and checkout abandonments to optimize the customer journey.
Detailed Sales & Revenue Insights
Find out which campaigns bought the maximum $$$. Discover the hidden revenue sources and get clarity on where to put your next feet. The GA 4 Magento 2 extension allows you to track traffic sources that drive the highest sales to your store.
E-commerce Events You Can Track via Magento 2 Google Analytics 4 Integration
The Magento 2 Google Analytics 4 extension by Meetanshi allows you to track the following events from your store:
EVENT | TRIGGERS WHEN |
---|---|
add_payment_info | User adds payment details |
add_to_cart | User adds a product to the cart |
add_to_compare | User adds a product to compare |
add_to_wishlist | User adds a product to the wish list |
begin_checkout | User begins checkout |
purchase | User completes the payment and places an order |
remove_from_cart | User removes a product from the cart |
select_item | User selects an item from the list |
select_promotion | User applies a promotion to the cart |
shipping_info | User adds shipping details |
view_cart | User views the cart |
view_item | User views the item |
view_item_list | User views the item list |
view_promotion | User views the promotion |
How does Meetanshi's Magento 2 Google Analytics 4 Extension Work?

It’s time to extend your Magento analytics with GA4 integration. Install the Google Analytics 4 Magento 2 extension now.
Customer Reviews
Now, I'm able to analyze ad tracking. Thank you for adding these new features!
Thankful for the help after the complete installation and GA4 assistance.
Changelog
-
05 June, 2025
1.1.0
- Compatible with Magento 2.4.8
-
20 March, 2025
1.0.9
- Compatible with Magento 2.4.7-p4
-
20 June, 2024
1.0.8
- Support for Google Ads enhanced conversion tracking.
- Fixed minor issues for improved event tracking.
- Track new signups and logged in users with user_id support.
- Compatible with Magento 2.4.7.
-
31 July, 2023
1.0.7
- Added server-side code to track purchase event.
-
16 May, 2023
1.0.6
- Code improvement and bug fixes.
-
3 May, 2023
1.0.5
- Code improvement and bug fixes.
-
15 Feb, 2023
1.0.4
- Code improvement and bug fixes.
-
09 Dec, 2022
1.0.3
- Added refund event.
-
02 Nov, 2022
1.0.2
- Minor bug fixes and Code Improvement.
-
21 October, 2022
1.0.1
- Minor bug fixes.
Â
FAQs
1. Does this extension work with the latest Magento version?
Ans. Yes, it's fully compatible with the latest 2.4.7 release.
2. Can I Track Enhanced Conversions in GA4 Using this Extension?
Ans. Yes, the GA4 Magento 2 extension supports enhanced conversions, which means you can more accurately attribute conversions in your online store.
3. What is Enhanced E-commerce Tracking in GA4 Magento 2?
Ans. Enhanced e-commerce tracking helps you get a more detailed view of your customer's journey. It offers more data as compared to standard tracking. For example, you can track Product impressions and product clicks, View product details, Add a product to a shopping cart, Initiate the checkout process, Transactions, and Refunds.