PHPackages                             porshkevich/yii2-google-analytics - 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. porshkevich/yii2-google-analytics

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

porshkevich/yii2-google-analytics
=================================

Google Analytics extension for the Yii2 framework

1.0.0-alpha(11y ago)1161MITPHP

Since Mar 5Pushed 11y ago2 watchersCompare

[ Source](https://github.com/porshkevich/yii2-google-analytics)[ Packagist](https://packagist.org/packages/porshkevich/yii2-google-analytics)[ RSS](/packages/porshkevich-yii2-google-analytics/feed)WikiDiscussions master Synced 1mo ago

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

Google Analytics for Yii2
=========================

[](#google-analytics-for-yii2)

Google Analytics extension for the Yii2 framework

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist porshkevich/yii2-google-analytics "*"

```

or add

```
"porshkevich/yii2-google-analytics": "*"

```

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

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

```
'ga'=>[
	'class'=>'porshkevich\googleanalytics\GoogleAnalyticsAPI',
	'defaultTrackingId' => 'UA-XXXXXXXX-X',
]
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

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

Unknown

Total

1

Last Release

4087d ago

### Community

Maintainers

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

---

Top Contributors

[![porshkevich](https://avatars.githubusercontent.com/u/8709638?v=4)](https://github.com/porshkevich "porshkevich (7 commits)")

---

Tags

googleyii2extensionanalytics

### Embed Badge

![Health badge](/badges/porshkevich-yii2-google-analytics/health.svg)

```
[![Health](https://phpackages.com/badges/porshkevich-yii2-google-analytics/health.svg)](https://phpackages.com/packages/porshkevich-yii2-google-analytics)
```

###  Alternatives

[cybercog/yii2-google-analytics

Google Analytics Widget for the Yii2 framework

1677.1k2](/packages/cybercog-yii2-google-analytics)[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)
