Add pixels for importing google passwords metrics#5284
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
2a4356e to
d9b11c1
Compare
f6fa1d8 to
ba4e8c5
Compare
d9b11c1 to
720a9dc
Compare
ba4e8c5 to
ef5e18b
Compare
720a9dc to
c1cc10b
Compare
adc52be to
18d3de2
Compare
| data class AutofillImportPasswordSettings( | ||
| val canImportFromGooglePasswords: Boolean, | ||
| val launchUrlGooglePasswords: String, | ||
| val canInjectJavascript: Boolean, |
There was a problem hiding this comment.
as discussed, adding in ability to selectively disable just the JS injection
| val launchUrlGooglePasswords: String, | ||
| val canInjectJavascript: Boolean, | ||
| val javascriptConfigGooglePasswords: String, | ||
| val urlMappings: List<UrlMapping>, |
There was a problem hiding this comment.
for determining where in the webflow cancellation took place, we need to map URLs to a known string. there will be default mappings in place, but we can also override with remote config.
| } else { | ||
| terminateFlowAsCancellation(url ?: "unknown") | ||
| } | ||
| terminateFlowAsCancellation(url ?: "unknown") |
There was a problem hiding this comment.
handling ENCRYPTED_PASSPHRASE_ERROR_URL as another of the cancellation cases so don't need special treatment here for it
...l/src/main/java/com/duckduckgo/autofill/impl/engagement/store/AutofillEngagementBucketing.kt
Show resolved
Hide resolved
cmonfortep
left a comment
There was a problem hiding this comment.
LGTM, everything works as expected.
Just a note, when reading in the latest scenario "Launch password import flow; verify you don't see any UI hints on which button to press", I was surprised because I didn't have hint in the previous scenarios. Let's review that tomorrow.
| AUTOFILL_TOGGLED_ON_SEARCH("m_autofill_toggled_on"), | ||
| AUTOFILL_TOGGLED_OFF_SEARCH("m_autofill_toggled_off"), | ||
|
|
||
| AUTOFILL_IMPORT_GOOGLE_PASSWORDS_EMPTY_STATE_CTA_BUTTON_TAPPED("autofill_import_google_passwords_import_button_tapped"), |
There was a problem hiding this comment.
Do we need to add them to remove atb or similar?
There was a problem hiding this comment.
No, keeping ATB et al.
c1cc10b to
3ae18f9
Compare
18d3de2 to
097d049
Compare
Isolated the problem and fixed in #5295. this branch has been restacked on top, meaning if you test again you should see the hints working now. good spot! |
3ae18f9 to
d702bc0
Compare
097d049 to
f0972ee
Compare
f0972ee to
90c8690
Compare

Task/Issue URL: https://app.asana.com/0/608920331025315/1208787586139232/f
Description
Adds metrics around the import password flow. To support this in a flexible way, it also allows for the url mappings to be defined remotely for which stage of the flow a user dropped out at if they didn't go all the way through; if we ever need to, can override the default url mappings.
Logcat filter:
message~:"Pixel sent: autofill_import_google_passwords"Steps to test this PR
Setup
Cancelling the user journey
Passwordsscreen, and verifyautofill_import_google_passwords_import_button_shownin logs for the import password button being shownImport Passwords From Googlebutton; verifyautofill_import_google_passwords_import_button_tappedin logsautofill_import_google_passwords_preimport_prompt_displayedin logsautofill_import_google_passwords_result_user_cancelledin logsImport Passwords From Googlebutton again.Open Google Passwordsbutton; verifyautofill_import_google_passwords_preimport_prompt_confirmedin logsautofill_import_google_passwords_result_user_cancelledin logs, withstage=webflow-pre-loginSign inbutton. Then ✖️ to exit the flow; verifyautofill_import_google_passwords_result_user_cancelledwithstage=webflow-authenticateautofill_import_google_passwords_result_user_cancelledwithstage=webflow-post-login-landingautofill_import_google_passwords_result_user_cancelledwithstage=webflow-exportautofill_import_google_passwords_result_user_cancelledwithstage=webflow-authenticateSucceeding
autofill_import_google_passwords_result_success, with the correct bucket forsaved_credentialsandskipped_credentialsbased on bucket rules defined hereskipped_credentialsbucket is accurate.Overflow menu
Import Passwords From Googlewill appear in the overflow menu. Tap on that. Verifyautofill_import_google_passwords_overflow_menu_tappedandautofill_import_google_passwords_preimport_prompt_displayedin logsEncrypted passphrase scenario
autofill_import_google_passwords_result_user_cancelledwithstage=webflow-passphrase-encryptionCSV parsing scenario
autofill_import_google_passwords_result_parsingin logs.URL mapping via remote config
urlMappingsthat the mappings from the patched jsonblob are used and override the local defaults.Selectively disabling JS injection