-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add click tracking to unified login and signup flow #12117
Add click tracking to unified login and signup flow #12117
Conversation
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
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.
Overall code looks good, and I couldn't find any missing relevant click event.
I did found a bug though: when we click the Continue with Google button and the Google dialog appears, the flow changes to google_login
, but if we dismiss the dialog, the flow stays as google_login
. This causes the click to the Continue or help button to be logged as in the google_login
flow.
Answering your question:
The events tracked are unified_login_interaction (do you think it would be better to use "click" instead?).
I think this depends on the scope we want to track here. If we want to limit to button taps, then using the term "click" is fine. If we also want to log other interactions, like for example, ViewPager swipes, then we should replace the term "click" to something more generic, and "interaction" seems like a good choice.
…ified-login-interaction-tracking
…ified-login-interaction-tracking
thanks for the review @renanferrari
This is a great catch! I've implemented a solution that sets the flow & step in
Right now it's only clicks but let's keep the name |
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.
I've implemented a solution that sets the flow & step in
onResume
in the Email and Prologue fragments. It doesn't seem to be issue anywhere else (as far as I can see). I think it's because the other fragments are not kept when you jump around). It seems to work fine now. Let me know what you think!
I can confirm it's working as expected now. Thanks for the changes!
LGTM!
Fixes #11797
This PR adds tracking to all the clicks in the login flow. The events tracked are
unified_login_interaction
(do you think it would be better to use "click" instead?). The event contains the previous source/flow/step to know for sure what happened before in the flow. I tried to cover all the clicks by looking for all the onClickListeners but it's possible I missed some of the cases.To test:
unified_login_interaction
in LogcatPR submission checklist:
RELEASE-NOTES.txt
if necessary.