chore(email): next split test iteration

This commit is contained in:
Sabe Jones
2019-03-14 12:21:46 -05:00
parent 89e1c69728
commit 3f04c8abf5
3 changed files with 18 additions and 2 deletions

View File

@@ -147,6 +147,14 @@ function _setUpNewUser (user) {
user.migration = '20190314_pi_day';
/* eslint-enable camelcase */
const testGroup = Math.random();
if (testGroup < 0.5) {
user._ABtests.welcomeEmailSplit = 'welcome-v2b';
} else {
user._ABtests.welcomeEmailSplit = 'welcome';
}
if (user.registeredThrough === 'habitica-web') {
taskTypes = ['habit', 'daily', 'todo', 'reward', 'tag'];