hryvinskyi / magento2-data-layer
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
Requires
- php: ~8.3.0||~8.4.0
- hryvinskyi/magento2-data-layer-api: ^1.0
- magento/framework: *
- magento/module-catalog: *
- magento/module-checkout: *
- magento/module-customer: *
- magento/module-eav: *
- magento/module-grouped-product: *
- magento/module-quote: *
- magento/module-sales: *
- magento/module-store: *
- magento/module-tax: *
- magento/module-wishlist: *
- psr/log: *
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
- magento/module-google-adwords: *
- magento/module-google-analytics: *
- magento/module-google-gtag: *
- magento/module-google-optimizer: *
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