Skip to content

Commit fd888f1

Browse files
committed
Track login_what_is_jetpack_help_screen_ok_button_tapped
1 parent c0a01f4 commit fd888f1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

WooCommerce/Classes/ViewRelated/Fancy Alerts/FancyAlertViewController+UnifiedLogin.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
import WordPressUI
22
import SafariServices
33

4-
static func makeWhatIsJetpackAlertController() -> FancyAlertViewController {
54
extension FancyAlertViewController {
6-
let dismissButton = makeDismissButtonConfig()
5+
static func makeWhatIsJetpackAlertController(analytics: Analytics) -> FancyAlertViewController {
6+
let dismissButton = FancyAlertViewController.Config.ButtonConfig(Localization.dismissButton) { controller, _ in
7+
controller.dismiss(animated: true)
8+
analytics.track(.loginWhatIsJetpackHelpScreenOkButtonTapped)
9+
}
710
let moreInfoButton = makeMoreInfoButtonConfig()
811
let config = FancyAlertViewController.Config(titleText: Localization.whatIsJetpack,
912
bodyText: Localization.whatIsJetpackLongDescription,

0 commit comments

Comments
 (0)