PHPackages                             jbennecker/silverstripe-analytics - 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. jbennecker/silverstripe-analytics

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

jbennecker/silverstripe-analytics
=================================

v1.1.1(3y ago)02.0k↑43.8%MITPHP

Since Sep 20Pushed 5mo agoCompare

[ Source](https://github.com/brandcom/silverstripe-analytics)[ Packagist](https://packagist.org/packages/jbennecker/silverstripe-analytics)[ RSS](/packages/jbennecker-silverstripe-analytics/feed)WikiDiscussions ss5 Synced today

READMEChangelog (6)Dependencies (1)Versions (10)Used By (0)

silverstripe-analytics
======================

[](#silverstripe-analytics)

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

[](#installation)

### 1. Installiere das Analytics-Plugin mit Composer

[](#1-installiere-das-analytics-plugin-mit-composer)

```
php81 composer.phar require jbennecker/silverstripe-analytics

```

### 2. Führe dev/build?flush aus

[](#2-führe-devbuildflush-aus)

```
php81 vendor/silverstripe/framework/cli-script.php dev/build

```

### 3. Gib die Tracking-IDs in das CMS ein

[](#3-gib-die-tracking-ids-in-das-cms-ein)

Gehe zu Admin &gt; Einstellungen &gt; Tracking und gib die Cookiebot-ID und Tagmanager-IDs ein. Du kannst Google und/oder Matomo TagManager verwenden.

> WICHTIG:
> Bitte konfiguriere Matomo TagManager so, dass "Cookies deaktivieren" und "Tracker bündeln" aktiviert ist. Siehe Bookstack.
> Cookiebot ist im manuellen Modus enthalten.

### 4. Füge den Tracking-Code in dein Template ein

[](#4-füge-den-tracking-code-in-dein-template-ein)

Bearbeite die Datei `app/templates/Page.ss` und importiere den Tracking-Code am Anfang deines ``.

```

```

Shortcodes, die vom Plugin bereitgestellt werden
------------------------------------------------

[](#shortcodes-die-vom-plugin-bereitgestellt-werden)

- `[cookiedeclaration]` zum Einbinden in die Datenschutzerklärung
- `[cookiebot]` um einen Button zum Bearbeiten der Cookiebot-Präferenzen bereitzustellen
- `[youtube,id="dieYoutubeId"]` zum Bereitstellen von YouTube-Medien, die von der Cookiebot-Zustimmung gesteuert werden

Konfiguriere Auslöser im Matomo Tag Manager
-------------------------------------------

[](#konfiguriere-auslöser-im-matomo-tag-manager)

This step is only needed if custom Tags in Matomo need to honor Cookiebot consent modes, for example Facebook Pixel etc.

To honor the visitor's consent, you need to define the logic that controls the behavior of cookie-setting tags on your website.

To do this you need to create the following Triggers, to be used in your Matomo configuration:

1. Name: **Cookie Consent Preferences**
    Event Name: `cookie_consent_preferences`
2. Name: **Cookie Consent Statistics**
    Event Name: `cookie_consent_statistics`
3. Name: **Cookie Consent Marketing**
    Event Name: `cookie_consent_marketing`

To create the Triggers, repeat these steps for each of the Cookiebot triggers:

- Click the "Triggers" menu item and click "+ CREATE NEW TRIGGER"
- Choose "Custom Event" under "Choose a type of trigger to continue"
- Assign a name and the matching event from the list above
- Click the "CREATE NEW TRIGGER" button to save the trigger

[also see Cookiebot doc for defining Custom JavaScript variables to use as a condition for existing triggers ](https://support.cookiebot.com/hc/en-us/articles/360017539960#controlling_cookies)

Once we write a Matomo trigger plugin we can elimate this step

7. Use custom Matomo Consent Triggers for Tags setting Cookies or tracking
--------------------------------------------------------------------------

[](#7-use-custom-matomo-consent-triggers-for-tags-setting-cookies-or-tracking)

Tags which set cookies within one of these three categories (review the scan report if you are in doubt) must only be triggered when the user has consented to the relevant category.

To achieve this, assign the appropriate Cookie Consent Trigger on each cookie-setting tag, for example "Cookie Consent Statistics" for your Matomo Analytics tag.

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance49

Moderate activity, may be stable

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.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 ~54 days

Recently: every ~65 days

Total

6

Last Release

1110d ago

Major Versions

v0.0.1 → v1.0.02022-10-04

### Community

Maintainers

![](https://www.gravatar.com/avatar/86ac90232d8367beb9bc60f0a438881c9e44b5e9b17b740b5166b5119f9ae737?d=identicon)[brandcom](/maintainers/brandcom)

---

Top Contributors

[![jcsiegrist](https://avatars.githubusercontent.com/u/33805?v=4)](https://github.com/jcsiegrist "jcsiegrist (6 commits)")[![passchn](https://avatars.githubusercontent.com/u/77938819?v=4)](https://github.com/passchn "passchn (3 commits)")

---

Tags

silverstripe

### Embed Badge

![Health badge](/badges/jbennecker-silverstripe-analytics/health.svg)

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

###  Alternatives

[silverstripe/userforms

UserForms enables CMS users to create dynamic forms via a drag and drop interface and without getting involved in any PHP code

1371.1M85](/packages/silverstripe-userforms)[symbiote/silverstripe-gridfieldextensions

A collection of useful grid field components

951.9M272](/packages/symbiote-silverstripe-gridfieldextensions)[symbiote/silverstripe-advancedworkflow

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

46302.4k9](/packages/symbiote-silverstripe-advancedworkflow)[silverstripe/tagfield

Tag field for SilverStripe

561.3M50](/packages/silverstripe-tagfield)[jonom/silverstripe-betternavigator

Front-end utility menu for Silverstripe websites featuring administration and development tools

60435.1k13](/packages/jonom-silverstripe-betternavigator)[lekoala/silverstripe-cms-actions

Add actions to your models in SilverStripe

39344.8k31](/packages/lekoala-silverstripe-cms-actions)

PHPackages © 2026

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