PHPackages                             bigfork/silverstripe-googletagmanager - 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. bigfork/silverstripe-googletagmanager

ActiveSilverstripe-vendormodule

bigfork/silverstripe-googletagmanager
=====================================

Google Tag Manager Module for SilverStripe

2.1.0(2y ago)14.0k1BSD-3-ClausePHP

Since May 25Pushed 2y ago2 watchersCompare

[ Source](https://github.com/bigfork/silverstripe-google-tag-manager)[ Packagist](https://packagist.org/packages/bigfork/silverstripe-googletagmanager)[ RSS](/packages/bigfork-silverstripe-googletagmanager/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (12)Used By (0)

Google Tag Manager for SilverStripe
===================================

[](#google-tag-manager-for-silverstripe)

SilverStripe module to add Google Tag Manager code to all pages of a website.

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

[](#requirements)

- silverstripe/cms ^4|^5
- silverstripe/framework ^4|^5

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

[](#installation)

Download, clone or install from packagist (todo) into your Silverstripe root. Visit

What does it do?
----------------

[](#what-does-it-do)

The module will output the following code to ``...

```

(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-XXXX');

```

... and the following code just after ``

```

```

*GTM-XXXX* will be replace by a ContainerID which can be configured in *Site Settings* &gt; *Google Tag Manager*

Todo
----

[](#todo)

- Add support for passing in data layers

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 93.8% 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 ~224 days

Recently: every ~350 days

Total

11

Last Release

1036d ago

Major Versions

1.0.0 → 2.0.02019-05-07

1.0.x-dev → 2.0.42021-02-04

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/203294386?v=4)[-&gt; lozcalver](/maintainers/kinglozzer)[@kinglozzer](https://github.com/kinglozzer)

![](https://avatars.githubusercontent.com/u/1774129?v=4)[Colin Richardson](/maintainers/feejin)[@feejin](https://github.com/feejin)

---

Top Contributors

[![lozcalver](https://avatars.githubusercontent.com/u/1655548?v=4)](https://github.com/lozcalver "lozcalver (15 commits)")[![feejin](https://avatars.githubusercontent.com/u/1774129?v=4)](https://github.com/feejin "feejin (1 commits)")

---

Tags

googlesilverstripemanagertaganalyticsgtm

### Embed Badge

![Health badge](/badges/bigfork-silverstripe-googletagmanager/health.svg)

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

PHPackages © 2026

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