Skip to content

OctoWeb/yii2-yandex-metrika

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yii2 Yandex Metrika module

Module to rule your yandex metrika counters.

Installation

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.

Usage

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

.