PHPackages                             charlesportwoodii/eanalytics - 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. charlesportwoodii/eanalytics

AbandonedLibrary

charlesportwoodii/eanalytics
============================

EAnalytics is a Analytics.js wrapper for Yii Framework

1.1.5(11y ago)31.6k1MITJavaScript

Since Apr 16Pushed 9y ago2 watchersCompare

[ Source](https://github.com/charlesportwoodii/EAnalytics)[ Packagist](https://packagist.org/packages/charlesportwoodii/eanalytics)[ Docs](https://github.com/charlesportwoodii/EAnalytics)[ RSS](/packages/charlesportwoodii-eanalytics/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (5)Used By (1)

EAnalytics Javascript Tracking
------------------------------

[](#eanalytics-javascript-tracking)

EAnalytics is a [Yii Framework](www.yiiframework.com) wrapper for [Analytics.js Library](https://github.com/segment.io/analytics.js). Rather than loading in a dozen different extensions for each analytics service you want to use, this extension allows you to specify various tracking providers in a single config file and call various methods via a single interface.

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

[](#installation)

EAnalytics can be installed via `composer`. Add the following to your `composer.json` `require` section.

```
"charlesportwoodii/eanalytics": "1.1.5"

```

Then run `composer update`

Configuring
-----------

[](#configuring)

Clone the repository to your extensions folder and add the following to your config/main.php:

```
'preload' => array('EAnalytics'),
'components' => array(
	'EAnalytics' => array(
		'class' => 'ext.analytics.EAnalytics',
		'lowerBounceRate' => false,
		'providers' => array(
			// List of Providers
		)
	)
)

```

The extension must be preloaded if you want analytics.js to load up on page load

#### lowerBounceRate

[](#lowerbouncerate)

Some analytics services treat any user who only visits a single page as a "bounce". This setting fires off 3 events 15s, 30s, and 60s after the initial page to load which can help determine if a user only needed to visit your site for a single page or actually bounced.

Setting this value to "true" will eanble this feature. By default it is disabled.

#### providers

[](#providers)

This is an array of all the providers that you wish to enable. This array is transformed into JSON and injected into **analytics.initialize()** on page load.

You may view the list of available providers [at segment.io's integration page](https://segment.io/docs/integrations)

LICENSE
-------

[](#license)

(The MIT License)

Copyright (c) 2013-2015 Charles R. Portwood II

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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 ~93 days

Total

4

Last Release

4128d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/630969?v=4)[Charles R. Portwood II](/maintainers/charlesportwoodii)[@charlesportwoodii](https://github.com/charlesportwoodii)

---

Top Contributors

[![charlesportwoodii](https://avatars.githubusercontent.com/u/630969?v=4)](https://github.com/charlesportwoodii "charlesportwoodii (29 commits)")

---

Tags

analyticsanalytics.js

### Embed Badge

![Health badge](/badges/charlesportwoodii-eanalytics/health.svg)

```
[![Health](https://phpackages.com/badges/charlesportwoodii-eanalytics/health.svg)](https://phpackages.com/packages/charlesportwoodii-eanalytics)
```

###  Alternatives

[segmentio/analytics-php

Segment Analytics PHP Library

25621.5M25](/packages/segmentio-analytics-php)[spatie/laravel-analytics

A Laravel package to retrieve Google Analytics data.

3.2k5.7M57](/packages/spatie-laravel-analytics)[rubix/ml

A high-level machine learning and deep learning library for the PHP language.

2.2k1.4M28](/packages/rubix-ml)[algolia/scout-extended

Scout Extended extends Laravel Scout adding algolia-specific features

4186.3M6](/packages/algolia-scout-extended)[matomo/matomo-php-tracker

PHP Client for Matomo Analytics Tracking API

2213.1M16](/packages/matomo-matomo-php-tracker)[keen-io/keen-io

A PHP library for reporting events to the Keen IO API

1332.3M7](/packages/keen-io-keen-io)

PHPackages © 2026

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