mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-20 20:58:51 +00:00
fix(analytics): record usernames
This commit is contained in:
parent
1ece230621
commit
e6807d36b5
1 changed files with 3 additions and 0 deletions
|
|
@ -72,6 +72,9 @@ let _formatUserData = (user) => {
|
|||
properties.balanceGemAmount = properties.balance * 4;
|
||||
properties.tutorialComplete = user.flags && user.flags.tour && user.flags.tour.intro === -2;
|
||||
properties.verifiedUsername = user.flags && user.flags.verifiedUsername;
|
||||
if (properties.verifiedUsername && user.auth && user.auth.local) {
|
||||
properties.username = user.auth.local.lowerCaseUsername;
|
||||
}
|
||||
|
||||
if (user.habits && user.dailys && user.todos && user.rewards) {
|
||||
properties['Number Of Tasks'] = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue