hiqdev / yii2-google-tag-manager
Google Tag Manager widget for Yii2 applications
Installs: 7 888
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 5
Forks: 2
Open Issues: 0
Type:yii2-extension
Requires (Dev)
- hiqdev/hidev-hiqdev: dev-master
- hiqdev/hidev-php: dev-master
- phpunit/phpunit: ^7.4
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2024-12-10 19:50:24 UTC
README
Google Tag Manager widget for Yii2 applications
Provides really easy adding Google Tag Manager snippet to a site. Even easier then adding a widget into a site layout.
Works by adding Behavior to the Application View. Behavior listens to EVENT_BEGIN_BODY and echos the snippet.
Installation
The preferred way to install this yii2-extension is through composer.
Either run
php composer.phar require "hiqdev/yii2-google-tag-manager"
or add
"hiqdev/yii2-google-tag-manager": "*"
to the require section of your composer.json.
Configuration
This extension is supposed to be used with composer-config-plugin.
Else look config/web.php for cofiguration example.
Available configuration parameters:
GoogleTagManager.id
For more details please see config/params.php.