mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
fix(ABtest): record test group at registration
This commit is contained in:
@@ -112,6 +112,7 @@ export async function loginSocial (req, res) { // eslint-disable-line import/pre
|
||||
}
|
||||
|
||||
if (!existingUser) {
|
||||
savedUser._ABtests['20200625_drops'] = '12345678'.indexOf(savedUser._id.slice(0, 1)) !== -1 ? 'boosted' : 'control';
|
||||
res.analytics.track('register', {
|
||||
category: 'acquisition',
|
||||
type: network,
|
||||
|
||||
Reference in New Issue
Block a user