Search by

hryvinskyi / magento2-data-layer

hryvinskyi

GA4 ecommerce data layer for Google Tag Manager: settings, events built on the server and while pages render, the item pipeline, product list data, the browser and server delivery channels.

Package info

github.com/hryvinskyi/magento2-data-layer

Type:magento2-module

pkg:composer/hryvinskyi/magento2-data-layer

Statistics

Installs: 1

Dependents: 6

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.3 2026-10-20 15:37 UTC

This package is auto-updated.

Last update: 2026-10-20 15:40:10 UTC


README

Core of the GA4 data layer: settings, the event catalogue and channels, event and item builders, list and promotion data, the session queue, Google Ads conversion and the settings migration. Renders nothing itself.

Part of the GA4 Data Layer for Magento 2. The full user guide, covering setup, every setting and how to check what the store sends, is in docs/ga4-data-layer-guide.md. Shop staff who want step-by-step tasks instead can use the user manual. Both are also in docs/ as PDF, DOCX and DOC.

Installation

Install all GA4 Data Layer modules with the metapackage:

composer require hryvinskyi/magento2-data-layer-pack
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:flush

or this module alone:

composer require hryvinskyi/magento2-data-layer

Requirements

  • PHP ~8.3.0 or ~8.4.0
  • hryvinskyi/magento2-data-layer-api
  • Magento 2.4.x