Skip to content

Commit

Permalink
Move sz_plus_subscribed analytics event after purchase (#1567)
Browse files Browse the repository at this point in the history
The current order also counts users who cancel the purchase process the
`sz_plus_subscribed` event.
  • Loading branch information
nilsreichardt authored Apr 27, 2024
1 parent 4cbbbc6 commit d217d9a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/lib/sharezone_plus/page/sharezone_plus_page_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -137,16 +137,16 @@ class SharezonePlusPageController extends ChangeNotifier {
}

try {
_analytics.logSubscribed(
selectedPurchasePeriod.name,
PlatformCheck.currentPlatform.name,
);

if (PlatformCheck.isWeb) {
await _buyOnWeb();
} else {
await _purchaseService.purchase(_getProductId());
}

_analytics.logSubscribed(
selectedPurchasePeriod.name,
PlatformCheck.currentPlatform.name,
);
} catch (e, s) {
isPurchaseButtonLoading = false;
notifyListeners();
Expand Down

0 comments on commit d217d9a

Please sign in to comment.