From 93a0980d2723248fe614d384ee8d0dabc88a1e59 Mon Sep 17 00:00:00 2001 From: Ashwin Agarwal Date: Tue, 26 Jul 2022 19:06:16 -0400 Subject: [PATCH] New metrics and ping for managing user enrollment in multi-customer datasets --- web-platform/glean/metrics.yaml | 47 +++++++++++++++++++++++++++++++++ web-platform/glean/pings.yaml | 14 ++++++++++ 2 files changed, 61 insertions(+) diff --git a/web-platform/glean/metrics.yaml b/web-platform/glean/metrics.yaml index 0760141c..132642b6 100644 --- a/web-platform/glean/metrics.yaml +++ b/web-platform/glean/metrics.yaml @@ -246,3 +246,50 @@ user: notification_emails: - than@mozilla.com expires: never + +project_enrollment_status: + project_id: + type: string + lifetime: ping + send_in_pings: + - project-enrollment + description: | + The id of project which data will be filtered into. + bugs: + - https://github.com/mozilla-rally/rally/issues/123 + data_reviews: [] + notification_emails: + - than@mozilla.com + - aagarwal@mozilla.com + - rhelmer@mozilla.com + expires: never + data_source: + type: string + lifetime: ping + send_in_pings: + - project-enrollment + description: | + The id of the study from which data will be taken from. + bugs: + - https://github.com/mozilla-rally/rally/issues/123 + data_reviews: [] + notification_emails: + - than@mozilla.com + - aagarwal@mozilla.com + - rhelmer@mozilla.com + expires: never + enrolled: + type: boolean + lifetime: ping + send_in_pings: + - project-enrollment + description: | + Whether the user has opted in or opted out of the project. + bugs: + - https://github.com/mozilla-rally/rally/issues/123 + data_reviews: [] + notification_emails: + - than@mozilla.com + - aagarwal@mozilla.com + - rhelmer@mozilla.com + expires: never diff --git a/web-platform/glean/pings.yaml b/web-platform/glean/pings.yaml index 3a1af168..b70a32b6 100644 --- a/web-platform/glean/pings.yaml +++ b/web-platform/glean/pings.yaml @@ -59,6 +59,20 @@ study-unenrollment: notification_emails: - than@mozilla.com +project-enrollment: + description: | + This ping is sent when a user changes their opt-in/opt-out consent + for a particular project in a multiproject data set. + include_client_id: false + send_if_empty: true + bugs: + - https://github.com/mozilla-rally/rally/issues/123 + data_reviews: [] + notification_emails: + - than@mozilla.com + - aagarwal@mozilla.com + - rhelmer@mozilla.com + demographics: description: | After a user joins the platform they are asked to fill a