mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-04 04:59:40 +00:00
chore(email): expand to 4 variants
This commit is contained in:
parent
ea5ce64db6
commit
4a4d48aed8
1 changed files with 6 additions and 2 deletions
|
|
@ -129,10 +129,14 @@ function _setUpNewUser (user) {
|
||||||
user.preferences.background = 'violet';
|
user.preferences.background = 'violet';
|
||||||
|
|
||||||
const testGroup = Math.random();
|
const testGroup = Math.random();
|
||||||
if (testGroup < 0.5) {
|
if (testGroup < 0.25) {
|
||||||
user._ABtests.welcomeEmailSplit = 'welcome-v2';
|
user._ABtests.welcomeEmailSplit = 'welcome-v2';
|
||||||
} else {
|
} else if (testGroup < 0.5) {
|
||||||
user._ABtests.welcomeEmailSplit = 'welcome-v2b';
|
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') {
|
if (user.registeredThrough === 'habitica-web') {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue