mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
fix(ABtest): record test group at registration
This commit is contained in:
@@ -207,6 +207,7 @@ async function registerLocal (req, res, { isV3 = false }) {
|
||||
.catch(err => logger.error(err));
|
||||
|
||||
if (!existingUser) {
|
||||
savedUser._ABtests['20200625_drops'] = '12345678'.indexOf(savedUser._id.slice(0, 1)) !== -1 ? 'boosted' : 'control';
|
||||
res.analytics.track('register', {
|
||||
category: 'acquisition',
|
||||
type: 'local',
|
||||
|
||||
Reference in New Issue
Block a user