Soon, Cookie Consent will be mandatory even for targeting countries outside EEA-UK (like Switzerland).
To get ready, implement consent mode easily with our M2 COOKIE CONSENT module now! Special Price: $35 until May 27 - GET NOW

Magento 2 Google Analytics 4 - GA4

Community: 2.3.x - 2.4.x
Enterprise: 2.3.x - 2.4.x

Magento 2 Google Analytics 4 is an extension that helps you track your website performance by collecting event-based data from both websites and apps. Don’t worry about technical knowledge, our module simplifies integrating your Magento 2 stores with GA4 directly without the support of Google Tag Manager. 

Specifically, the main functions of Magento 2 Google Analytics 4 are:

  • Integrate Magento 2 GA4 with your store easily without much coding knowledge
  • Support 5 default and most popular events with eCommerce tracking in real-time
  • Identify products through product ID/SKU
  • Select the brand characteristics from the backend to discover promotion performance
  • Enable the product variant feature from the backend.
  • Tracking action of Server-Side and Client-Side
  • Tracking conversions of multiple 3rd-party payment methods
  • Compatible with Hyva Theme and Hyva checkout
  • Compatible with Magento 2.4.7



1/ Luma Backend Demo

2/ Hyva Frontend Demo, Backend Demo

  • User: admin
  • Pass: demo123@#



Improve website performance with 5 event-based data

The inclusion of several codes in the website's source code makes your site load slower than usual. In addition, using GTM may require some technical knowledge.

To handle all of these, you only need to fill in the GA4 Measurement ID to our Magento 2 extension Google Analytics.

Excellent GA4 features will be seamlessly integrated into your store. Online stores can send 5 types of event-based data to Google Analytics Magento 2 for store owners to monitor customer activity.

  • Select an item from a list
  • View item details
  • Add or remove an item from a shopping cart
  • Initiate the checkout process
  • Make a purchase or a refund

Tracking through various attributes

Our module gives you the ability to identify products in 2 ways such as product ID and SKU.

Additionally, the Magento 2 Google Analytics 4 extension makes tracking performance by brand/affiliation easier. The administrator can select the brand characteristic from the backend and enable the same. There is a backend option to enable the product variant attributes.

This function works exceptionally well for stores with large catalogs.


Easily manage & customize reports from the backend

To access eCommerce reports, all you need to do in the backend is enable Magento 2 GA 4 extension.

Easily tracking conversions based on your requirements, including

  • Option to get price of bundle product
  • Option to Exclude Shipping From Transaction:Transaction value will not be counted with shipping cost.
  • Option to Exclude Orders with 0 value:Transactions with total = 0 will not be listed in GA4.

Option to enable debug mode

Debug mode, which includes error and warning messages, might let you know if your analytics tracking code is misconfigured. Additionally, it thoroughly analyzes every tracking beacon transmitted to Google Analytics.

To enable debug mode, you need to install an additional extension of Google. We’ll offer a complete guide for you in the User Guide.

Add custom dimension in GA4

New: Support creating custom dimensions for custom product attributes

Besides the predefined dimensions that Google Analytics already provides, users can also add customized parameters for any data you’ve gathered from your web store. This helps you to have better analytics and can be used for advertising.

But the thing is, you have to code your own parameters into your store web, which is pretty much daunting.

At the moment, our GA4 extension will support creating custom item-scoped dimensions in the backend, which is really useful in e-commerce to analyze product attributes like color or size, etc. These will align with e-commerce events like 'purchase' or 'add_to_cart'. Then, you only have to add the same item-scoped parameters on your GA4 account and let the module do the matching and reporting

Choose the best-fit plan based on your needs
Ecommerce Migration
Handle the hard work for you
  • Audit UA, GTM and other reports
  • List all necessary items and settings to be migrated to the new GA4
  • Create new GA4 property
  • Configure GA4 property
  • Reconnect old reports to the new GA4
  • Migrate goals and conversions from UA to GA4
  • Setup enhanced ecommerce tracking in GA4
  • 3-month support via live chat

$ 199.00
Advanced Migration
Contact us
Provide everything you need for setting up GA4
  • Audit UA, GTM and other reports
  • List all necessary items and settings to be migrated to the new GA4
  • Create new GA4 property
  • Configure GA4 property
  • Reconnect old reports to the new GA4
  • Setup Google Data Studio custom reports
  • Create new GTM tags to work with the new GA4
  • Migrate goals and conversions from UA to GA4
  • Migrate custom dimensions and custom metrics from UA to GA4
  • Setup enhanced ecommerce tracking in GA4
  • 3-month support via live chat
Magento 2 Google Analytics 4 - GA4 user reviews

Why Choose BSS

Competitive Price
Every merchant needs to survive – we do understand. That’s why we keep the price as low as possible.
Dedicated Support
We are all ears to your problems, either with our extensions or customizations. FREE 1-year support is included.
Open Source
The source code is completely open to inspect, modify and enhance according to your business purposes.
Qualified Code
We have developed a validation tool to ensure that every piece of code follows Magento coding standards.
High Compability
Our modules work well with each other. Even you want ours to be compatible with those of others. We are here to help
Simple installation
We simplify and clarify the installation process, so you can get the extension played for your website in clicks.
Quick Update
Your business and customers’ demands are ever-changing. Our extensions are also up-to-date with new features.
Business expert
Our certified experts get involved from the extension development to support to bring you efficient and budget solutions.
Easy to Use
No need to install bunches of redundant features. We select the most relevant functions to ensure the user-friendliness.


  • Can I use this module if I'm using Google Tag Manager (GTM) to connect with Google Analytics? Will it be any errors?

    Absolutely yes! Our module enables connect with Google Analytics 4 via GA4 ID, which only makes the process simpler. It does not conflict with GTM method, and we guarantee there will be no error.
  • What are the benefits of integrating with Google Analytics via GA4 ID compared to integrating via Google Tag Manager (GTM)?

    There are 4 major benefits when connect directly via GA4 ID using our module:

    • It doesn’t require the use of additional tools or platforms
    • For basic tracking needs (page views, basic conversions, general website performance metrics, etc.), the direct integration method is more straightforward and effective
    • It reduces the dependencies on developers and external tools like Google Tag Manager
    • You have direct control over the implementation, as you can manually add and modify the tracking code in your Magento store’s codebase


Release Note
    • v1.0.6 (Apr 19, 2024): 
      • Update: Tracking backend admin order on GA4.
      • Fix: bug keep showing refund events after refunding one order then checking other orders.
    • Hyva Compatible v1.0.1 (Apr 4, 2024): Compatible with Hyva Checkout
    • v1.0.5 (Mar 13, 2024): 
      • Fx bug: Wrong currency.
    • v1.0.4 (Jan 2, 2024): 
      • Fix bug:
        • Controller's error when there is no quote item 
        • The quantity is shown as 1 rather than the actual quantity for the item purchased
        • Send multiple event shipping/payment
        • Doesn't show the item variant value for the purchase event
        • Trigger add_to_wishlist event on the wrong pages.
        • Whitelist csp for the extension.
    • v1.0.3 (Sep 19, 2023): 
      • Update:
        • Compatible with BSS Layered Navigation extension (useAjax=True)
        • Compatible with PHP 7.2
      • Fix bug:
        • Provide Access Control List
    • v1.0.2 (Jul 13, 2023):
      • Update:
        • Compatible with Adobe Commerce 2.4.6
        • Compatible with M2.3.x
        • Event view_item_list works with New Product Widget
        • Send event add_to_wishlist when adding products to wishlist from shopping cart page
        • Remove 'affiliation' parameter in event parameters
        • Compatible with BSS One Step Checkout 
      • Fix bug:
        • Send event select_item only when directing to a new page, not when going back to previous page
        • Throw errors when editing cart page
        • Show wrong parameter value of purchase event when using different currencies
        • Issue select shipping method is repeatedly called, resulting in maximum call stack size.
    • v1.0.1 (May 15, 2023): 
      • Update: Compatible with M2.4.6
      • Fix bug: missing events when data layer contains multiple items
      • Fix bug: die site when products do not belong to any category
    • Hyva compatible v1.0.0 (Apr 06, 2023): First Release
    • v1.0.0 (Jan 19, 2023): First Release. Support 5 types of events: Select item, view item, add to cart, begin checkout and checkout.