MediaWiki Web Analytics Plugin

⬅️ Back to all plugins  

Install the HeadScript extension. Open your LocalSettings.php file and create a variable called $wgHeadScriptCode that contains the tracking code. Save, upload, and you're done!

Here's an example (replace the two 123's with your site ID), assuming you have at least 1.27 from 2016. Full instructions for installing this extension and setting up the variable depending on your version of MedaiWiki are in the link above.

$wgHeadScriptCode = <<<CLICKYCODE
<script>var clicky_site_ids = clicky_site_ids || []; clicky_site_ids.push(123);</script>
<script async src="//static.getclicky.com/js"></script>
<noscript><p><img alt="Clicky" width="1" height="1" src="//in.getclicky.com/123ns.gif" /></p></noscript>
CLICKYCODE;




📢 Tired of complex, bloated analytics?

Try Clicky now for a streamlined experience