Skip to content

Commit 8f6bae8

Browse files
committed
refactor(mixpanel.service.ts): remove comments
Reviewed code and removed unneeded comments
1 parent e595838 commit 8f6bae8

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

‎src/app/services/mixpanel.service.ts‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ export class MixpanelService {
1515
mixpanel.init(projectToken, { debug: false, autocapture: false });
1616
mixpanel.register({
1717
vid: this.getVid(),
18-
library: 'Kansas State',
19-
user_type: this.getUserType()
18+
library: 'Kansas State'
2019
});
2120
this.initialized = true;
2221
}
@@ -33,8 +32,7 @@ export class MixpanelService {
3332
referrer: this.document.referrer,
3433
timestamp: new Date().toISOString(),
3534
time_on_page_ms: Date.now() - this.pageStartTime,
36-
vid: this.getVid(),
37-
user_type: this.getUserType()
35+
vid: this.getVid()
3836
};
3937

4038
mp.track(eventName, enriched);
@@ -46,7 +44,6 @@ export class MixpanelService {
4644
}
4745

4846
private getUserType(): string {
49-
// Replace with real check from your store / auth service
5047
return 'anonymous';
5148
}
5249
}

0 commit comments

Comments
 (0)