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

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

symbiote/silverstripe-multisites-googleanalytics
================================================

Adds Google Analytics tracking code to each multisite

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

Since Feb 8Pushed 8y ago2 watchersCompare

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

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

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

31

—

LowBetter than 66% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community19

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

2986d ago

Major Versions

1.0.0 → 2.0.02018-02-22

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/23506857?v=4)[Symbiote](/maintainers/symbiote)[@symbiote](https://github.com/symbiote)

---

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/symbiote-silverstripe-multisites-googleanalytics/health.svg)

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

###  Alternatives

[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)
