Extension:Quantcast
From MediaWiki.org
|
Quantcast Release status: stable |
|||
|---|---|---|---|
| Implementation | Skin | ||
| Description | Adds Quantcast tracking JS code to all pages | ||
| Author(s) | Jack Phoenix | ||
| Last version | 0.1 (12 December 2010) | ||
| MediaWiki | 1.11.0+ | ||
| License | Public domain | ||
| Download | |||
| Example | WikiGardener | ||
|
|||
|
|||
| 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.
Installation [edit]
- Create MediaWiki:Quantcast-tracking-number on your wiki with your Quantcast tracking code (this code is usually something like p-b0cm0JUH0b-sA)
- Download the source code and save it as Quantcast.php and place it into $IP/extensions/Quantcast
- Add
to your wiki's LocalSettings.php
require_once("$IP/extensions/Quantcast/Quantcast.php");
- Installation can now be verified through Special:Version on your wiki
Parameters [edit]
- $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.