Extension:EditPageTracking

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png
EditPageTracking

Release status:Extension status unmaintained

ImplementationTemplate:Extension#type User activity
DescriptionTemplate:Extension#description Records the first time new users view the edit page
Author(s)Template:Extension#username Andrew Garrett (Werdnatalk)
MediaWikiTemplate:Extension#mediawiki 1.17wmf1
Database changesTemplate:Extension#needs-updatephp Yes
LicenseTemplate:Extension#license GPL
Download
ParametersTemplate:Extension#parameters

$wgEditPageTrackingRegistrationCutoff

Hooks usedTemplate:Extension#hook
LoadExtensionSchemaUpdatesManual:Hooks/LoadExtensionSchemaUpdates
User

Translate the EditPageTracking extension if it is available at translatewiki.net

Check usage and version matrix.

What can this extension do?[edit]

EditPageTracking records the time new users first visited an edit page, for statistical and behavioural purposes. It is currently used in MoodBar to determine whether or not to show the MoodBar to a new user.

Download instructions[edit]

Download the extension from this site and extract it into your extensions/ directory.

Make sure you run update.php after you do so, to apply database schema modifications.

Installation[edit]

To install this extension, add the following to LocalSettings.php:

require_once("$IP/extensions/EditPageTracking/EditPageTracking.php");
$wgEditPageTrackingRegistrationCutoff = '20110721103700'; // Replace with the time you installed the extension. Format: YYYYMMDDHHMMSS

Configuration parameters[edit]

$wgEditPageTrackingRegistrationCutoff is the timestamp when the extension takes effect. Users registered before this time will not have data recorded, because it would be incorrect. It is a standard MediaWiki 14-character timestamp: a four-digit year, and two digits each of month, day, hour, minute and second.