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

Abandoned → [symbiote/silverstripe-multisites-googleanalytics](/?search=symbiote%2Fsilverstripe-multisites-googleanalytics)Silverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

sheadawson/multisites-googleanalytics
=====================================

Adds Google Analytics tracking code to each multisite

2.0.1(8y ago)23.7k4[1 issues](https://github.com/sheadawson/silverstripe-multisites-googleanalytics/issues)PHP

Since Feb 8Pushed 8y ago2 watchersCompare

[ Source](https://github.com/sheadawson/silverstripe-multisites-googleanalytics)[ Packagist](https://packagist.org/packages/sheadawson/multisites-googleanalytics)[ RSS](/packages/sheadawson-multisites-googleanalytics/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (4)Dependencies (2)Versions (6)Used By (0)

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

[](#silverstripe-multisites-googleanalytics)

Adds Google Analytics tracking code to each multisite

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

[](#requirements)

- SilverStripe 4
- Multisites

Usage
-----

[](#usage)

The default behaviour inserts the tracking code automatically in the page head.

The code only gets inserted in live mode.

### Using a template for the tracking code

[](#using-a-template-for-the-tracking-code)

If you want to use the template version of the tracking code (i.e. if you need to modify the tracking code for your project/theme) add the following YAML:

```
MultisiteAnalyticsControllerExtension
  use_template: true
```

Use `` in your layout template to insert the tracking code.

Copy the template `multisites-googleanalytics/templates/Includes/GoogleAnalytics.ss`to your theme to make changes to the tracking code.

### Download tracking with custom controller urls (i.e. DMS module)

[](#download-tracking-with-custom-controller-urls-ie-dms-module)

In order to track downloads that use a controller url instead of the direct file link (i.e. DMS module), please add the following attributes to the links:

```
class="download" data-extension="$Extension" data-filename="$FilenameWithoutID"

```

This will trigger the event tracking script to record the clicks.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

5

Last Release

2988d ago

Major Versions

1.0.0 → 2.0.02018-02-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/6ca23b453a4fc5ac237ad4fcc512f68fab5c7b124f403cad1a5848b3fffb6aa2?d=identicon)[sheadawson](/maintainers/sheadawson)

---

Top Contributors

[![xini](https://avatars.githubusercontent.com/u/1152403?v=4)](https://github.com/xini "xini (6 commits)")[![sheadawson](https://avatars.githubusercontent.com/u/1166136?v=4)](https://github.com/sheadawson "sheadawson (5 commits)")[![nyeholt](https://avatars.githubusercontent.com/u/161730?v=4)](https://github.com/nyeholt "nyeholt (1 commits)")[![rodneyway](https://avatars.githubusercontent.com/u/568332?v=4)](https://github.com/rodneyway "rodneyway (1 commits)")[![stephenmcm](https://avatars.githubusercontent.com/u/2093185?v=4)](https://github.com/stephenmcm "stephenmcm (1 commits)")

---

Tags

silverstripeanalyticsmultisites

### Embed Badge

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

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

###  Alternatives

[symbiote/silverstripe-advancedworkflow

Adds configurable workflow support to the CMS, with a GUI for creating custom workflow definitions.

46302.4k9](/packages/symbiote-silverstripe-advancedworkflow)[axllent/silverstripe-analytics-js

Google Universal Analytics tracking code for Silverstripe

1621.3k](/packages/axllent-silverstripe-analytics-js)

PHPackages © 2026

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