Skip to content

Commit

Permalink
For mozilla-mobile#26089 - Record metrics for save credit card prompt…
Browse files Browse the repository at this point in the history
… shown
  • Loading branch information
Alexandru2909 committed Jul 22, 2022
1 parent ff15d4f commit 45a4b48
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
16 changes: 16 additions & 0 deletions app/metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7484,6 +7484,22 @@ credit_cards:
metadata:
tags:
- Autofill
save_prompt_shown:
type: event
description: |
The autofill save prompt is shown.
bugs:
- https://github.com/mozilla-mobile/fenix/issues/26089
data_reviews:
- https://github.com/mozilla-mobile/fenix/pull/26095
data_sensitivity:
- interaction
notification_emails:
- android-probes@mozilla.com
expires: 118
metadata:
tags:
- Autofill

addresses:
saved:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ internal class ReleaseMetricController(
CreditCards.savePromptCreate.record(NoExtras())
Component.FEATURE_PROMPTS to CreditCardAutofillDialogFacts.Items.AUTOFILL_CREDIT_CARD_UPDATED ->
CreditCards.savePromptUpdate.record(NoExtras())
Component.FEATURE_PROMPTS to CreditCardAutofillDialogFacts.Items.AUTOFILL_CREDIT_CARD_SAVE_PROMPT_SHOWN ->
CreditCards.savePromptShown.record(NoExtras())

Component.FEATURE_PROMPTS to AddressAutofillDialogFacts.Items.AUTOFILL_ADDRESS_FORM_DETECTED ->
Addresses.formDetected.record(NoExtras())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,7 @@ class MetricControllerTest {
CreditCardAutofillDialogFacts.Items.AUTOFILL_CREDIT_CARD_PROMPT_DISMISSED to CreditCards.autofillPromptDismissed,
CreditCardAutofillDialogFacts.Items.AUTOFILL_CREDIT_CARD_CREATED to CreditCards.savePromptCreate,
CreditCardAutofillDialogFacts.Items.AUTOFILL_CREDIT_CARD_UPDATED to CreditCards.savePromptUpdate,
CreditCardAutofillDialogFacts.Items.AUTOFILL_CREDIT_CARD_SAVE_PROMPT_SHOWN to CreditCards.savePromptShown,
)

itemsToEvents.forEach { (item, event) ->
Expand Down

0 comments on commit 45a4b48

Please sign in to comment.