stefandoorn / sylius-google-tag-manager-enhanced-ecommerce-plugin
Google Tag Manager Enhanced Ecommerce plugin for Sylius.
Installs: 167 183
Dependents: 0
Suggesters: 0
Security: 0
Stars: 35
Watchers: 6
Forks: 19
Open Issues: 9
Type:sylius-plugin
Requires
- php: ^8.0
- stefandoorn/google-tag-manager-plugin: ~1.0
- sylius/sylius: ^1.9
Requires (Dev)
- phpspec/phpspec: ^7.0
- phpstan/extension-installer: ^1.0
- phpstan/phpstan: ^1.2
- phpstan/phpstan-doctrine: ^1.0
- phpstan/phpstan-strict-rules: ^1.1
- phpstan/phpstan-symfony: ^1.0
- phpstan/phpstan-webmozart-assert: ^1.0
- phpunit/phpunit: ^9.5
- sylius-labs/coding-standard: ^4.0
- symfony/browser-kit: ^5.4 || ^6.0
- symfony/debug-bundle: ^5.4 || ^6.0
- symfony/dotenv: ^5.4 || ^6.0
- symfony/intl: ^5.4 || ^6.0
- symfony/web-profiler-bundle: ^5.4 || ^6.0
Conflicts
- symfony/http-foundation: <5.3
- dev-master / 3.0.x-dev
- v3.0.0
- v3.0.0-beta.1
- v3.0.0-alpha.1
- v2.0.0
- v2.0.0-beta.2
- v2.0.0-beta.1
- v2.0.0-alpha.20
- v2.0.0-alpha.19
- v2.0.0-alpha.18
- v2.0.0-alpha.17
- v2.0.0-alpha.16
- v2.0.0-alpha.15
- v2.0.0-alpha.14
- v2.0.0-alpha.13
- v2.0.0-alpha.12
- v2.0.0-alpha.11
- v2.0.0-alpha.10
- v2.0.0-alpha.9
- v2.0.0-alpha.8
- v2.0.0-alpha.7
- v2.0.0-alpha.6
- v2.0.0-alpha.5
- v2.0.0-alpha.4
- v2.0.0-alpha.3
- v2.0.0-alpha.2
- v2.0.0-alpha.1
- v1.2.1
- v1.2.0
- v1.1.0
- v1.0.0
- v0.10.0
- v0.9.0
- v0.8.2
- v0.8.1
- v0.8.0
- v0.7.0
- v0.6.1
- v0.6.0
- v0.5.0
- v0.4.0
- v0.3.3
- v0.3.2
- v0.3.1
- v0.3
- 0.2.2
- 0.2.1
- 0.2
- 0.1
- dev-dependabot/composer/symfony/dotenv-tw-7.1.5
- dev-dependabot/composer/symfony/web-profiler-bundle-tw-7.1.4
- dev-dependabot/composer/symfony/debug-bundle-tw-7.1.1
- dev-dependabot/composer/phpunit/phpunit-tw-11.2
- dev-dependabot/composer/symfony/browser-kit-tw-7.1.1
- dev-symfony7
- dev-main-request
- dev-drop-php7
- dev-license
- dev-versions/v2
- dev-price-variant-helper
- dev-view-item-list
- dev-dsbe-ak-master
- dev-view-item
- dev-view_cart
- dev-begin_checkout_at_other_step
- dev-fix-purchase-gtm
- dev-feat/listen-only-to-shop-requests-for-cart
- dev-ga4
- dev-dependabot/composer/phpspec/phpspec-tw-7.1
- dev-dependabot/add-v2-config-file
- dev-dependabot/composer/friends-of-behat/symfony-extension-tw-2.0.11
- dev-dependabot/composer/symfony/debug-bundle-tw-5.0.5
- dev-dependabot/composer/symfony/web-profiler-bundle-tw-5.0.5
- dev-dependabot/composer/phpunit/phpunit-tw-8.5.2
- dev-rename-namespace
- dev-product-details-via-separate-event
This package is auto-updated.
Last update: 2024-11-23 05:26:06 UTC
README
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_item
view_item_list
add_to_cart
remove_from_cart
view_cart
begin_checkout
add_shipping_info
add_payment_info
purchase
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.