This MediaWiki extension provides a way to configure Fathom Analytics for your MediaWiki powered wiki.
-
Either download a release or clone this repository. The extension files should end up in a directory called
FathomAnalytics
inside yourextensions/
directory. -
Add the following to the bottom of your
LocalSettings.php
:wfLoadExtension( "FathomAnalytics" );
-
Done!
The following variables configure this extension:
$wgFathomAnalyticsURL
- defaults tohttp://cdn.usefathom.com/script.js
. Set if you use a custom domain to servescript.js
.$wgFathomAnalyticsSiteID
- the Fathom Site ID for your site.
wfLoadExtension( "FathomAnalytics" );
$wgFathomAnalyticsURL = "https://candle.example.com/script.js";
$wgFathomAnalyticsSiteID = "ABCDEFGH";