Skip to content

Commit

Permalink
chore: Remove PII info for external apps
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwin1111 committed Feb 10, 2025
1 parent 8d5a7f2 commit 08117a6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
4 changes: 1 addition & 3 deletions src/app/core/services/integration/refiner.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@ export class RefinerService {
if (this.refiner) {
this.refiner('identifyUser', {
id: this.user.org_id,
email: this.user.email,
name: this.user.full_name,
account: {
workspace_name: this.user.org_name
workspace_id: this.user.org_id
},
source: 'Fyle Integration Settings',
action_name: actionName,
Expand Down
7 changes: 3 additions & 4 deletions src/app/core/services/integration/tracking.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,15 @@ export class TrackingService {
}
}

onOpenLandingPage(email: string | undefined, orgId: number, orgName: string, fyleOrgId: string): void {
onOpenLandingPage(userId: string | undefined, orgId: number, fyleOrgId: string): void {
try {
if (this.tracking) {
this.tracking.identify(email);
this.tracking.identify(userId);
this.tracking.people.set({
orgId,
orgName,
fyleOrgId
});
this.identityEmail = email;
this.identityEmail = userId;
}
} catch (e) {
console.error('Tracking error:', e);
Expand Down
2 changes: 1 addition & 1 deletion src/app/integrations/integrations.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class IntegrationsComponent implements OnInit {
this.user = this.userService.getUserProfile();
this.getOrCreateOrg().then((org: Org | undefined) => {
if (org) {
this.trackingService.onOpenLandingPage(this.user?.email, org.id, org.name, org.fyle_org_id);
this.trackingService.onOpenLandingPage(this.user?.user_id, org.id, org.name);
this.org = org;
this.storageService.set('orgId', this.org.id);
this.storageService.set('org', this.org);
Expand Down

0 comments on commit 08117a6

Please sign in to comment.