mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
A/B Testing, Round 2 (#8077)
* feat(analytics): A/B test 2016-09-26 * feat(tutorial): A/B variant text
This commit is contained in:
@@ -77,12 +77,12 @@ function _setUpNewUser (user) {
|
||||
let taskTypes;
|
||||
let iterableFlags = user.flags.toObject();
|
||||
|
||||
// A/B Test 2016-09-12: Start with Sound Enabled?
|
||||
// A/B Test 2016-09-26: Start with Armoire Enabled?
|
||||
if (Math.random() < 0.5) {
|
||||
user.preferences.sound = 'rosstavoTheme';
|
||||
user._ABtest = '20160912-soundEnabled';
|
||||
user.flags.armoireEnabled = true;
|
||||
user._ABtest = '20160926-armoireEnabled';
|
||||
} else {
|
||||
user._ABtest = '20160912-soundDisabled';
|
||||
user._ABtest = '20160926-armoireDisabled';
|
||||
}
|
||||
|
||||
if (user.registeredThrough === 'habitica-web' || user.registeredThrough === 'habitica-android') {
|
||||
|
||||
Reference in New Issue
Block a user