Skip to content

dkushnikov/yii2-yandex-metrika

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yii2-yandex-metrika

Yii2 widget to add Yandex.Metrika counter on page

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require "dkushnikov/yii2-yandex-metrika" "*"

or add

"dkushnikov/yii2-yandex-metrika" : "*"

to the require section of your application's composer.json file.

Usage

use yii\widgets\YandexMetrikaCounter;

<?= YandexMetrikaCounter::widget(
    [
        'counterId' => 12345,
    ]
) ?>

About

Yii2 widget to add Yandex.Metrika counter on page

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages