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:
Sabe Jones
2016-09-26 17:10:43 -05:00
committed by GitHub
parent efc0469bef
commit 51ffe2c8c2
5 changed files with 11 additions and 6 deletions

View File

@@ -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') {