fond-of-spryker/google-tag-manager-default-variables

Default variable builder for GoogleTagManagerCore package

dev-main 2020-11-19 09:00 UTC

This package is auto-updated.

Last update: 2024-12-19 21:40:02 UTC


README

PHP from Travis config license

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(),
    ];
}