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;


🤖 Copy this prompt into your AI agent:

Help me install the clicky.com MediaWiki plugin/extension on my website. Read `https://clicky.com/help/plugins-mediawiki` for what it does and `https://clicky.com/help/agents` for general context. Install and configure it (it may need my site ID and sitekey, ask me to grab that from my site preferences), then verify pageviews are being logged via the API or live view before telling me you're done.



📢 Make better decisions with real-time insights

Sign up for Clicky now and transform your analytics