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

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

hiqdev/yii2-yandex-metrika
==========================

Yandex.Metrika counter for Yii2 applications

0.3.0(7y ago)101.2k2BSD-3-ClausePHP

Since Apr 20Pushed 7y ago3 watchersCompare

[ Source](https://github.com/hiqdev/yii2-yandex-metrika)[ Packagist](https://packagist.org/packages/hiqdev/yii2-yandex-metrika)[ Docs](https://github.com/hiqdev/yii2-yandex-metrika)[ RSS](/packages/hiqdev-yii2-yandex-metrika/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

Yii2 Yandex.Metrika
===================

[](#yii2-yandexmetrika)

**Yandex.Metrika counter for Yii2 applications**

[![Latest Stable Version](https://camo.githubusercontent.com/68427fdc7240f3d3ab2eb6ba3cdae0a3e4f7f87662436b338e5d428aa51cfac4/68747470733a2f2f706f7365722e707567782e6f72672f6869716465762f796969322d79616e6465782d6d657472696b612f762f737461626c65)](https://packagist.org/packages/hiqdev/yii2-yandex-metrika)[![Total Downloads](https://camo.githubusercontent.com/b75451920dff70f54ff3761bd378fbd1a20e286eed2f7f47077e96c78ccc3683/68747470733a2f2f706f7365722e707567782e6f72672f6869716465762f796969322d79616e6465782d6d657472696b612f646f776e6c6f616473)](https://packagist.org/packages/hiqdev/yii2-yandex-metrika)[![Build Status](https://camo.githubusercontent.com/7f22ef85ed84cf5a9382c4cb98006159cb2b75cb8a0a8e7cb93b45009e8ddae7/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6869716465762f796969322d79616e6465782d6d657472696b612e737667)](https://travis-ci.org/hiqdev/yii2-yandex-metrika)[![Scrutinizer Code Coverage](https://camo.githubusercontent.com/1ac0ca1345a1760fe8e8d67dfbf0f719912ee301bef1c727cc6dd195e49a5a4c/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6869716465762f796969322d79616e6465782d6d657472696b612e737667)](https://scrutinizer-ci.com/g/hiqdev/yii2-yandex-metrika/)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/c2f9b4d6a5ca69a54db8fb97cc466f3cad28a6cba0481557352a8305ed8521d0/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6869716465762f796969322d79616e6465782d6d657472696b612e737667)](https://scrutinizer-ci.com/g/hiqdev/yii2-yandex-metrika/)[![Dependency Status](https://camo.githubusercontent.com/6270925cbc30fad83c7d7d2e273298394766b937df8cccd5ed2a7a5590aa9b32/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f7068702f6869716465763a796969322d79616e6465782d6d657472696b612f6465762d6d61737465722f62616467652e737667)](https://www.versioneye.com/php/hiqdev:yii2-yandex-metrika/dev-master)

Provides really easy adding [Yandex.Metrika](https://metrika.yandex.ru) counter to a site. Even easier then adding a widget into a site layout.

Works by adding Behavior to the Application View. Behavior listens to [EVENT\_END\_BODY](http://www.yiiframework.com/doc-2.0/yii-web-view.html#EVENT_END_BODY-detail) and echos the counter script.

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

[](#installation)

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

Either run

```
php composer.phar require "hiqdev/yii2-yandex-metrika"
```

or add

```
"hiqdev/yii2-yandex-metrika": "*"
```

to the require section of your composer.json.

Configuration
-------------

[](#configuration)

This extension is supposed to be used with [composer-config-plugin](https://github.com/hiqdev/composer-config-plugin).

Else look [src/config/web.php](src/config/web.php) for cofiguration example.

Available configuration parameters:

- `yandexMetrika.id`
- `yandexMetrika.params`

For more details please see [src/config/params.php](src/config/params.php).

License
-------

[](#license)

This project is released under the terms of the BSD-3-Clause [license](LICENSE). Read more [here](http://choosealicense.com/licenses/bsd-3-clause).

Copyright © 2017, HiQDev ()

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88% 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 ~227 days

Total

4

Last Release

2671d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/790fd24da129907d373559f60c6994f664f06e3f518502c03580cc9f3594615e?d=identicon)[hiqdev](/maintainers/hiqdev)

---

Top Contributors

[![hiqsol](https://avatars.githubusercontent.com/u/11820365?v=4)](https://github.com/hiqsol "hiqsol (22 commits)")[![SilverFire](https://avatars.githubusercontent.com/u/4499203?v=4)](https://github.com/SilverFire "SilverFire (2 commits)")[![maximal](https://avatars.githubusercontent.com/u/980679?v=4)](https://github.com/maximal "maximal (1 commits)")

---

Tags

hacktoberfestpluginyii2counteryandexmetrika

### Embed Badge

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

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

###  Alternatives

[daixianceng/yii2-smser

Yii2 SMS extension

862.9k1](/packages/daixianceng-yii2-smser)[aneeshikmat/yii2-time-down-counter

Widget for yii2, to start count down timer with a lot of options, This widget build dependence of timeDownCounter JS library

1547.1k](/packages/aneeshikmat-yii2-time-down-counter)[sintret/yii2-chat-adminlte

Yii2 extension for Chat plugin with admin lte

2715.3k3](/packages/sintret-yii2-chat-adminlte)

PHPackages © 2026

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