hryvinskyi / magento2-data-layer-api
Published contracts of the GA4 ecommerce data layer: events and items as value types, the batch item-field extension point, price visibility, cart tracking policy, cart kinds that report events of their own, the server-event queue and the list-data renderer bridges use.
Package info
github.com/hryvinskyi/magento2-data-layer-api
Type:magento2-module
pkg:composer/hryvinskyi/magento2-data-layer-api
Requires
- php: ~8.3.0||~8.4.0
- magento/framework: *
- magento/module-catalog: *
- magento/module-quote: *
- magento/module-sales: *
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Published interfaces of the GA4 data layer: events, items and the extension points other modules use to add events, lists and promotions.
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 of hryvinskyi/magento2-data-layer.
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-api
Requirements
- PHP ~8.3.0 or ~8.4.0
- Magento 2.4.x