sylius-google-tag-manager-enhanced-ecommerce-plugin
sylius-google-tag-manager-enhanced-ecommerce-plugin copied to clipboard
Enhanced Ecommerce implementation through Google Tag Manager for Sylius eCommerce Platform
Google Tag Manager Enhanced Ecommerce plugin for Sylius eCommerce platform
Installation
1. Composer
composer require stefandoorn/sylius-google-tag-manager-enhanced-ecommerce-plugin
2. Follow installation instructions of required sub bundle
https://github.com/stefandoorn/google-tag-manager-plugin
3. Load bundle
Add to bundles.php:
StefanDoorn\SyliusGtmEnhancedEcommercePlugin\SyliusGtmEnhancedEcommercePlugin::class => ['all' => true],
4. Adjust configurations
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.
Features
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
Make sure to check that the required 'sonata_block_render_events' template events are available. Check the
src/Resources/config/features/*.yml & src/Resources/config/services.yml for the definitions.
This is only to be checked if you've been overriding templates yourselves.
