PHPackages                             ttree/googleanalytics - 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. ttree/googleanalytics

ActiveNeos-package[Utility &amp; Helpers](/categories/utility)

ttree/googleanalytics
=====================

Simple TypoScript objects to integration Google Analytics tracking codes on your Neos CMS Project

2.0.0(8y ago)11.7k1MITHTML

Since Apr 11Pushed 8y ago2 watchersCompare

[ Source](https://github.com/ttreeagency/GoogleAnalytics)[ Packagist](https://packagist.org/packages/ttree/googleanalytics)[ RSS](/packages/ttree-googleanalytics/feed)WikiDiscussions master Synced 2mo ago

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

[![BSD License](https://camo.githubusercontent.com/850eae1099d2b05f53383473d7cd51f9bc1ab09b7d0d9e5122f1dd930efdcc6d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6173686170652f6170697374617475732e737667)](LICENSE)[![Latest Stable Version](https://camo.githubusercontent.com/2b3e26ec3342937e7cdefa47d74c56b98e7ab15b98111c9f96835db7c696956a/68747470733a2f2f706f7365722e707567782e6f72672f74747265652f676f6f676c65616e616c79746963732f76657273696f6e)](https://packagist.org/packages/ttree/googleanalytics)

Google Analytics TS Object
==========================

[](#google-analytics-ts-object)

This package contains a TypoScript object to integrate Google Analytics tracking code in your Neos CMS project.

How to integrate your tracking code?
------------------------------------

[](#how-to-integrate-your-tracking-code)

Add this to your TypoScript to add the tracking snippet and set your code:

```
prototype(Neos.Neos:Page)
    body.javascripts.analytics = Ttree.GoogleAnalytics:TrackingCode {
        trackingCode = 'UA-...'
    }
}

```

**Note:** By default the tracking code is included only in `Production` context. If you need to include the tracking code also in `Development` context, check the code in [TrackingCode](Resources/Private/Fusion/TrackingCode/TrackingCode.fusion), you can adjust the Eel expression at `@if.includeTrackingCode` as you need.

Acknowledgments
---------------

[](#acknowledgments)

Development sponsored by [ttree ltd - neos solution provider](http://ttree.ch).

We try our best to craft this package with a lots of love, we are open to sponsoring, support request, ... just contact us.

License
-------

[](#license)

The MIT License (MIT). Please see [LICENSE](LICENSE) for more information.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 97.2% 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 ~271 days

Total

3

Last Release

3145d ago

Major Versions

1.0.1 → 2.0.02017-10-04

### Community

Maintainers

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

---

Top Contributors

[![dfeyer](https://avatars.githubusercontent.com/u/221173?v=4)](https://github.com/dfeyer "dfeyer (69 commits)")[![kdambekalns](https://avatars.githubusercontent.com/u/95873?v=4)](https://github.com/kdambekalns "kdambekalns (2 commits)")

---

Tags

trackinganalyticsNeos

### Embed Badge

![Health badge](/badges/ttree-googleanalytics/health.svg)

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

###  Alternatives

[zumba/amplitude-php

PHP SDK for Amplitude

409.5M5](/packages/zumba-amplitude-php)[cornford/googlitics

An easy way to integrate Google Analytics with Laravel.

3310.2k](/packages/cornford-googlitics)[axllent/silverstripe-analytics-js

Google Universal Analytics tracking code for Silverstripe

1721.3k](/packages/axllent-silverstripe-analytics-js)[gosquared/php-sdk

1023.3k](/packages/gosquared-php-sdk)

PHPackages © 2026

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