Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas-Sander committed Apr 22, 2024
1 parent a3071e0 commit 676454c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void trySetSharezonePlusAnalyticsUserProperties(Analytics analytics,
var source = status.source ?? SubscriptionSource.unknown;
analytics.setUserProperty(
name: 'plus_source',
value: source.stableDbKey,
value: source.stableAnalyticsKey,
);
}
}
Expand Down
12 changes: 6 additions & 6 deletions lib/user/lib/src/models/sharezone_plus_status.dart
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,16 @@ class SharezonePlusStatus {
}

enum SubscriptionSource {
playStore(uiString: 'Play Store', stableDbKey: 'playstore'),
appStore(uiString: 'App Store', stableDbKey: 'appstore'),
stripe(uiString: 'Stripe', stableDbKey: 'stripe'),
unknown(uiString: 'Unknown', stableDbKey: 'unknown');
playStore(uiString: 'Play Store', stableAnalyticsKey: 'playstore'),
appStore(uiString: 'App Store', stableAnalyticsKey: 'appstore'),
stripe(uiString: 'Stripe', stableAnalyticsKey: 'stripe'),
unknown(uiString: 'Unknown', stableAnalyticsKey: 'unknown');

const SubscriptionSource({
required this.uiString,
required this.stableDbKey,
required this.stableAnalyticsKey,
});

final String uiString;
final String stableDbKey;
final String stableAnalyticsKey;
}

0 comments on commit 676454c

Please sign in to comment.