-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unified Login: Track events for WPcom login flow #2843
Conversation
Fire both the button events from the same place on the login prologue fragment
Save source and flow to app preferences so if the app is restarted on the store picker screen we will know which flow the app is completing.
Error TypeError
Dangerfile
Generated by 🚫 dangerJS |
You can test the changes on this Pull Request by downloading the APK here. |
mAnalyticsListener.trackFailure(message); | ||
private void show2FaError(@Nullable String message) { | ||
if (message != null) { | ||
mAnalyticsListener.trackFailure(message); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we track the failure even if the message is null? No message will be logged, but a Stat.UNIFIED_LOGIN_FAILURE
event will still occur, which we probably want to capture.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Normally, yes, but the way this is used in the login library is to clear the error on a text field, which means it occurs constantly while typing in a text field.
Thanks for the review @nbradbury! Addressed code comments and ready for another round 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0f54aa6 Merge pull request #46 from wordpress-mobile/merge/wcandroid-ul-m1 69cdd91 Fix merge conflicts a955de5 Remove confusion over tag usage by renaming and fix social login bug ff2b2cb Update to conform to changes from the Login Library ac21a9e Merge commit '7fb87d9b60e417020e48bc33b89f4a3ffeb88a95' into issue/merge-login-lib-changes c616393 Call login listener method for unregistered email if in WPcom login flow 895a4f5 Merge pull request #2930 from woocommerce/release/5.1 fc65d5c Merge pull request #2918 from woocommerce/issue/2911-tracks cb75217 Merge pull request #2916 from woocommerce/issue/2897-overlap-ul 427d2e3 Add new methods for updating the step when resuming site creds screen 37998c4 Add new methods for updating the step when resuming magic link and site creds views c4964cf Add new methods for updating the step when resuming site address and email password views e87a28c Nest layout in a ScrollView so buttons no longer overlap on smaller screens e58d872 Make screen scrollable for smaller displays and lower resolutions 5cf377a Allow login to complete if WPcom login without the woo-specific site address check af41bb2 Null the site address view when the view is destroyed 9aefabe Resolved conflicts in login library build.gradle, pulled develop c67f6fb Fix login flow memory leaks 695044d Merge pull request #2843 from woocommerce/issue/2721-tracks-2 f0302a7 Hide TOS buttons if not in signup mode during login 130b83f Updated gradle dependecy 3d99e1a Only log track failures if message is not null a734985 Update button labels and add click events 946041b Add logic to route to login with wpcom creds flow 45f625d Style site creds login by magic link verification screen f684c59 Handle magic link login b4c8b8c Create alternative login email screen that provides site creds option 8d4ac00 Delete empty layouts created during merge and comment out usage c9ace9d Merge commit 'b2b772d616c7d7e40c2b0d1c7d7a25e52ecbf59e' into issue/2655-unified-login-1 673ce5d Fix FluxC build a069675 Update gradle plugin to 4.0 and gradle to 6.1.1 2fb113e Revert changes to gradle a57069b Gradle updates. git-subtree-dir: libs/login git-subtree-split: 0f54aa6
Unified Login: Track events for WPcom login flow
Closes #2721 by adding the final tracks events for the WPcom login flow. This includes:
wordpress_com
when theContinue with WordPress.com
button is clicked.source
andflow
track state toAppPrefs
so if the user closes the app on the store picker screen and returns later we can restore those two values.Note: Track events for magic link and password were already added in a previous PR
Sample Track events
Flow: Wordpress.com + magic link
Flow: WordPress.com + password
Flow: Google Login (2FA)
To Test
source
andflow
should be reinstated and thesuccess
event tracked successfully. For example:Update release notes:
RELEASE-NOTES.txt
if necessary.