fond-of-spryker / google-tag-manager-default-variables
Default variable builder for GoogleTagManagerCore package
dev-main
2020-11-19 09:00 UTC
Requires
- php: >=7.2
- codeception/codeception: ^4.1
- fond-of-spryker/google-tag-manager-core: dev-main
- spryker/cart: ^7.1.0
- spryker/store: ^1.12.0
Requires (Dev)
- fond-of-codeception/spryker: dev-master as 1.0.0
- mikey179/vfsstream: ^1.6
- php-coveralls/php-coveralls: ^2.1
- phpro/grumphp: ^0.14
- sebastian/phpcpd: ^4.1
- spryker/code-sniffer: ^0.14.7
This package is auto-updated.
Last update: 2024-11-19 21:29:20 UTC
README
Installation
composer require fond-of-spryker/google-tag-manager-default-variable
Desciption
Provides default properties for google tag manager core module. default properties set inside datalayer for all pages.
Usage
Overwrite core-module dependency provider inside PZY, i.e src/Pyz/Yves/GoogleTagManagerCore/GoogleTagManagerCoreDependencyProvider.php
/**
* @return \FondOfSpryker\Yves\GoogleTagManagerCore\Dependency\GoogleTagManagerExtensionPluginInterface[];
*/
protected function getDefaultGoogleTagManagerExtensionPlugins(): array
{
return [
new CurrencyPlugin(),
new CustomerEmailHash(),
new InternalTrafficPlugin(),
new StoreNamePlugin(),
];
}