https://github.com/elliot-sawyer/silverstripe-matomo
Add Matomo analytics tracking to your SilverStripe website
https://github.com/elliot-sawyer/silverstripe-matomo
analytics matomo piwik silverstripe silverstripe-module
Last synced: 3 months ago
JSON representation
Add Matomo analytics tracking to your SilverStripe website
- Host: GitHub
- URL: https://github.com/elliot-sawyer/silverstripe-matomo
- Owner: elliot-sawyer
- License: mit
- Created: 2019-10-02T06:08:39.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-09-22T07:43:23.000Z (about 2 years ago)
- Last Synced: 2025-06-16T03:06:07.441Z (4 months ago)
- Topics: analytics, matomo, piwik, silverstripe, silverstripe-module
- Language: PHP
- Homepage:
- Size: 19.5 KB
- Stars: 2
- Watchers: 2
- Forks: 3
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://scrutinizer-ci.com/g/elliot-sawyer/silverstripe-matomo/?branch=master)
[](https://scrutinizer-ci.com/g/elliot-sawyer/silverstripe-matomo/?branch=master)
[](https://circleci.com/gh/elliot-sawyer/silverstripe-matomo)
[](https://codecov.io/gh/elliot-sawyer/silverstripe-matomo)# SilverStripe Matomo integration
Adds Matomo analytics tracking to your SilverStripe website* Apply via extension to any frontend ContentController object
* enable or disable using SiteConfig settings
* allow users to opt-out of Javascript tracking
* exclude specific pages from tracking using the CMSWorking with a content security policy
--------------------------------------
Is your site working with a strict content security policy? Great! You'll need to whitelist your Matomo endpoint to avoid violating your CSP.... img-src 'self' https://your.matomowebsite.nz blob: data:;
... script-src 'self' https://your.matomowebsite.nz 'sha384-BaSE64ENC0D3D';...The `img-src` rule is to allow a tracking pixel to be embedded on the website. `script-src` is used by Matomo to execute the script on the website. You may need to add a nonce value for the inline script for it to run correctly.
Contributing
------------Contributions are more than welcome! Please raise some issues or create pull requests on the Github repo.
Support
--------
Need some extra help or just love my work? Consider shouting me a coffee or a small donation if this module helped you solve a problem. I accept cryptocurrency at the following addresses:
* Bitcoin: 12gSxkqVNr9QMLQMMJdWemBaRRNPghmS3p
* Bitcoin Cash: 1QETPtssFRM981TGjVg74uUX8kShcA44ni
* Litecoin: LbyhaTESx3uQvwwd9So4sGSpi4tTJLKBdz
* Ethereum: 0x0694E0704c70D8d178dd2e9522FC59EBBEe86748