Summary | Matomo Analytics is a script to enable Matomo analytics on Discourse. | |
Repository Link | https://github.com/discourse/discourse-matomo-analytics | |
New to Discourse Themes? | Beginner’s guide to using Discourse Themes |
Install this theme component
Matomo is an open source analytics platform. Users can choose between self-hosting or paying for professional hosting in the cloud.
Matomo was formerly named Piwik. See Piwik is now Matomo - Announcement - Analytics Platform - Matomo for details about the name change.
You have to whitelist your Matomo-URL inside the
Content-Security-Policy-Header
. Search for the admin setting content_security_policy_script_src and add your domain (withhttps://
) there
To enable Matomo analytics on your Discourse forum, all you have to do is install the official theme component.
Valid for Matomo API v1.5 and newer
-
Follow the theme installation guide to import from the following URL:
https://github.com/discourse/discourse-matomo-analytics.git
And you will see
-
Enter the
Host URL
andWebsite ID
-
Add the theme component “Matomo Analytics” to your active theme(s).
That’s it!