PHPackages                             andrewdanilov/yii2-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. andrewdanilov/yii2-yandex-metrika

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

andrewdanilov/yii2-yandex-metrika
=================================

Widget places yandex metrika counter

1.1.0(4y ago)1511MITPHPPHP &gt;=5.6.0

Since Apr 17Pushed 4y ago1 watchersCompare

[ Source](https://github.com/AndrewDanilov/yii2-yandex-metrika)[ Packagist](https://packagist.org/packages/andrewdanilov/yii2-yandex-metrika)[ RSS](/packages/andrewdanilov-yii2-yandex-metrika/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (3)Used By (0)

Yandex Metrika
==============

[](#yandex-metrika)

Widget places yandex metrika counter

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
composer require andrewdanilov/yii2-yandex-metrika "~1.1.0"

```

or add

```
"andrewdanilov/yii2-yandex-metrika": "~1.1.0"

```

to the `require` section of your `composer.json` file.

Usage
-----

[](#usage)

```

```

If *YII\_ENV* global constant is equal to *'dev'* or widget param `id` is not set, then counter will be disabled and counter code will not be displayed.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

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.

###  Release Activity

Cadence

Every ~993 days

Total

2

Last Release

1588d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ec54b9a17d56bc1ccf0be4d4d91269a020986e86ac0ba407906391912cb17ca4?d=identicon)[AndrewDanilov](/maintainers/AndrewDanilov)

---

Top Contributors

[![AndrewDanilov](https://avatars.githubusercontent.com/u/2826370?v=4)](https://github.com/AndrewDanilov "AndrewDanilov (1 commits)")

---

Tags

yii2extensionyandexmetrika

### Embed Badge

![Health badge](/badges/andrewdanilov-yii2-yandex-metrika/health.svg)

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

###  Alternatives

[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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