Skip to content

Commit

Permalink
custom tier in analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
ra3orblade committed Apr 19, 2024
1 parent 8653afb commit f10c454
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ts/lib/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,10 @@ class Analytics {
};

setTier (tier: I.TierType) {
this.instance.setUserProperties({ tier: I.TierType[tier] });
this.log(`[Analytics].setTier: ${I.TierType[tier]}`);
const t = I.TierType[tier] || 'Custom';

this.instance.setUserProperties({ tier: t });
this.log(`[Analytics].setTier: ${t}`);
};

event (code: string, data?: any) {
Expand Down

0 comments on commit f10c454

Please sign in to comment.