Skip to content

Commit

Permalink
VPN-6437 only send iOS metric when onboarding
Browse files Browse the repository at this point in the history
  • Loading branch information
mcleinman committed Feb 6, 2025
1 parent 19f19a2 commit f7c616b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/platforms/ios/ioscontroller.mm
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,11 @@
Controller* controller = MozillaVPN::instance()->controller();
controller->startHandshakeTimer();

granted ? mozilla::glean::outcome::onboarding_ntwrk_perm_granted.record()
: mozilla::glean::outcome::onboarding_ntwrk_perm_denied.record();
BOOL isOnboarding = MozillaVPN::instance()->state() == App::StateOnboarding;
if (isOnboarding) {
granted ? mozilla::glean::outcome::onboarding_ntwrk_perm_granted.record()
: mozilla::glean::outcome::onboarding_ntwrk_perm_denied.record();
}
}];
}

Expand Down

0 comments on commit f7c616b

Please sign in to comment.