PHPackages                             studiobonito/silverstripe-google-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. [API Development](/categories/api)
4. /
5. studiobonito/silverstripe-google-analytics

ActiveSilverstripe-module[API Development](/categories/api)

studiobonito/silverstripe-google-analytics
==========================================

Provide basic Google Analytics integration for SilverStripe CMS.

2.0.3(10y ago)25.5k4BSD-2-ClausePHPPHP &gt;=5.3.0

Since Mar 12Pushed 10y ago1 watchersCompare

[ Source](https://github.com/studiobonito/silverstripe-google-analytics)[ Packagist](https://packagist.org/packages/studiobonito/silverstripe-google-analytics)[ Docs](https://github.com/studiobonito/silverstripe-google-analytics)[ RSS](/packages/studiobonito-silverstripe-google-analytics/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (6)Versions (7)Used By (0)

Google Analytics Module
=======================

[](#google-analytics-module)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f68adbd6670dfbd86060b41be92410a77e4a827f66726c8289f8ca4696077a9a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73747564696f626f6e69746f2f73696c7665727374726970652d676f6f676c652d616e616c79746963732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/studiobonito/silverstripe-google-analytics)[![Software License](https://camo.githubusercontent.com/b60331a2084501dc07cf6d6964c0da58dd005d89c45cf3b28b4b22b60f5ec00f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4253442d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/360fe6dfb7e36773c922e420696c46110ead2ff043408dfa70aba4c3d50461a5/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f73747564696f626f6e69746f2f73696c7665727374726970652d676f6f676c652d616e616c79746963732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/studiobonito/silverstripe-google-analytics)[![Coverage Status](https://camo.githubusercontent.com/bd832a8f706f011deb2991473d660744551c72218ca8a5302afd3d0a3e6c2faa/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f73747564696f626f6e69746f2f73696c7665727374726970652d676f6f676c652d616e616c79746963732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/studiobonito/silverstripe-google-analytics/code-structure)[![Quality Score](https://camo.githubusercontent.com/059fa0bc7cf66d0b571462765130f8adf17cd922aaa2a339eca254771b65d9de/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f73747564696f626f6e69746f2f73696c7665727374726970652d676f6f676c652d616e616c79746963732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/studiobonito/silverstripe-google-analytics)[![Total Downloads](https://camo.githubusercontent.com/05ce5d46529d4104d69cab9a8362e6c66486ba1afab18531285b2abc8742395f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73747564696f626f6e69746f2f73696c7665727374726970652d676f6f676c652d616e616c79746963732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/studiobonito/silverstripe-google-analytics)

Overview
--------

[](#overview)

Provide basic Google Analytics integration for SilverStripe CMS.

Requirements
------------

[](#requirements)

- SilverStripe CMS 3.1.2 and newer or 3.2 and newer.

Install
-------

[](#install)

### Via Composer

[](#via-composer)

```
$ composer require studiobonito/silverstripe-google-analytics
```

### Manually

[](#manually)

Copy the 'silverstripe-google-analytics' folder to the root of your SilverStripe installation.

Usage
-----

[](#usage)

The module provides a global template variable `$GoogleAnalytics` that can be used to insert the tracking code into any page template. This global variable uses the tracking ID specified in the CMS in the `Setings > Google Analytics` tab.

Google suggests placing tracking code in your document `` as in the example below. However this module leaves that choice to the developer.

```

    Example.com
    $GoogleAnalytics

```

Testing
-------

[](#testing)

```
$ phpunit
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Tom Densham](https://github.com/nedmas)
- [All Contributors](../../contributors)

License
-------

[](#license)

The BSD-2-Clause License. Please see [License File](LICENSE.md) for more information.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

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

Total

5

Last Release

3672d ago

Major Versions

1.0.0 → 2.0.02015-08-10

### Community

Maintainers

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

---

Top Contributors

[![camfindlay](https://avatars.githubusercontent.com/u/367847?v=4)](https://github.com/camfindlay "camfindlay (1 commits)")

---

Tags

googlesilverstripeanalyticsstudiobonitosilverstripe-google-analytics

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/studiobonito-silverstripe-google-analytics/health.svg)

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

###  Alternatives

[ins0/google-measurement-php-client

Server-Side PHP Client to communicate to Google Analytics over the Google Measurement Protocol

54355.8k2](/packages/ins0-google-measurement-php-client)[ozankurt/google-analytics

Laravel Google Analytics

7616.7k](/packages/ozankurt-google-analytics)

PHPackages © 2026

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