diff --git a/Wikipedia/Code/DonateFunnel.swift b/Wikipedia/Code/DonateFunnel.swift index 7b77bd85f7..d75c96829c 100644 --- a/Wikipedia/Code/DonateFunnel.swift +++ b/Wikipedia/Code/DonateFunnel.swift @@ -360,6 +360,10 @@ import WMF logEvent(activeInterface: .wikiYiR, action: .impression, actionData: ["slide": "new_account_engage"]) } + func logYearInReviewLoginPromptDidAppearProfile() { + logEvent(activeInterface: .wikiYiR, action: .impression, actionData: ["slide": "yir_start_account_engage"]) + } + func logYearInReviewLoginPromptDidTapLogin() { logEvent(activeInterface: .wikiYiR, action: .accountEngageClick, actionData: ["slide": "new_account_engage"]) } @@ -373,7 +377,7 @@ import WMF } func logYearInReviewLoginPromptDidTapNoThanksProfile() { - logEvent(activeInterface: .wikiYiR, action: .rejectClick, actionData: ["slide": "entry_b_profile"]) + logEvent(activeInterface: .wikiYiR, action: .rejectClick, actionData: ["slide": "yir_start_account_engage"]) } func logYearInReviewDidTapShare(slideLoggingID: String) { diff --git a/Wikipedia/Code/ProfileCoordinator.swift b/Wikipedia/Code/ProfileCoordinator.swift index a78fdac406..fcce76baa9 100644 --- a/Wikipedia/Code/ProfileCoordinator.swift +++ b/Wikipedia/Code/ProfileCoordinator.swift @@ -220,6 +220,8 @@ final class ProfileCoordinator: NSObject, Coordinator, ProfileCoordinatorDelegat alert.addAction(action2) presentedViewController.present(alert, animated: true) + + DonateFunnel.shared.logYearInReviewLoginPromptDidAppearProfile() } }