Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Commit 2f8395f

Browse files
committed
Analytics: track a different flow value when magic link emphasis configuration is enabled.
1 parent 69fcfb2 commit 2f8395f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

WordPressAuthenticator/Analytics/AuthenticatorAnalyticsTracker.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ public class AuthenticatorAnalyticsTracker {
7474
///
7575
case loginWithPassword = "login_password"
7676

77+
/// This flow starts when the user decides to login with a password instead, with magic link logic emphasis
78+
/// where the CTA is a secondary CTA instead of a table view row
79+
///
80+
case loginWithPasswordWithMagicLinkEmphasis = "login_password_magic_link_emphasis"
81+
7782
/// This flow starts when the user decides to log in with their site address
7883
///
7984
case loginWithSiteAddress = "login_site_address"

WordPressAuthenticator/Unified Auth/View Related/Password/PasswordViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class PasswordViewController: LoginViewController {
7979
tracker.set(step: .passwordChallenge)
8080
}
8181
} else {
82-
tracker.set(flow: .loginWithPassword)
82+
tracker.set(flow: isMagicLinkShownAsSecondaryAction ? .loginWithPasswordWithMagicLinkEmphasis : .loginWithPassword)
8383

8484
if isMovingToParent {
8585
tracker.track(step: .start)

0 commit comments

Comments
 (0)