Powered by Adobe Commerce 2.4.5


Google Analytics 4 (GA4) Using GTM

First year:


Back to top

Google Analytics 4 (GA4) was released in October 2020 to provide more profound and advanced web analysis to businesses. Google calls it the 'future of measurement'. The advanced web analytics tool is designed for the future, which collects both web and app data, supports direct integration to media platforms, and follows event-based tracking. It comes with advanced features and functionalities that help eCommerce websites gather more insightful data, which track every step of the customer's journey. Meetanshi has made the Google Analytics 4 integration with Magento easier with the Google Analytics 4 (GA4) Using GTM for Magento 2 extension.

An obvious reason for the Magento 2 store owners to upgrade to the GA 4 is the discontinuation of Google Analytics Universal property by Google. According to the official announcement, the Google Analytics Universal property will stop processing data from July 1, 2023, onwards. Take a big leap by upgrading to the most advanced version of the web analytics tool by Google and discover more meaningful insights about your online store. Google Analytics 4 (GA 4) Using GTM for Magento 2 extension makes the integration easier with the built-in eCommerce events.

Our Google Analytics 4 for Magento 2 extension connects the stores with GA 4 property using the Google Tag Manager. The store admin just needs to fill in the basic details, configure the extension, and enter the API details to generate the JSON file, which can be used to import the tag information into the GTM.

The extension comes with built-in essential eCommerce events so that the store owners are not required to create and tag each event manually. Store owners can easily configure the settings from the backend to create the GTM JSON file with the pre-defined eCommerce events.



  • The admin can enable or disable the GA4 extension from the backend.
  • In order to install Google Tag Manager in Magento 2, the admin needs to copy the <head> & <body> from the GTM account and paste them into the respective fields in the backend.
  • The admin can choose the product identifier variable from the backend.
  • The admin can enable tracking of the product brands and product variants in GA4.
  • The admin can choose from the following two different ways to calculate the success page total:
  • Grand Total (Including Discounts)
  • Sub Total (Excluding Discounts)
  • The admin can choose to exclude tax, shipping, and shipping with tax from the transaction.
  • In the case of custom success pages, the admin can enter multiple custom success page paths for tracking order success in GA4.
  • The admin can choose to exclude or include the orders with zero grand total while tracking in Google Analytics 4.
  • The admin can enable the functionality to measure the product clicks in Magento 2 and track the same in Google Analytics 4.
  • The admin can choose to track parent products or each of the child products in Magento 2 separately in GA 4.
  • The admin can easily configure the GTM API by entering the Account ID, Container ID, and Measurement ID in the backend.
  • Once the extension is configured properly, the admin can export all the tags to a JSON file by entering the GTM Public ID in the backend.
  • The admin can import the generated JSON file into the Google Tag Manager account and set up all the tags for Magento 2 events and triggers.
  • After the final submission of the imported GTM tags, the Google Analytics 4 is successfully set up with Magento 2.

Note: The Google Analytics 4 may take up to 24 hours to track all the data and display reports.


How Does the Extension Work?

The admin needs to enable the extension from the backend, enter the JS and non-JS code, select the product identifier, and enable or disable the product brand and variant from the configuration. The admin can also choose to include or exclude the tax, shipping, and shipping with tax from the transaction, enter custom success page paths, choose to exclude orders with zero value, measure product clicks, and choose from parent and child products for tracking in the Google Analytics 4.

The admin needs to configure the Google Tag Manager API by entering the account ID and container ID in the extensions' respective fields and connect the Google Analytics 4 by entering the measurement ID. Once everything is configured, the admin needs to enter the GTM public ID and export the JSON file containing the tags, events, and triggers. The admin needs to import the JSON file into the GTM account and submit the tags to set up Google Analytics with Magento 2 store.

The admin can also preview the uploaded GTM tags before final submission. Once the tags are submitted, Google Analytics 4 starts tracking the Magento 2 data. It may take up to 24 for the GA4 to come into a fully operational mode.


Security Features:

As Google Analytics 4 is a third party analysis tool that collects both website and app data to better understand the customer journey, it captures the customers' payment and credit card information while recording the website data. Our extension simply integrates the tool with Magento 2 and doesn't store any payment information and credit card data from the website. The whole process uses script to communicate payment data with the Google Analytics 4, it assures card and payment data security. 


Also Comes With:

  • 1 Year Free Updates
  • 25 Days Marketplace Return Policy
  • Multi-Store Support
  • 100% Open Source


If you have any questions about this extension, you can Contact Us, and we will reply to you back within a few hours.

Technical Specifications

Back to top

Seller profile


Seller contact



Google Analytics

Current Version


Adobe Commerce platform compatibility

Open Source (CE): 2.3 (current), 2.4 (current)

Commerce on prem (EE): 2.3 (current), 2.4 (current)

Commerce on Cloud (ECE): 2.3 (current), 2.4 (current)


Stable Build


22 September, 2022


Extensions, Reporting & Analytics

Supported Browsers

Chrome, Firefox, Opera, Safari, Edge, IE

Quality Report

Back to top

Installation & Varnish Tests


Coding Standard


Plagiarism Check


Malware Check


Marketing Review


Manual Testing


All 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 top


  • Compatible with Open Source (CE) : 2.3 2.4
  • Compatible with Commerce on prem (EE) : 2.3 2.4
  • Compatible with Commerce on Cloud (ECE) : 2.3 2.4
  • Stability: Stable Build
  • Description:

    - Minor bug fixes and code Improvement


  • Compatible with Open Source (CE) : 2.3 2.4
  • Compatible with Commerce on prem (EE) : 2.3 2.4
  • Compatible with Commerce on Cloud (ECE) : 2.3 2.4
  • Stability: Stable Build
  • Description:

    Initial Release


Back to top

The 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

Q & A

Back to top


Back to top