Trader Information
Back to topOverview
Back to topGoogle Tag Manager for Magento 2 seamlessly integrates Google Tag Manager and Google Analytics 4 into your store, allowing you to collect accurate eCommerce data without coding. It enables merchants to deploy and manage marketing tags, track customer behavior, and gain actionable insights into how users browse, add to cart, and purchase. With this integration, store owners can identify conversion bottlenecks, optimize campaigns, and enhance the overall shopping experience—all through an intuitive admin interface.
Account & Pricing
This extension requires a free Google Tag Manager and Google Analytics 4 (GA4) account. No additional fees are charged by Mirasvit. Once connected, data is sent directly from your Magento 2 store to your Google Tag Manager and GA4 accounts for reporting and analysis.
Key Features
- No manual code editing required—connect to GA4 through an admin interface
- Track complete customer journeys using Enhanced Ecommerce tracking
- Measure views, clicks, adds to cart, checkouts, and purchases
- Support for all GA4 Enhanced Ecommerce events
- Integrate tracking with custom frontend blocks via markup markers
- Add custom dimensions and metrics for advanced reporting
- Track promotions, wishlists, and product variant events
- Send refund events automatically through cron jobs
- Debug tracking data using the built-in toolbar
- Compatible with Hyvä Theme
Problem:
Ecommerce Tracking in Google Analytics allows you to get in-depth reports on user actions in the store. These profound reports improve your revenue. However, adding this tracking directly to the Magento 2 store code can be a complex task.
Solution:
Using our Google Analytics 4 module, Ecommerce Tracking can be activated without requiring deep coding knowledge. With this solution, you can embed the GTM tracking snippet into your Magento 2 store simply by pasting it into the store's admin panel.
What benefits does Google Analytics for Magento 2 bring to your store?
Google Analytics provides deep insights into customer interactions with your Magento 2 store. This data is collected by the Google Tag Manager code snippet embedded in the store's frontend.
By analyzing data on in-store user behavior, you can identify bottlenecks in the shopping process and gain insights to optimize your marketing strategies, content, and user experience.
Get in-depth customer tracking
Track the entire lifecycle of user actions in your store with Google Analytics for Magento 2, from the moment a visitor lands on your website to the point of purchase.
Use this in-depth tracking to identify bottlenecks in the shopping process and make adjustments to improve the customer experience.
Use your marketing budget more effectively
Use the reports in Google Analytics for Magento 2 to get insights on increasing the effectiveness of your marketing campaigns.
Highlight why shoppers abandon their carts
Utilize the Google Analytics Enhanced Ecommerce Magento reports to pinpoint the stage at which customers abandon their carts.
Get insights for implementing targeted measures to reduce abandonment rates, thereby increasing your overall sales.
Obtain actionable insights
Make informed decisions, tailor your marketing efforts, enhance user experience, and ultimately boost your store's revenue with the reports built by Google Analytics based on data collected in your store.
Features overview of GA4 and Google Tag Manager extension for Magento 2
- No manual code editing needed to connect GA4: Mirasvit's GA4 extension for Magento 2 connects your store to GA4 without requiring manual editing of your store's Magento code. It offers a user-friendly interface for embedding the GTM tracking snippet, ensuring accurate and comprehensive data in GA4.
- Apply custom tracking dimensions and metrics: the Google Tag Manager Enhanced Ecommerce extension is capable of collecting almost any data on users in your store. Configure custom dimensions and metrics to gain a deeper understanding of website traffic and user behavior.
- Integration with custom blocks in the store's frontend: track how users interact with custom blocks on your frontend. Our analytics module for Magento 2 can send data to GA4, such as view_item_list, view_item, and select_item, when users interact with your custom blocks.
- Support for extended reports in Google Analytics 4: gain insights into the entire purchase process, from product views and cart additions to checkout steps and payment methods. This data is analyzed with Extended reports in GA4.
- Measure how often products are viewed by users: use our Google Analytics 4 with GTM extension to collect data on products viewed by visitors and deliver it to the respective GA4 report. This helps understand customer behavior on a profound level.
- Monitor events for customer groups and product variants: collect events specific to customer groups in your store and build reports based on this data to provide personalized recommendations to customers within a specific customer group. Additionally, track user-generated events specific to product variants.
Improve customers' shopping journey to increase orders
Track customer actions in your store and gather valuable data that can highlight shopping experience bottlenecks.
Receive hints on how to increase your sales by knowing which products customers are viewing and when they add or remove items from the shopping cart.
Utilize the data collected for E-commerce Tracking in Google Analytics to understand how your marketing strategies can be optimized.
Google Analytics 4 (GA4) support
Get a first-class integration between your store and the Google Analytics 4 suite. Furthermore, the extension supports Google Ads remarketing.
In addition to tracking online events on the frontend, the extension offers the functionality of offline refund tracking through cron jobs. This means that whether a credit memo is created automatically or via the backend, the extension will send the refund event to Google Analytics 4.
The Google Tag Manager Enhanced Ecommerce extension for Magento 2 supports the full list of Google Analytics 4 tracking events:
- Product List Views (view_item_list)
- Product List Clicks (select_item)
- Product Detail Views (view_item)
- View Shopping Cart (view_cart)
- Adds/Removes from Cart (add_to_cart, remove_from_cart)
- Checkouts (begin_checkout)
- Adds payment info (add_payment_info)
- Adds shipping info (add_shipping_info)
- Purchases (purchase)
- Promotion Views (view_promotion)
- Promotion Clicks (select_promotion)
- Adds to wishlist (add_to_wishlist)
Track custom blocks in Google Analytics
Understand the effectiveness of custom product blocks on your store's frontend. Collect data such as view_item_list, view_item, and select_item for custom block tracking in Google Analytics. Build reports based on this data to get hints on how your custom blocks can generate more sales.
Built-in Debug Toolbar
Know exactly what information is being transferred to Google Analytics with every triggered action.
Utilize the built-in Debug toolbar provided by our Google Tag Manager extension to view the collected data for each monitored event.
Demo
See it in action: Backend Demo | Frontend Demo | Hyvä demo
Technical Specifications
Back to topSeller profile
Seller contact
Integrator
Current Version
2.0.28
Adobe Commerce platform compatibility
Adobe Commerce (cloud): 2.4 (current)
Adobe Commerce (on-prem): 2.4 (current)
Magento Open Source: 2.4 (current)
Type
Stable Build
Updated
05 November, 2025
Categories
Extensions, Marketing, SEO/SEM, Marketing Automation, Advertising
Quality Report
Back to topAll tests were conducted on the latest versions of Adobe Commerce that existed for the compatible release lines at the moment of the extension submission. Latest versions of all other software were used, as applicable.
Release Notes
Back to top2.0.28:
- Compatible with Adobe Commerce (cloud) : 2.4
- Compatible with Adobe Commerce (on-prem) : 2.4
- Compatible with Magento Open Source : 2.4
- Stability: Stable Build
-
Description:
Optimized product attribute value fetching in data converter
Support
Back to topThe best place to start if you need help with a specific extension is to contact the developer. All Adobe Commerce developers have both a contact email and a support email listed.
Contact Vendor