hiqdev / yii2-yandex-metrika
Yandex.Metrika counter for Yii2 applications
Installs: 691
Dependents: 3
Suggesters: 0
Security: 0
Stars: 11
Watchers: 5
Forks: 2
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: ~2.0.0
Requires (Dev)
- hiqdev/hidev-hiqdev: <2.0
- hiqdev/hidev-php: <2.0
This package is auto-updated.
Last update: 2024-11-05 02:07:57 UTC
README
Yandex.Metrika counter for Yii2 applications
Provides really easy adding Yandex.Metrika counter 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_END_BODY and echos the counter script.
Installation
The preferred way to install this yii2-extension is through composer.
Either run
php composer.phar require "hiqdev/yii2-yandex-metrika"
or add
"hiqdev/yii2-yandex-metrika": "*"
to the require section of your composer.json.
Configuration
This extension is supposed to be used with composer-config-plugin.
Else look src/config/web.php for cofiguration example.
Available configuration parameters:
yandexMetrika.id
yandexMetrika.params
For more details please see src/config/params.php.
License
This project is released under the terms of the BSD-3-Clause license. Read more here.
Copyright © 2017, HiQDev (http://hiqdev.com/)