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

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

sanatorium/analytics
====================

Package to retrieve Google Analytics data for Cartalyst Platform

3.0.4(9y ago)01JavaScriptPHP &gt;=5.4.0

Since Mar 25Pushed 9y ago2 watchersCompare

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

READMEChangelogDependencies (3)Versions (24)Used By (0)

sanatorium/analytics
====================

[](#sanatoriumanalytics)

Package to retrieve Google Analytics data for Cartalyst Platform

Contents
--------

[](#contents)

1. [Documentation](#documentation)
    - [Configuration](#configuration)
2. [Changelog](#changelog)
3. [Support](#support)
4. [Hooks](#hooks)

Documentation
-------------

[](#documentation)

### Configuration

[](#configuration)

#### Universal Analytics ID

[](#universal-analytics-id)

**Admin &gt; Property &gt; Tracking Info &gt; Tracking Code**

Should look like UA-XXXXXXXX-X

[![Universal Analytics ID](docs/img/Analytics1.png)](docs/img/Analytics1.png)

#### Site ID

[](#site-id)

**Admin &gt; View &gt; View Settings &gt; View ID**

Copy the View ID and prefix that with "ga:"

Should look like: ga:xxxxxxxx

[![Site ID](docs/img/Analytics2.png)](docs/img/Analytics2.png)

#### Client ID

[](#client-id)

Provide Client ID of Google account with Google Analytics API enabled. You will also get service email there, note that down, it's used in Service E-mail.

[![Client ID](docs/img/Analytics3.png)](docs/img/Analytics3.png)

#### Service E-mail

[](#service-e-mail)

Service E-mail of the Google Account, this also needs to be added to **Admin &gt; View &gt; User Settings** as a user with atleast permission to read.

[![Service E-mail](docs/img/Analytics4.png)](docs/img/Analytics4.png)

#### Certificate .p12

[](#certificate-p12)

Path to .p12 certificate, to obtain:

- **Open the project, go to APIs &amp; auth &gt; Credentials**
- **Click on Create new Client ID, and select Service account and P12 key. Then click on Create Client ID to download it.**

#### Map mode

[](#map-mode)

Area to show in map widget.

#### Track admin area

[](#track-admin-area)

Enable/Disable analytics for admin area (helps us improve the user experience).

#### Universal Analytics ID (admin)

[](#universal-analytics-id-admin)

Should look like UA-XXXXXXXX-X, default value

```
UA-71753817-1

```

Changelog
---------

[](#changelog)

- 1.3.0 - 2016-08-06 - Readme, expections

Support
-------

[](#support)

Support not available.

Hooks
-----

[](#hooks)

List of currently used hooks:

```
'scripts.footer' => 'sanatorium/analytics::hooks.trackingCode',
'admin.scripts.footer' => 'sanatorium/analytics::hooks.trackingCodeAdmin',

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity68

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

Total

23

Last Release

3514d ago

Major Versions

1.3.2 → 3.02016-08-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/96aeaa27788e7a7dac7b523b0c01d8768d4aea6f28bfaa5233db25fb8955a197?d=identicon)[rozklad](/maintainers/rozklad)

---

Top Contributors

[![rozklad](https://avatars.githubusercontent.com/u/3017167?v=4)](https://github.com/rozklad "rozklad (22 commits)")

---

Tags

laravelplatformextensioncartalystmadeinsane

### Embed Badge

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

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

PHPackages © 2026

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