fix(ABtest): record test group at registration

This commit is contained in:
Sabe Jones
2020-06-26 15:16:22 -05:00
parent f1f120498c
commit b641414a56
2 changed files with 2 additions and 0 deletions

View File

@@ -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',