dev-master
9999999-devModule to rule your yandex metrika counters.
MIT
The Requires
by Maxim Tugaev
extension yii2 yandex metrika
Module to rule your yandex metrika counters.
Module to rule your yandex metrika counters., (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist tugmaks/yii2-yandex-metrika "*"
or add, (*4)
"tugmaks/yii2-yandex-metrika": "*"
to the require section of your composer.json
file., (*5)
Once the extension is installed, simply activate module in config file:, (*6)
[ 'yandex-metrika' => [ 'class' => 'tugmaks\YandexMetrika\Module', 'allowedRoles'=>['@'], /* * Or if you use RBAC roles something like that * 'allowedRoles'=>['Admin','Seo-Manager'], */ 'appId' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'appPassword' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxx', ], ], ...... ?>
Run migration. Module will create own table for migration history tbl_ym_migrations, (*7)
yii migrate/up --migrationPath=@vendor/tugmaks/yii2-yandex-metrika/migrations --migrationTable=tbl_ym_migrations
., (*8)
Module to rule your yandex metrika counters.
MIT
extension yii2 yandex metrika