chore(analytics): open the task firehose

This commit is contained in:
Sabe Jones
2021-07-02 14:52:45 -05:00
parent 63c780759a
commit 9e9a301f04
2 changed files with 9 additions and 13 deletions

View File

@@ -438,17 +438,14 @@ async function scoreTask (user, task, direction, req, res) {
user,
});
// Track when new users (first 7 days) score tasks
if (moment().diff(user.auth.timestamps.created, 'days') < 3) {
res.analytics.track('task score', {
uuid: user._id,
hitType: 'event',
category: 'behavior',
taskType: task.type,
direction,
headers: req.headers,
});
}
res.analytics.track('task score', {
uuid: user._id,
hitType: 'event',
category: 'behavior',
taskType: task.type,
direction,
headers: req.headers,
});
return {
task,