Skip to content

Commit

Permalink
Merge pull request #5141 from wikimedia/revert-5135-analytics-yir-bugfix
Browse files Browse the repository at this point in the history
Revert "[YiR] Analytics update"
  • Loading branch information
tonisevener authored Jan 10, 2025
2 parents 5e7a6b5 + 6315775 commit 68871eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Wikipedia/Code/DonateFunnel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
}
Expand All @@ -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) {
Expand Down
2 changes: 2 additions & 0 deletions Wikipedia/Code/ProfileCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ final class ProfileCoordinator: NSObject, Coordinator, ProfileCoordinatorDelegat
alert.addAction(action2)

presentedViewController.present(alert, animated: true)

DonateFunnel.shared.logYearInReviewLoginPromptDidAppearProfile()
}
}

Expand Down

0 comments on commit 68871eb

Please sign in to comment.