PHPackages                             elefant/app-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. elefant/app-analytics

ActiveElefant-app[Utility &amp; Helpers](/categories/utility)

elefant/app-analytics
=====================

Google Analytics app for the Elefant CMS

1.0(13y ago)342[2 issues](https://github.com/jbroadway/analytics/issues)MITJavaScript

Since Oct 27Pushed 11y ago1 watchersCompare

[ Source](https://github.com/jbroadway/analytics)[ Packagist](https://packagist.org/packages/elefant/app-analytics)[ RSS](/packages/elefant-app-analytics/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

This is a simple Google Analytics app written for the [Elefant CMS](http://github.com/jbroadway/elefant). It embeds the Analytics code into pages, and allows the site admin to view basic stats through the Elefant admin toolbar.

### Installation

[](#installation)

To install, unzip it into your apps folder. You'll see "Analytics" appear in the Elefant Tools menu. Click on it to set your site ID and account info.

Next, add the following code to your layouts where you want the tracking code to appear (usually just before ``):

```
{! analytics/code !}

```

For extra speed you can tell Elefant to hard-code the Analytics code into the template so the app is only called when the template is first compiled. To do this, change the above embed code into the following:

```
{# analytics/code #}

```

The one thing to be aware of is that if your site ID is updated in the future, the old code will be hard-coded in the compiled templates, so you'll need to recompile the layout templates. The [Assetic app](http://github.com/jbroadway/assetic)has a handy button to do this in a single click.

### Screenshots

[](#screenshots)

Admin stats screen:

[![](http://github.com/jbroadway/analytics/raw/master/pix/screenshot.png)](http://github.com/jbroadway/analytics/raw/master/pix/screenshot.png)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance7

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

4948d ago

### Community

Maintainers

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

---

Tags

googlecmsappanalyticsstatstrafficelefant

### Embed Badge

![Health badge](/badges/elefant-app-analytics/health.svg)

```
[![Health](https://phpackages.com/badges/elefant-app-analytics/health.svg)](https://phpackages.com/packages/elefant-app-analytics)
```

PHPackages © 2026

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