Skip to content

Commit

Permalink
Merge pull request #7638 from wordpress-mobile/issue/7635-update-sign…
Browse files Browse the repository at this point in the history
…up-analytics

Issue/7635 update signup analytics
  • Loading branch information
oguzkocer authored Apr 17, 2018
2 parents 3d1d5e5 + bb3840a commit 4067ab1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ public interface LoginAnalyticsListener {
void trackPasswordFormViewed();
void trackSignupEmailToLogin();
void trackSignupMagicLinkFailed();
void trackSignupMagicLinkOpened();
void trackSignupMagicLinkOpenEmailClientClicked();
void trackSignupMagicLinkSent();
void trackSignupMagicLinkSucceeded();
void trackSignupSocial2faNeeded();
void trackSignupSocialAccountsNeedConnecting();
void trackSignupSocialButtonFailure();
void trackSignupSocialToLogin();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ interface SelfSignedSSLCallback {
void helpMagicLinkRequest(String email);

// Login Magic Link Sent callbacks
void openEmailClient();
void openEmailClient(boolean isLogin);
void helpMagicLinkSent(String email);

// Login email password callbacks
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle sa
@Override
public void onClick(View v) {
if (mLoginListener != null) {
mLoginListener.openEmailClient();
mLoginListener.openEmailClient(true);
}
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ public void onSocialChanged(AccountStore.OnSocialChanged event) {
switch (event.error.type) {
// WordPress account exists with input email address, and two-factor authentication is required.
case TWO_STEP_ENABLED:
mAnalyticsListener.trackSignupSocial2faNeeded();
mAnalyticsListener.trackSignupSocialToLogin();
mLoginListener.showSignupToLoginMessage();
// Dispatch social login action to retrieve data required for two-factor authentication.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle sa
@Override
public void onClick(View view) {
if (mLoginListener != null) {
mLoginListener.openEmailClient();
mLoginListener.openEmailClient(false);
}
}
});
Expand Down

0 comments on commit 4067ab1

Please sign in to comment.