MatomoAnalytics extension inserts tracking code for the Matomo analytics platform. It also creates a Special Page (Special:Analytics) where you can view the stats on-wiki.
For reporting an issue or a bug, please use
See here for the workboard.
Installation [ edit ]
Download and place the file(s) in a directory called
MatomoAnalytics in your
Add the following code at the bottom of your
LocalSettings.php file: wfLoadExtension ( 'MatomoAnalytics' );
Configure as required.
Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed. It is important that the whole URL is used with protocol and trailing slash:
Configuration [ edit ]
false URL of your Matomo installation
false The auth token for the API of your Matomo install
1 Matomo site ID
false Shared Matomo site ID. For use on wikifarms.
false Whether to use a database or not. For use on wikifarms.
false Name of the main database to use. For use on wikifarms.
false Allow disabling cookies set by Matomo.
false Allow disabling of JS tracking code globally
Matomo API token [ edit ]
To obtain a Matomo API token from your Matomo installation, you can follow the official documentation:
See also [ edit ]
This extension is included in the following wiki farms/hosts and/or packages:
This is not an authoritative list. Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm.
This extension is made by Miraheze. It may have issues you don't see in Miraheze. To report a bug or request a configuration change, please do so in the Miraheze Phabricator instead of the Wikimedia one.