Extension:Matomo

This extension inserts your Piwik tracking code to the bottom of every page. It excludes the views of the users with 'bot' privileges (bots) and the 'protect' privileges (sysops).

Minimum requirements

 * MediaWiki 1.11+


 * A Piwik installation with your site configured

Installation instructions
Please, read them carefully. They're not very difficult to understand, but ALL steps are necessary:


 * Create a folder called "piwik" in your extensions directory


 * Upload Piwik.php to the "piwik" folder you've just created


 * Edit your LocalSettings.php and, at the end of the file, add the following:

require_once($IP.'/extensions/piwik/Piwik.php');

$wgPiwikURLpiwikjs = "url/of/piwik.js"; $wgPiwikURLpiwikphp = "piwik.php_location"; $wgPiwikIDSite = "piwik_idsite";
 * Then, you need to define where are piwik.php and piwik.js files in your Piwik installation and the idsite. To do it, just add after the require_once:

Note: Change the value of $wgPiwikURLpiwikjs with the URL inside src. For example, in:   the $wgPiwikURLpiwikjs</tt> is http://domain/path/piwik.js

Change the value of $wgPiwikURLpiwikphp</tt> with the URL inside piwik_url</tt> and the value of $wgPiwikIDSite</tt> with the number inside piwik_idsite</tt> in your Piwik code.

For further installation instructions, check the README