~mjorgensen/MediaWiki-FathomAnalytics

This MediaWiki extension provides a way to configure Fathom Analytics for your MediaWiki powered wiki.
Update README formatting
Add configuration example.

clone

read-only
https://git.sr.ht/~mjorgensen/MediaWiki-FathomAnalytics
read/write
git@git.sr.ht:~mjorgensen/MediaWiki-FathomAnalytics

You can also use your local clone with git send-email.

#FathomAnalytics

This MediaWiki extension provides a way to configure Fathom Analytics for your MediaWiki powered wiki.

#Installation

  1. Either download a release or clone this repository. The extension files should end up in a directory called FathomAnalytics inside your extensions/ directory.

  2. Add the following to the bottom of your LocalSettings.php:

    wfLoadExtension( "FathomAnalytics" );
    
  3. Done!

#Configuration

The following variables configure this extension:

  • $wgFathomAnalyticsURL - defaults to http://cdn.usefathom.com/script.js. Set if you use a custom domain to serve script.js.
  • $wgFathomAnalyticsSiteID - the Fathom Site ID for your site.

#Example

wfLoadExtension( "FathomAnalytics" );
$wgFathomAnalyticsURL = "https://candle.example.com/script.js";
$wgFathomAnalyticsSiteID = "ABCDEFGH";

#Resources

Discussion and patches are welcome and should be directed to the project mailing list: ~mjorgensen/mw-fathomanalytics@lists.sr.ht.

Bugs, issues, planning, and tasks can all be found at the tracker: ~mjorgensen/MediaWiki-FathomAnalytics.