Add Matomo analytics tracking to your SilverStripe website
MIT License
Adds Matomo analytics tracking to your SilverStripe website
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.
Contributions are more than welcome! Please raise some issues or create pull requests on the Github repo.
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: