PHPackages                             lexeo/yii-yandex-metrika - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. lexeo/yii-yandex-metrika

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

lexeo/yii-yandex-metrika
========================

Simple Yii widget to add YandexMetrika counter/informer on web-page

31.2kPHP

Since Oct 13Pushed 11y ago1 watchersCompare

[ Source](https://github.com/lexeo/yii-yandex-metrika)[ Packagist](https://packagist.org/packages/lexeo/yii-yandex-metrika)[ RSS](/packages/lexeo-yii-yandex-metrika/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

yii-yandex-metrika
==================

[](#yii-yandex-metrika)

Simple Yii widget to add YandexMetrika counter/informer on web page

\##Requirements

Developed and tested with Yii 1.1.14. Should work on all 1.1.x versions.

\##Usage

\###Basic

```
[php]
/* @var $this CController */
$this->widget('ext.yii-yandex-metrika.EYandexMetrikaWidget', array(
   'id' => 123456789, //
   'clickMap' => true,
   'trackLinks' => true,
   'accurateTrackBounce' => true,
));

```

or

```
[php]
/* config/main.php */
'components' => array(
    'widgetFactory' => array(
    	'widgets' => array(
            'EYandexMetrikaWidget' => array(
                // you can disable it while working on local machine
    	        'enabled' => true,
    	        'id' => 123456789,
    	        'clickMap' => true,
    	        'trackLinks' => true,
    	        'accurateTrackBounce' => true,

                'informerOptions' => array(
                    'backgroundColor' => '#427a4b', // hex color code
                    'textColor' => 1, // 0|1
                    'arrowColor' => 0, // 0|1
                    'dataType' => 'visits', // visits|pageviews|uniques
                    'type' => 1, // 0|1
                ),
            ),
        ),
    ),
),

/* view|layout file */

$this->widget('ext.yii-yandex-metrika.EYandexMetrikaWidget');

```

\###Render Informer

```
[php]
/* @var $this CController */
$this->widget('ext.yii-yandex-metrika.EYandexMetrikaWidget', array(
    'id' => 123456789,
   'informer' => true,
   'informerSize' => 1, // 1|2|3
   'informerDataType' => 'uniques',
    'informerArrowColor' => 1, // 0|1
   // or
   'informerOptions' => array(
        'textColor' => 0,
        'backgroundColor' => '#b7b7b7',
        'size' => 2,
   ),
));

```

or

```
[php]
/* config/main.php */
'components' => array(
    'widgetFactory' => array(
    	'widgets' => array(
            'EYandexMetrikaWidget' => array(
    	        'id' => 123456789,
    	        // ...
                'informerOptions' => array(
                    'backgroundColor' => '#427a4b', // hex color code
                    'textColor' => 1, // 0|1
                    'arrowColor' => 0, // 0|1
                    'dataType' => 'pageviews',
                ),
            ),
        ),
    ),
),

/* view|layout file */

$this->widget('ext.yii-yandex-metrika.EYandexMetrikaWidget', array('informer' => true));

```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1893804?v=4)[Alexey Grishatkin](/maintainers/lexeo)[@lexeo](https://github.com/lexeo)

---

Top Contributors

[![lexeo](https://avatars.githubusercontent.com/u/1893804?v=4)](https://github.com/lexeo "lexeo (6 commits)")

### Embed Badge

![Health badge](/badges/lexeo-yii-yandex-metrika/health.svg)

```
[![Health](https://phpackages.com/badges/lexeo-yii-yandex-metrika/health.svg)](https://phpackages.com/packages/lexeo-yii-yandex-metrika)
```

###  Alternatives

[illuminate/broadcasting

The Illuminate Broadcasting package.

7127.2M209](/packages/illuminate-broadcasting)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
