From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Extension:MatomoAnalytics and the translation is 5% complete.

Other languages:
English • ‎dansk • ‎polski • ‎日本語
MediaWiki extensions manual
Crystal Clear action run.svg
Release status: stabil
Beskrivelse Integration with Matomo for analytics. Adds a special page to view that stats on-wiki.
Forfatter(e) John Lewis
Maintainer(s) John Lewis/other sysadmins of Miraheze
Latest version continuous updates
MediaWiki 1.30+
PHP 5.6+
Database changes No, Yes if $wgMatomoAnalyticsUseDB is enabled
Licens GNU General Public License 3.0
Translate the MatomoAnalytics extension if it is available at translatewiki.net
Check usage and version matrix.

The 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.


  • Download and place the file(s) in a directory called MatomoAnalytics in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'MatomoAnalytics' );
  • Required configuration below
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.


parameter default comment required?
$wgMatomoAnalyticsServerURL false URL of your Matomo installation yes
$wgMatomoAnalyticsTokenAuth false The auth token for the API of your Matomo install yes
$wgMatomoAnalyticsSiteID 1 Matomo site ID no
$wgMatomoAnalyticsGlobalID false Shared Matomo site ID. For use on wikifarms. no
$wgMatomoAnalyticsUseDB false Wether to use a database or not. For use on wikifarms. no
$wgMatomoAnalyticsDatabase false Name of the main database to use. For use on wikifarms. no

Se også