Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Issue #18711: Telemetry for credit card autofill #20909

Merged
merged 2 commits into from
Sep 7, 2021

Conversation

rocketsroger
Copy link
Contributor

@rocketsroger rocketsroger commented Aug 18, 2021

For #18711

Pull Request checklist

  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Screenshots: This PR includes screenshots or GIFs of the changes made or an explanation of why it does not
  • Accessibility: The code in this PR follows accessibility best practices or does not include any user facing features. In addition, it includes a screenshot of a successful accessibility scan to ensure no new defects are added to the product.

To download an APK when reviewing a PR:

  1. click on Show All Checks,
  2. click Details next to "Taskcluster (pull_request)" after it appears and then finishes with a green checkmark,
  3. click on the "Fenix - assemble" task, then click "Run Artifacts".
  4. the APK links should be on the left side of the screen, named for each CPU architecture

@rocketsroger rocketsroger added the pr:work-in-progress PRs that are not ready to be reviewed yet and are actively being worked on label Aug 18, 2021
@rocketsroger rocketsroger requested review from a team as code owners August 18, 2021 15:30
@rocketsroger rocketsroger changed the title Telemetry for credit card autofill Issue #18711: Telemetry for credit card autofill Aug 18, 2021
@rocketsroger rocketsroger added cc-autofill Autofill credit card and removed cc-autofill Autofill credit card labels Aug 18, 2021
@rocketsroger
Copy link
Contributor Author

@rocketsroger rocketsroger force-pushed the FB_18711 branch 2 times, most recently from 750611b to dbff02e Compare August 18, 2021 20:20
@mergify
Copy link
Contributor

mergify bot commented Aug 19, 2021

This pull request has conflicts when rebasing. Could you fix it @rocketsroger? 🙏

@rocketsroger
Copy link
Contributor Author

Request for data collection review form

All questions are mandatory. You must receive review from a data steward peer on your responses to these questions before shipping new data collection.

  1. What questions will you answer with this data?
  • This data will help us understand how users are interacting with credit cards and how they are using our autofill service. 

  1. Why does Mozilla need to answer these questions? Are there benefits for users? Do we need this information to address product or business requirements?
  • We are building out our services to include credit cards storage and autofill, and we need to know how useful this is for the users and how we can best serve them when it comes to their shopping experiences. This data will help us establish a baseline to make product decisions as we build out these services.

  1. What alternative methods did you consider to answer these questions? Why were they not sufficient?
  • There are no other alternatives.

  1. Can current instrumentation answer these questions?
  • No.

  1. List all proposed measurements and indicate the category of data collection for each measurement, using the Firefox data collection categories found on the Mozilla wiki.

    Note that the data steward reviewing your request will characterize your data collection based on the highest (and most sensitive) category.
Measurement Description Data Collection Category Tracking Bug #
Credit card saved: A counter of the number of credit cards that have been saved by the user. Category 2 - interaction data #18711
Credit card deleted: A counter of the number of credit cards that have been deleted by the user. Category 2 - interaction data #18711
Credit card modified: The User has modified a credit card. Category 2 - interaction data #18711
Credit card form detected: A credit card form has been detected. Category 2 - interaction data #18711
Credit card autofilled: A credit card has been autofilled to a website. Category 2 - interaction data #18711
Credit card autofill prompt shown: A credit card autofill prompt has been shown. Category 2 - interaction data #18711
Credit card autofill prompt expanded: A credit card autofill prompt has been expanded. Category 2 - interaction data #18711
Credit card autofill prompt dismissed: A credit card autofill prompt has been dismissed. Category 2 - interaction data #18711
Credit card management add tapped: the add credit card button was tapped management in credit card management. Category 2 - interaction data #18711
Credit card management card tapped: A credit card was tapped management in credit card management. Category 2 - interaction data #18711
  1. Please provide a link to the documentation for this data collection which describes the ultimate data set in a public, complete, and accurate way.
  1. How long will this data be collected? Choose one of the following:
  • One year (ending on September 1st, 2022), with the option to renew at that point.

  1. What populations will you measure?
  • All channels, all locales, all countries

  1. If this data collection is default on, what is the opt-out mechanism for users?
  • Default Glean SDK opt-out mechanism.

  1. Please provide a general description of how you will analyze this data.
  • Glean and Amplitude.

  1. Where do you intend to share the results of your analysis?
  • 
Only on Glean, Amplitude, and with mobile teams.

  1. Is there a third-party tool (i.e. not Telemetry) that you are proposing to use for this data collection?
  • No third-party tools.

@rocketsroger rocketsroger added the needs:data-review PR is awaiting a data review label Aug 19, 2021
@rocketsroger rocketsroger added needs:ac Needs Android Component Work needs:review PRs that need to be reviewed and removed pr:work-in-progress PRs that are not ready to be reviewed yet and are actively being worked on labels Aug 21, 2021
@badboy badboy requested a review from Dexterp37 August 23, 2021 11:17
@badboy
Copy link
Member

badboy commented Aug 23, 2021

Looping in @Dexterp37 for another set of Glean eyes. As I guided Roger through this it might be good to have someone not familiar yet review this briefly.

app/metrics.yaml Outdated
Comment on lines 5864 to 5865
send_in_pings:
- metrics
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this intentional? Events are usually sent in the events ping. Note that you can also leave this property out for Glean to send the data automatically in the correct ping.

app/metrics.yaml Outdated
Comment on lines 5879 to 5880
send_in_pings:
- metrics
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As above: this applies to all the other event metrics added to this file.

app/metrics.yaml Outdated
Comment on lines 5818 to 5819
send_in_pings:
- metrics
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this property is not required, unless you specify a custom ping. This applies to the other definitions as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Understood. I'll remove the send_in_pings property. Thanks!

@mergify
Copy link
Contributor

mergify bot commented Aug 24, 2021

This pull request has conflicts when rebasing. Could you fix it @rocketsroger? 🙏

Copy link
Contributor

@eliserichards eliserichards left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am wondering how we decided which of these are metrics counters vs events? Is there a link to a list somewhere where I can double check?

@eliserichards eliserichards removed the needs:review PRs that need to be reviewed label Aug 25, 2021
@badboy
Copy link
Member

badboy commented Aug 26, 2021

I am wondering how we decided which of these are metrics counters vs events? Is there a link to a list somewhere where I can double check?

Kimberly provided the initial specs, see this spreadsheet, Roger reviewed that and I also gave it a look.

@rocketsroger rocketsroger added needs:review PRs that need to be reviewed and removed needs:ac Needs Android Component Work labels Sep 7, 2021
@travis79
Copy link
Member

travis79 commented Sep 7, 2021

Request for data collection review form

All questions are mandatory. You must receive review from a data steward peer on your responses to these questions before shipping new data collection.

1. What questions will you answer with this data?


* This data will help us understand how users are interacting with credit cards and how they are using our autofill service.


1. Why does Mozilla need to answer these questions? Are there benefits for users? Do we need this information to address product or business requirements?


* We are building out our services to include credit cards storage and autofill, and we need to know how useful this is for the users and how we can best serve them when it comes to their shopping experiences. This data will help us establish a baseline to make product decisions as we build out these services.


1. What alternative methods did you consider to answer these questions? Why were they not sufficient?


* There are no other alternatives.


1. Can current instrumentation answer these questions?


* No.


1. List all proposed measurements and indicate the category of data collection for each measurement, using the Firefox data collection categories found on the Mozilla wiki.
   
   Note that the data steward reviewing your request will characterize your data collection based on the highest (and most sensitive) category.

Measurement Description Data Collection Category Tracking Bug #
Credit card saved: A counter of the number of credit cards that have been saved by the user. Category 2 - interaction data #18711
Credit card deleted: A counter of the number of credit cards that have been deleted by the user. Category 2 - interaction data #18711
Credit card modified: The User has modified a credit card. Category 2 - interaction data #18711
Credit card form detected: A credit card form has been detected. Category 2 - interaction data #18711
Credit card autofilled: A credit card has been autofilled to a website. Category 2 - interaction data #18711
Credit card autofill prompt shown: A credit card autofill prompt has been shown. Category 2 - interaction data #18711
Credit card autofill prompt expanded: A credit card autofill prompt has been expanded. Category 2 - interaction data #18711
Credit card autofill prompt dismissed: A credit card autofill prompt has been dismissed. Category 2 - interaction data #18711
Credit card management add tapped: the add credit card button was tapped management in credit card management. Category 2 - interaction data #18711
Credit card management card tapped: A credit card was tapped management in credit card management. Category 2 - interaction data #18711

1. Please provide a link to the documentation for this data collection which describes the ultimate data set in a public, complete, and accurate way.


* [https://dictionary.telemetry.mozilla.org/apps/fenix
  ](https://dictionary.telemetry.mozilla.org/apps/fenix%E2%80%A8)


1. How long will this data be collected? Choose one of the following:


* One year (ending on September 1st, 2022), with the option to renew at that point.


1. What populations will you measure?


* All channels, all locales, all countries


1. If this data collection is default on, what is the opt-out mechanism for users?


* Default Glean SDK opt-out mechanism.


1. Please provide a general description of how you will analyze this data.


* Glean and Amplitude.


1. Where do you intend to share the results of your analysis?


* Only on Glean, Amplitude, and with mobile teams.


1. Is there a third-party tool (i.e. not Telemetry) that you are proposing to use for this data collection?


* No third-party tools.

Data Review

  1. Is there or will there be documentation that describes the schema for the ultimate data set in a public, complete, and accurate way?

Yes, through the metrics.yaml file and the Glean Dictionary

  1. Is there a control mechanism that allows the user to turn the data collection on and off?

Yes, through the "Send Usage Data" preference in the application settings

  1. If the request is for permanent data collection, is there someone who will monitor the data over time?

N/A, collection set to end or be renewed by 2022-09-01

  1. Using the category system of data types on the Mozilla wiki, what collection type of data do the requested measurements fall under?

Category 2, Interaction data

  1. Is the data collection request for default-on or default-off?

default-on

  1. Does the instrumentation include the addition of any new identifiers?

No

  1. Is the data collection covered by the existing Firefox privacy notice?

Yes

  1. Does the data collection use a third-party collection tool?

No

Result

data-review+

@travis79 travis79 removed the needs:data-review PR is awaiting a data review label Sep 7, 2021
Copy link
Contributor

@eliserichards eliserichards left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! 👏 :shipit:

@eliserichards eliserichards added pr:approved PR that has been approved and removed needs:review PRs that need to be reviewed labels Sep 7, 2021
@rocketsroger rocketsroger added the pr:needs-landing PRs that are ready to land [Will be merged by Mergify] label Sep 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pr:approved PR that has been approved pr:needs-landing PRs that are ready to land [Will be merged by Mergify]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants