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

ActiveSilverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

innoweb/silverstripe-googleanalytics
====================================

Adds Google Analytics to the site using Gtag or Google Tag Manager.

5.1.3(10mo ago)024.5k—7.5%31BSD-3-ClausePHP

Since Dec 28Pushed 10mo ago3 watchersCompare

[ Source](https://github.com/xini/silverstripe-googleanalytics)[ Packagist](https://packagist.org/packages/innoweb/silverstripe-googleanalytics)[ Docs](http://github.com/xini/silverstripe-googleanalytics)[ RSS](/packages/innoweb-silverstripe-googleanalytics/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (23)Used By (1)

silverstripe-googleanalytics
============================

[](#silverstripe-googleanalytics)

Overview
--------

[](#overview)

Adds Google Analytics to the site supporting:

- Global Site Tag (gtag.js)
- Google Tag Manager (GTM)

The module is derived from [Shea's analytics module for multisites](https://github.com/sheadawson/silverstripe-multisites-googleanalytics) and supports single site, [multisites](https://github.com/symbiote/silverstripe-multisites) and [configured-multisites](https://github.com/fromholdio/silverstripe-configured-multisites) setups.

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

[](#requirements)

- Silverstripe CMS 5.x

Note: this version is compatible with Silverstripe 5. For Silverstripe 4, please see the [4.x release line](https://github.com/xini/silverstripe-sitemap/tree/4). For Silverstripe 3, please see the [3.x release line](https://github.com/xini/silverstripe-sitemap/tree/3).

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

[](#installation)

Install the module using composer:

```
composer require innoweb/silverstripe-googleanalytics dev-master

```

Add `` in the `head` and `` right after the opening `body` tag in your main page template.

Then run dev/build.

Usage
-----

[](#usage)

All settings can be configured from the CMS.

In your SiteConfig (or the config of your Site when using multisites) you find a tab 'Google Analytics'. Select the analytics type you have setup for your GA account and add the ID. Done.

All GA code only gets inserted in live mode.

License
-------

[](#license)

BSD 3-Clause License, see [License](license.md)

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance54

Moderate activity, may be stable

Popularity28

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 91.7% 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 ~165 days

Recently: every ~209 days

Total

22

Last Release

315d ago

Major Versions

1.1.0 → 2.0.02016-11-08

2.1.0 → 3.0.02017-02-20

1.x-dev → 3.0.22018-05-04

3.x-dev → 4.0.02018-07-02

4.x-dev → 5.0.02023-03-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/0d2e71d7787401a7bd4916062346163897f89f455d650ab32b5d60cd14825ad3?d=identicon)[xini](/maintainers/xini)

---

Top Contributors

[![xini](https://avatars.githubusercontent.com/u/1152403?v=4)](https://github.com/xini "xini (33 commits)")[![dizzystuff](https://avatars.githubusercontent.com/u/576903?v=4)](https://github.com/dizzystuff "dizzystuff (2 commits)")[![portable-michael-nk](https://avatars.githubusercontent.com/u/116705214?v=4)](https://github.com/portable-michael-nk "portable-michael-nk (1 commits)")

---

Tags

silverstripeanalyticstag managermultisitesevent tracking

### Embed Badge

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

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

###  Alternatives

[axllent/silverstripe-analytics-js

Google Universal Analytics tracking code for Silverstripe

1721.3k](/packages/axllent-silverstripe-analytics-js)[lexik/data-layer-bundle

Manipulate the Google Tag Manager Data Layer from your Symfony application.

14114.2k](/packages/lexik-data-layer-bundle)

PHPackages © 2026

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