Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 878 Bytes

README.md

File metadata and controls

35 lines (25 loc) · 878 Bytes

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";