cancel
Showing results for 
Search instead for 
Did you mean: 

Magento and Google Analytics 4 (GA4) Creating Events and Conversions

Magento and Google Analytics 4 (GA4) Creating Events and Conversions

Does anyone know how to create basic e-commerce events for conversions in GA4? Things like 'add to cart', 'purchase' etc. 

 

Magento does not have any documentation yet for GA4 and was hoping to get some basic events and conversions set up.

 

4 REPLIES 4

Re: Magento and Google Analytics 4 (GA4) Creating Events and Conversions

You can consider creating events in GA4 which you can then use with your Magento store: https://support.google.com/analytics/answer/10085872

 

There are also a bunch of Magento extensions that can simplify this process for you. Here's an example from the Magento Marketplace: https://marketplace.magento.com/weltpixel-module-google-tag-manager.html

 

Best of luck!

Re: Magento and Google Analytics 4 (GA4) Creating Events and Conversions

Regarding your query please check the below link.

https://developers.google.com/analytics/devguides/collection/ga4/ecommerce?client_type=gtm

 

We have successfully implemented GA4 and created a comprehensive guide for it.

https://www.scommerce-mage.com/blog/how-to-setup-magento-2-ga4google-analytics-4.html

 

Re: Magento and Google Analytics 4 (GA4) Creating Events and Conversions

To set up basic e-commerce events in GA4 for Magento:

1. Install GA4 or GTM on Magento. Use GTM for easier management.
2. Create Data Layer for events like 'add_to_cart' and 'purchase'.
3. If you are using GTM, then setup tags and triggers in GTM.
4. Mark keyevent for purchase if you want.

Refer this guide: https://developers.google.com/analytics/devguides/collection/ga4/set-up-ecommerce

Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.

Re: Magento and Google Analytics 4 (GA4) Creating Events and Conversions

Here's a step-by-step guide to set up GA4 events and conversions in Magento:

Basic Setup

  • Install Google Analytics 4 on your Magento store
  • Set up a GA4 property in your Google Analytics account
  • Add your GA4 tracking ID to Magento's configuration

Event Implementation Methods

1. Using Google Tag Manager (GTM) - Recommended

  • Install GTM on your Magento store
  • Create data layer push events
  • Set up tags and triggers for key actions
  • Track essential e-commerce events

2. Direct GA4 Implementation

  • Use GA4's measurement protocol
  • Add event tracking code to specific pages
  • Configure enhanced e-commerce tracking

Key Events to Track

  • add_to_cart
  • view_item
  • begin_checkout
  • purchase
  • remove_from_cart

Additional Options

  • Use pre-built extensions from Magento Marketplace
  • Implement custom event tracking
  • Set up conversion goals in GA4

For developers who prefer a quick solution, several Magento extensions in the marketplace offer built-in GA4 integration with preset events and conversion tracking.

Resources: