Module to rule your yandex metrika counters.
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist octoweb/yii2-yandex-metrika "*"
or add
"octoweb/yii2-yandex-metrika": "*"
to the require section of your composer.json
file.
Once the extension is installed, simply activate module in config file:
<?php
......
'modules' => [
'yandex-metrika' => [
'class' => 'octoweb\YandexMetrika\Module'
],
],
......
?>
Run migration. Module will create own table for migration history tbl_ym_migrations
yii migrate/up --migrationPath=@vendor/octoweb/yii2-yandex-metrika/migrations --migrationTable=tbl_ym_migrations
.