MediaWiki extensions manual
OOjs UI icon advanced-invert.svg
Release status: stable
Implementation Skin
Description Adds Quantcast tracking JS code to all pages
Author(s) Jack Phoenixtalk
Latest version 0.4.0 (2016-08-15)
MediaWiki 1.35.6+
License Public domain
Example WikiGardener
  • $wgQuantcastTrackingExcludedGroups
Translate the Quantcast extension if it is available at translatewiki.net

Check usage and version matrix.

The Quantcast extension adds Quantcast tracking JavaScript code to all pages for all users (except those who are in a group that is excluded).

This extension was written by Jack Phoenix for ShoutWiki.


  • Create MediaWiki:Quantcast-tracking-number on your wiki with your Quantcast tracking code (this code is usually something like p-b0cm0JUH0b-sA)
  • Download and place the file(s) in a directory called Quantcast in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'Quantcast' );
  •   Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.


  • $wgQuantcastTrackingExcludedGroups — an array of groups that are excluded from Quantcast tracking. By default the array contains only the staff group. Use internal group names (such as sysop, not administrator or administrators) here.