mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-04-14 19:56:23 +00:00
feat(analytics): track account delete/reset
This commit is contained in:
parent
1ed58c452c
commit
dafb6df18b
1 changed files with 12 additions and 0 deletions
|
|
@ -434,6 +434,12 @@ api.deleteUser = {
|
|||
]);
|
||||
}
|
||||
|
||||
res.analytics.track('account delete', {
|
||||
uuid: user._id,
|
||||
hitType: 'event',
|
||||
category: 'behavior',
|
||||
});
|
||||
|
||||
res.respond(200, {});
|
||||
},
|
||||
};
|
||||
|
|
@ -1857,6 +1863,12 @@ api.userReset = {
|
|||
user.save(),
|
||||
]);
|
||||
|
||||
res.analytics.track('account reset', {
|
||||
uuid: user._id,
|
||||
hitType: 'event',
|
||||
category: 'behavior',
|
||||
});
|
||||
|
||||
res.respond(200, ...resetRes);
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue