-
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 event login step fixes #2918
Conversation
…email password views
Error TypeError
Dangerfile
Generated by 🚫 dangerJS |
You can test the changes on this Pull Request by downloading the APK here. |
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.
Verified all tracking events are sent correctly after clicking on Help and resuming the login flow! Nice work
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 event login step fixes
This PR fixes an issue where previously if the user clicked on the "Help" icon on any of the login views (not the epilogue screen - that will be a different PR), the
Step
would continue to be set tohelp
erroneously even after the user returned to the regular login screen. For example:On the site address screen the unified event string would normally look like then when you click Continue:
But, if you click "help" while on this screen, then click back to return to the site address screen and then click Continue, the event looks like this:
To fix this I've added some additional login listeners for setting the appropriate step when that view resumes:
emailPasswordFormScreenResumed()
siteAddressFormScreenResumed()
magicLinkRequestScreenResumed()
fun magicLinkSentScreenResumed()
usernamePasswordScreenResumed()
This cleans up the track event flow and makes it more accurate. Below are snippets from various scenarios. Notice how the Help button is clicked between screens to ensure the
Step
is accurately reset when resumed.Login by Site Address
Site Credentials Screen
Login with WordPress.com
To Test
Verify clicking the toolbar help button and then clicking back sends the correct track event on the following screens:
Site Address Login Flow
**WordPress.com
Update release notes:
RELEASE-NOTES.txt
if necessary.