Extension:GTag

The GTag extension lets you insert the new Google Analytics tracking tag on your MediaWiki site (gtag.js).

Configuration parameters

 * $wgGTagAnalyticsId (string)
 * Google Analytics id, required.


 * $wgGTagHonorDNT (boolean, default true)
 * If true, honor "Do Not Track" requests from browsers. If false, ignore such requests.


 * $wgGTagTrackSensitivePages (boolean, default true)
 * If true, insert tracking code into sensitive pages such as Special:UserLogin and Special:Preferences. If false, no tracking code is added to these pages.

User rights

 * gtag-exempt
 * Users granted this right will not be tracked by Google Analytics. This can be useful to exempt staff groups from being tracked, to get a better idea of what your end users are doing on the wiki.