Skip to content

Commit

Permalink
fix: for same user counted as multiple users on mixpanel (#3178)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chethan-Fyle committed Aug 21, 2024
1 parent 1bc9526 commit 994ad14
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/app/core/services/tracking.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ export class TrackingService {
track_pageview: true,
persistence: 'localStorage',
});
mixpanel?.reset();
} catch (e) {}
}

Expand All @@ -78,10 +77,6 @@ export class TrackingService {
const distinctId = mixpanel?.get_distinct_id() as string;
if (distinctId !== eou.us.email) {
mixpanel?.identify(eou.us.email);
mixpanel?.people?.set({
$name: eou.us.full_name,
$email: eou.us.email,
});
}

properties['User Name'] = eou.us.full_name;
Expand Down Expand Up @@ -138,9 +133,6 @@ export class TrackingService {
onSignin(email: string, properties: { label?: string } = {}): void {
try {
mixpanel?.identify(email);
mixpanel?.people?.set({
$email: email,
});
} catch (e) {}

this.identityEmail = email;
Expand Down

0 comments on commit 994ad14

Please sign in to comment.