From 7e9ebac5792b9a31a5b9a2bf0a1a8b92c042be33 Mon Sep 17 00:00:00 2001 From: Marina Azevedo Date: Fri, 10 Jan 2025 14:23:21 -0300 Subject: [PATCH] Revert "[YiR] Analytics update" --- Wikipedia/Code/DonateFunnel.swift | 6 +++++- Wikipedia/Code/ProfileCoordinator.swift | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Wikipedia/Code/DonateFunnel.swift b/Wikipedia/Code/DonateFunnel.swift index 7b77bd85f7e..d75c96829cd 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 a78fdac406d..fcce76baa91 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() } }