PHPackages                             dorsetdigital/silverstripe-simplegtag - 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. dorsetdigital/silverstripe-simplegtag

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

dorsetdigital/silverstripe-simplegtag
=====================================

Simple method of adding GTM tags

v3.0.0(8mo ago)1632BSD-3-ClausePHP

Since Jul 8Pushed 8mo ago2 watchersCompare

[ Source](https://github.com/DorsetDigital/silverstripe-simplegtag)[ Packagist](https://packagist.org/packages/dorsetdigital/silverstripe-simplegtag)[ Docs](https://github.com/DorsetDigital/silverstripe-simplegtag)[ RSS](/packages/dorsetdigital-silverstripe-simplegtag/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (7)Dependencies (1)Versions (9)Used By (0)

silverstripe-simplegtag
=======================

[](#silverstripe-simplegtag)

A very simple way to add Google Tags to a site for analytics, adwords, etc.

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/8d1b9a21c6d632f1fe9673e092deea9f8ace0654eb8964adcc5d50c6537c0383/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f446f727365744469676974616c2f73696c7665727374726970652d73696d706c65677461672f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/DorsetDigital/silverstripe-simplegtag/?branch=master)[![Build Status](https://camo.githubusercontent.com/2b7c914307d5cf789f24b933da2a60e84a0d3beead80e78aa1c18c9aff38cf26/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f446f727365744469676974616c2f73696c7665727374726970652d73696d706c65677461672f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/DorsetDigital/silverstripe-simplegtag/build-status/master)[![License](https://camo.githubusercontent.com/b3775a2de17853a90995faa104f941eef3ad3c40cc89e34b8b1eaea014614d4e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d425344253230332d2d436c617573652d626c75652e737667)](LICENSE.md)[![Version](https://camo.githubusercontent.com/d5c1576a33ebcdc1642d0586f4addc6ab2f5b74d56eb9e1ddd5212be3b3fe3b5/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646f727365746469676974616c2f73696c7665727374726970652d73696d706c65677461672e7376673f7374796c653d666c6174)](https://packagist.org/packages/dorsetdigital/silverstripe-simplegtag)

Requirements
============

[](#requirements)

\*Silverstripe 6.x (for CMS 4/5, please use the 2.x release)

Installation
============

[](#installation)

- Install the code with `composer require dorsetdigital/silverstripe-simplegtag`
- Run a `dev/build?flush` to update your project

Usage
=====

[](#usage)

This module injects the required code for Google Tag Manager into your pages. Once installed, set your GTM ID in the site config.

The module injects code into the html `` and the `` snippet into the page at the start of the ``

Consent
-------

[](#consent)

If you are using the cookie consent module () then this module will only add the GTM tags if a user has accepted analytics cookies.

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance59

Moderate activity, may be stable

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 94.4% 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 ~441 days

Recently: every ~382 days

Total

7

Last Release

263d ago

Major Versions

v1.0.1 → v2.0.02021-08-04

v2.0.3 → v3.0.02025-10-10

### Community

Maintainers

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

---

Top Contributors

[![DorsetDigital](https://avatars.githubusercontent.com/u/15108750?v=4)](https://github.com/DorsetDigital "DorsetDigital (17 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

---

Tags

googlegoogle-analyticsgoogletagmanagersilverstripe-4silverstripe-modulegooglesilverstripeanalyticsgtmgtag

### Embed Badge

![Health badge](/badges/dorsetdigital-silverstripe-simplegtag/health.svg)

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

PHPackages © 2026

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