All modulesMagento 2 moduleVersion 1.3.5 · 11 Oct 2026

GA4 + GTM with events

See the whole shopper journey: product view, cart, checkout and the purchase with its value. The data goes to Google Analytics 4, the purchase to Google Ads too.

€270 + VAT · one-off licence, no subscription

www.degriz.eu
GA4 + GTM with events
About the module

What it does.

"I pay for promotion, but I do not know which visitors really buy and where they drop off." Without e-commerce events in GA4 you work by gut feeling, not by data.

What it looks like in practice

A shopper opens a product, adds it to the cart, opens the cart, starts the checkout and pays. In Google Analytics 4 you see each of these steps as an event, and the purchase together with the amount, tax, shipping, coupon and items. If you also enter the conversion label, Google Ads receives the purchase too. So you know where shoppers drop off and what a promotion brings.

What changes

  • The whole way to purchase. Product view (view_item), category view (view_item_list), cart (view_cart), checkout start (begin_checkout) and purchase (purchase) are reported.
  • Shopper actions. Add to and remove from the cart, login, sign-up, search and payment info; each event is sent once.
  • A purchase with all its data. The purchase event carries the order number, value, tax, shipping, coupon, currency and items.
  • Conversions for Google Ads. You enter the conversion ID and label and the purchase is sent as a conversion too; without the label Ads records no purchase.
  • A purchase even if the shopper does not come back. Optionally the purchase is also sent from the server when the shopper never reaches the thank-you page (for example after a payment redirect) or blocks gtag.js.

Who it is for

For every store that advertises or wants to understand where it loses shoppers. It pairs with the GDPR cookie consent module, which makes sure measurement respects the visitor's choice.

How you set it up

Settings are under Stores › Configuration › Magelan › Google data layer for GA4. You switch the module on and enter the Measurement ID (G-xxxxxx); optionally the Google Ads conversion ID with its label and an API secret for the server-side purchase. You can also set a store name for reports, so GA4 can tell two storefronts on one installation apart.

Good to know

  • The module is not switched on by default and needs your own Google Analytics 4 account with a Measurement ID.
  • It works on the Luma and Hyvä themes (Hyvä 1.1 and newer).
  • The server-side purchase is sent only when the shopper has the _ga cookie and has allowed analytics cookies.
  • The module sends the data; you set up reports and goals in your Google account.

Want it in your store?

Buy the module and we install it for you: free of charge for existing Degriz customers, by time spent for others. Building a new store? Add it to your project in the Konfigurator.

Screens

Take a look at every step.

www.degriz.eu
Module settings in the Magento 2 admin
Module settings in the Magento 2 admin
www.degriz.eu
Tracking settings for Google Analytics 4 and Google Ads
Tracking settings for Google Analytics 4 and Google Ads
Installation

How to install it.

We install the module from our repository with Composer. We send you the user name and access key for the repository after purchase.

Installation

In the root of the Magento 2 store run the commands (replace UPORABNIK and DOSTOPNI_KLJUC with the user name and access key you received):

composer config repositories.degriz composer https://www.degriz.net/konfigurator/composer/packages/composer config --auth http-basic.www.degriz.net UPORABNIK DOSTOPNI_KLJUCcomposer require degriznet/m2_gtagphp bin/magento module:enable Magelan_Gtagphp bin/magento setup:upgradephp bin/magento setup:di:compilephp bin/magento setup:static-content:deploy -fphp bin/magento cache:flush

Setup

In the admin open Stores › Configuration › Magelan › Google data layer for GA4.

  1. Turn on Enable and enter the Measurement ID (G-XXXXXXXXXX) from Google Analytics 4 (Admin › Data streams).
  2. If you also measure Google Ads, enter the Conversion ID and the Conversion label for purchase.
  3. Optional: for the server-side purchase (Measurement Protocol) enter the API secret.
  4. Save the configuration and clear the cache.

Check that it works in debug mode (DebugView in GA4) or with Tag Assistant. Turn debug mode off on the live store.

Where do I get the user name and the access key?

After the purchase we send you the access key by e-mail. Keep it safe: for security it is shown only once and we do not keep it in readable form. The user name (your project code) and all the commands, ready to copy, are in your account under My account > Module licences.

Lost the key? Write to us and we will issue a new one; the old one stops working. [email protected]

Technical details

Compatibility.

Just the facts.

Code
degriz_ga4
Platform
Magento 2
Licence
One-off
After purchase

You are not left alone.

We develop and maintain the module ourselves, so you write to the people who know it line by line.

Installation

For existing Degriz customers we install the module free of charge. For other buyers we charge the installation by time spent.

Support

A bug that repeats on a clean Magento with the Luma theme we fix free of charge. Settings, customisations and other themes by time spent.

Updates

The licence includes updates for the Magento versions on the supported list.

We agree on a date after reviewing the request. User guides in the guide centre

GA4 + GTM with events

€270 + VAT

One-off licence for one production installation of Magento, no subscription.

Links
Write to us

For existing Degriz customers we install the module free of charge, for others by time spent. We agree on a date after reviewing the request.

Anže Voh, Degriz

Questions about this module?

Write to us and we will answer personally.

[email protected] · 040 807 231

GA4 + GTM with events€270 + VATAdd to cart

Online store configurator

Redesigning your store or building a new one?

Put your own quote together in the configurator and see the price straight away. A few minutes, no obligation, no meeting needed.

  • Price straight away
  • No obligation
  • Straight to the developer
Open the configurator

Free and with no obligation