2017 © Pedro Peláez
 

yii2-extension yii2-yandex-metrika

Module to rule your yandex metrika counters.

image

tugmaks/yii2-yandex-metrika

Module to rule your yandex metrika counters.

  • Thursday, December 11, 2014
  • by tugmaks
  • Repository
  • 0 Watchers
  • 2 Stars
  • 77 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Yii2 Yandex Metrika module

Module to rule your yandex metrika counters., (*1)

Installation

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)

Usage

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)

The Versions

11/12 2014

dev-master

9999999-dev

Module to rule your yandex metrika counters.

  Sources   Download

MIT

The Requires

 

by Maxim Tugaev

extension yii2 yandex metrika