mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
chore(email): expand to 4 variants
This commit is contained in:
@@ -129,10 +129,14 @@ function _setUpNewUser (user) {
|
||||
user.preferences.background = 'violet';
|
||||
|
||||
const testGroup = Math.random();
|
||||
if (testGroup < 0.5) {
|
||||
if (testGroup < 0.25) {
|
||||
user._ABtests.welcomeEmailSplit = 'welcome-v2';
|
||||
} else {
|
||||
} else if (testGroup < 0.5) {
|
||||
user._ABtests.welcomeEmailSplit = 'welcome-v2b';
|
||||
} else if (testGroup < 0.75) {
|
||||
user._ABtests.welcomeEmailSplit = 'welcome-v2c';
|
||||
} else {
|
||||
user._ABtests.welcomeEmailSplit = 'welcome-v2d';
|
||||
}
|
||||
|
||||
if (user.registeredThrough === 'habitica-web') {
|
||||
|
||||
Reference in New Issue
Block a user