PHPackages                             ethanfrogers/yii2-universal-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. ethanfrogers/yii2-universal-analytics

ActiveLibrary

ethanfrogers/yii2-universal-analytics
=====================================

42.0k2PHP

Since Dec 30Pushed 11y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

\#Yii2-universal-analytics

Forked from [TagPlanet/yii-analytics-ua](https://github.com/TagPlanet/yii-analytics-ua). Modified to work with Yii2 Framework.

\##Installation Install this extension via [composer](http://getcomposer.org/download). Add this line to your project’s composer.json

```
“ethanfrogers/yii2-universal-analytics” : “dev-master”
```

\##Setup

\###Configuration

```
//add this line in config/main-local.php for the appropriate application
$config[‘components’][] = [
    ‘googleAnalytics’ => [
        ‘class’ => ‘ethanfrogers\AnalyticsUA\UniversalAnalytics’
    ]
]
```

\###Usage

```
//Within your layout
Yii::$app->googleAnalytics->render();
```

For additional configuration options see [TagPlanet/yii-analytics-ua](https://github.com/TagPlanet/yii-analytics-ua).

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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://www.gravatar.com/avatar/984853e4d7382a175285605678bcbff7a4142c4f11b91e717b3bf9838d522d21?d=identicon)[ethanfrogers](/maintainers/ethanfrogers)

### Embed Badge

![Health badge](/badges/ethanfrogers-yii2-universal-analytics/health.svg)

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

PHPackages © 2026

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