composer require stefandoorn/sylius-google-tag-manager-enhanced-ecommerce-plugin`https://github.com/stefandoorn/google-tag-manager-plugin
Add to bundles.php:
StefanDoorn\SyliusGtmEnhancedEcommercePlugin\SyliusGtmEnhancedEcommercePlugin::class => ['all' => true],Configure the features you would like to use/not. Find a base configuration reference by running:
bin/console config:dump-reference SyliusGtmEnhancedEcommercePlugin
By default, all features are enabled.
References + examples of how to set up your GTM container: https://developers.google.com/analytics/devguides/collection/ga4/ecommerce?client_type=gtm
Supported events:
view_itemview_item_listadd_to_cartremove_from_cartview_cartbegin_checkoutadd_shipping_infoadd_payment_infopurchase
