Skip to content

Commit

Permalink
fix(analytics): fix analytics not sending correct events in some cases
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Mar 30, 2023
1 parent a55e534 commit 02feb89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/services/analytics.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export class AnalyticsService {
}

sendDesignEvent(eventId: string, value: number = 0) {
this.analytics.addDesignEvent(eventId, value);
const eventIdOnlyText = eventId.replace(/[^a-zA-Z0-9:]/g, '');
this.analytics.addDesignEvent(eventIdOnlyText, value);
}
}

0 comments on commit 02feb89

Please sign in to comment.