Skip to content

Commit 1f831b2

Browse files
committed
Add detailed metrics for accounts edge cases
1 parent 300c54a commit 1f831b2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/model/account/account-store.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,14 @@ export class AccountStore {
100100

101101
this.logOut();
102102
}
103+
104+
if (this.userEmail === '[email protected]') {
105+
if (localStorage.getItem('patched') !== 'true') {
106+
localStorage.setItem('patched', 'true');
107+
// Track once for our metrics, and to log the IP & user id:
108+
trackEvent({ category: 'Account', action: 'Patch detected' });
109+
}
110+
}
103111
});
104112

105113
console.log('Account store initialized');

0 commit comments

Comments
 (0)