Extension:MetricsPlatform

Category:Extensions without an imageCategory:Extensions with invalid or missing typeCategory:GPL licensed extensions
MediaWiki extensions manual
Experimentation Lab
Release status: stableCategory:Stable extensions
Description Provides the PHP and JS Experimentation Lab SDKs, which developers use to implement experiments
Author(s) The Experiment Platform team
Compatibility policy Master maintains backward compatibility.Category:Extensions with master compatibility policy
MediaWiki Category:Extensions without MediaWiki version
License GNU General Public License 2.0 or later
Download Category:Extensions in Wikimedia version control
Help Help:Extension:MetricsPlatform
Translate the MetricsPlatform extension if it is available at translatewiki.net
Issues Open tasks · Report a bug
Category:All extensionsCategory:Extensions not in ExtensionJson

The MetricsPlatform extension is maintained by the Experiment Platform team at the Wikimedia Foundation. Read more about the Metrics Platform project.

This page will be updated as usage and local setup steps are defined.

Installation

  • Download and move the extracted MetricsPlatform folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:
    cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/MetricsPlatform
    
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'MetricsPlatform' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration

$wgMetricsPlatformInstrumentConfiguratorBaseUrl = 'https://mpic.wikimedia.org';
  • Enable fetching instrument configs from xLab during the request:
$wgMetricsPlatformEnableStreamConfigsFetching = true;
  • Enable generating event stream configs from instrument configs fetched from xLab:
$wgMetricsPlatformEnableStreamConfigsMerging = true;
  • Enable experimentation capabilities:
$wgMetricsPlatformEnableExperiments = true;
  • Enable fetching experiment configs from xLab during the request:
$wgMetricsPlatformEnableExperimentConfigsFetching = true;
$wgMetricsPlatformEnableExperimentOverrides = true;
Category:Extensions used on Wikimedia#MetricsPlatform
Category:All extensions Category:Extensions in Wikimedia version control Category:Extensions not in ExtensionJson Category:Extensions used on Wikimedia Category:Extensions with invalid or missing type Category:Extensions with master compatibility policy Category:Extensions without MediaWiki version Category:Extensions without an image Category:GPL licensed extensions Category:Stable extensions