Extension:GrowthExperiments

From MediaWiki.org
Jump to navigation Jump to search

Other languages:
MediaWiki extensions manual
OOjs UI icon advanced.svg
GrowthExperiments
Release status: experimental
Implementation Special page
Description Contains experiments done by the Growth team
Author(s) Stephane Bisson, Roan Kattouw, Kosta Harlan
Compatibility policy release branches
PHP 5.6+
Database changes No
License GNU General Public License 3.0 or later
Download
  • $wgWelcomeSurveyEnabled
  • $wgWelcomeSurveyPrivacyPolicyUrl
  • $wgWelcomeSurveyExperimentalGroups
  • $wgGEHomepageTutorialTitle
  • $wgGEHelpPanelReadingModeNamespaces
  • $wgGEHelpPanelExcludedNamespaces
  • $wgGEHelpPanelNewAccountEnablePercentage
  • $wgGEHelpPanelHelpDeskTitle
  • $wgGEHelpPanelViewMoreTitle
  • $wgGEHelpPanelEnabled
  • $wgGEHelpPanelLoggingEnabled
  • $wgGEHelpPanelLinks
  • $wgGEHelpPanelSearchNamespaces
  • $wgGEHelpPanelSearchForeignAPI
  • $wgGEHelpPanelSearchEnabled
  • $wgGEHomepageEnabled
  • $wgGEHomepageNewAccountEnablePercentage
  • $wgGEHomepageLoggingEnabled
  • $wgGEHomepageMentorsList
  • $wgGEConfirmEmailEnabled
help panel question, help module question, mentorship module question
Translate the GrowthExperiments extension if it is available at translatewiki.net
Check usage and version matrix.
Vagrant role growthexperiments
Issues Open tasks · Report a bug

The GrowthExperiments extension is used by Wikimedia Foundation sites for experiments done by the Growth team. The extension contains features for:

  • Special:Homepage
  • Welcome Survey
  • Help Panel
  • ConfirmationEmail improvements

Installation

For the "impact" module on Special:Homepage to work, you must also install the PageViewInfo extension. If PageViewInfo is not installed, this extension will still work, but Special:Homepage will appear without the impact module.

  • If using Vagrant , install with vagrant roles enable growthexperiments --provision
Manual installation
  • Download and place the file(s) in a directory called GrowthExperiments in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'GrowthExperiments' );
    // Welcome survey
    $wgWelcomeSurveyEnabled = true;
    $wgWelcomeSurveyPrivacyPolicyUrl = 'URL for privacy policy';
    // Homepage
    $wgGEHomepageEnabled = true;
    $wgGEHomepageNewAccountEnablePercentage = 100;
    $wgGEHomepageTutorialTitle = 'Tutorial'; // MediaWiki tutorial title
    $wgGEHomepageLoggingEnabled = false; // Disable event logging
    $wgGEHomepageMentorsList = 'Mentors'; // MediaWiki title with list of mentors
    // Help panel
    $wgGEHelpPanelEnabled = true;
    $wgGEHelpPanelLoggingEnabled = false; // disable event logging
    $wgGEHelpPanelNewAccountEnablePercentage = 100;
    $wgGEHelpPanelHelpDeskTitle = 'Help_Desk'; // MW title for the help desk
    $wgGEHelpPanelViewMoreTitle = 'Help'; // MW title for additional help links
    // List of links to help topics
    $wgGEHelpPanelLinks = [ 
    [ 'title' => 'Test', 'text' => 'Help Text 1', 'id' => 'Test' ]
    ];
    $wgGEHelpPanelSearchEnabled = true;
    // Email confirmation changes
    $wgGEConfirmEmailEnabled = true;
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.