Skip to content

Commit 828c41d

Browse files
authored
Merge branch 'main' into fr_billboard_opmon
2 parents 10e2ec0 + 573b917 commit 828c41d

File tree

3 files changed

+186
-0
lines changed

3 files changed

+186
-0
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
[experiment]
2+
enrollment_query = """
3+
WITH enrollments_raw AS (
4+
SELECT
5+
e.client_id AS analysis_id,
6+
`mozfun.map.get_key`(e.event_map_values, 'branch')
7+
AS branch,
8+
MIN(e.submission_date) AS enrollment_date,
9+
COUNT(e.submission_date) AS num_enrollment_events
10+
FROM
11+
`moz-fx-data-shared-prod.telemetry.events` e
12+
WHERE
13+
e.event_category = 'normandy'
14+
AND e.event_method = 'enroll'
15+
AND e.submission_date
16+
BETWEEN '2025-06-20' AND '2025-07-01'
17+
AND e.event_string_value = 'desktop-address-autofill-austria-release-holdback'
18+
AND e.sample_id < 10
19+
GROUP BY e.client_id, branch
20+
), non_dupes AS (
21+
SELECT
22+
analysis_id, COUNT(*) AS n_rows
23+
FROM enrollments_raw
24+
GROUP BY 1
25+
HAVING n_rows = 1
26+
), cleaned AS (
27+
SELECT er.*
28+
FROM enrollments_raw er
29+
INNER JOIN non_dupes
30+
USING(analysis_id)
31+
WHERE num_enrollment_events = 1
32+
)
33+
SELECT *
34+
FROM cleaned
35+
"""
36+
37+
38+
[experiment.exposure_signal]
39+
name = "credit_card_form_detect"
40+
friendly_name = "Credit Card Form Detected"
41+
description = "Clients who have credit card form detected"
42+
data_source = "credit_card_autofill"
43+
select_expression = "COALESCE(event_name = 'detected_cc_form_v2', FALSE)"
44+
window_start = 0
45+
window_end = 7
46+
47+
[data_sources.credit_card_autofill]
48+
from_expression = """(
49+
SELECT
50+
legacy_telemetry_client_id as client_id,
51+
DATE(submission_timestamp) as submission_date,
52+
event_name
53+
FROM
54+
`mozdata.firefox_desktop.events_stream`
55+
WHERE
56+
event_category IN ('creditcard')
57+
AND event_name IN ('detected_cc_form_v2') --, 'filled_cc_form_v2', 'submitted_cc_form_v2', 'popup_shown_cc_form_v2')
58+
GROUP BY 1, 2, 3
59+
)"""
60+
experiments_column_type = "none"
61+
friendly_name = "Credit Card Autofill"
62+
description = "Clients who have used the credit card autofill feature"
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
[experiment]
2+
enrollment_query = """
3+
WITH enrollments_raw AS (
4+
SELECT
5+
e.client_id AS analysis_id,
6+
`mozfun.map.get_key`(e.event_map_values, 'branch')
7+
AS branch,
8+
MIN(e.submission_date) AS enrollment_date,
9+
COUNT(e.submission_date) AS num_enrollment_events
10+
FROM
11+
`moz-fx-data-shared-prod.telemetry.events` e
12+
WHERE
13+
e.event_category = 'normandy'
14+
AND e.event_method = 'enroll'
15+
AND e.submission_date
16+
BETWEEN '2025-06-20' AND '2025-07-01'
17+
AND e.event_string_value = 'desktop-address-autofill-italy-release-holdback'
18+
AND e.sample_id < 10
19+
GROUP BY e.client_id, branch
20+
), non_dupes AS (
21+
SELECT
22+
analysis_id, COUNT(*) AS n_rows
23+
FROM enrollments_raw
24+
GROUP BY 1
25+
HAVING n_rows = 1
26+
), cleaned AS (
27+
SELECT er.*
28+
FROM enrollments_raw er
29+
INNER JOIN non_dupes
30+
USING(analysis_id)
31+
WHERE num_enrollment_events = 1
32+
)
33+
SELECT *
34+
FROM cleaned
35+
"""
36+
37+
38+
[experiment.exposure_signal]
39+
name = "credit_card_form_detect"
40+
friendly_name = "Credit Card Form Detected"
41+
description = "Clients who have credit card form detected"
42+
data_source = "credit_card_autofill"
43+
select_expression = "COALESCE(event_name = 'detected_cc_form_v2', FALSE)"
44+
window_start = 0
45+
window_end = 7
46+
47+
[data_sources.credit_card_autofill]
48+
from_expression = """(
49+
SELECT
50+
legacy_telemetry_client_id as client_id,
51+
DATE(submission_timestamp) as submission_date,
52+
event_name
53+
FROM
54+
`mozdata.firefox_desktop.events_stream`
55+
WHERE
56+
event_category IN ('creditcard')
57+
AND event_name IN ('detected_cc_form_v2') --, 'filled_cc_form_v2', 'submitted_cc_form_v2', 'popup_shown_cc_form_v2')
58+
GROUP BY 1, 2, 3
59+
)"""
60+
experiments_column_type = "none"
61+
friendly_name = "Credit Card Autofill"
62+
description = "Clients who have used the credit card autofill feature"
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
[experiment]
2+
enrollment_query = """
3+
WITH enrollments_raw AS (
4+
SELECT
5+
e.client_id AS analysis_id,
6+
`mozfun.map.get_key`(e.event_map_values, 'branch')
7+
AS branch,
8+
MIN(e.submission_date) AS enrollment_date,
9+
COUNT(e.submission_date) AS num_enrollment_events
10+
FROM
11+
`moz-fx-data-shared-prod.telemetry.events` e
12+
WHERE
13+
e.event_category = 'normandy'
14+
AND e.event_method = 'enroll'
15+
AND e.submission_date
16+
BETWEEN '2025-06-20' AND '2025-07-01'
17+
AND e.event_string_value = 'desktop-address-autofill-poland-release-holdback'
18+
AND e.sample_id < 10
19+
GROUP BY e.client_id, branch
20+
), non_dupes AS (
21+
SELECT
22+
analysis_id, COUNT(*) AS n_rows
23+
FROM enrollments_raw
24+
GROUP BY 1
25+
HAVING n_rows = 1
26+
), cleaned AS (
27+
SELECT er.*
28+
FROM enrollments_raw er
29+
INNER JOIN non_dupes
30+
USING(analysis_id)
31+
WHERE num_enrollment_events = 1
32+
)
33+
SELECT *
34+
FROM cleaned
35+
"""
36+
37+
38+
[experiment.exposure_signal]
39+
name = "credit_card_form_detect"
40+
friendly_name = "Credit Card Form Detected"
41+
description = "Clients who have credit card form detected"
42+
data_source = "credit_card_autofill"
43+
select_expression = "COALESCE(event_name = 'detected_cc_form_v2', FALSE)"
44+
window_start = 0
45+
window_end = 7
46+
47+
[data_sources.credit_card_autofill]
48+
from_expression = """(
49+
SELECT
50+
legacy_telemetry_client_id as client_id,
51+
DATE(submission_timestamp) as submission_date,
52+
event_name
53+
FROM
54+
`mozdata.firefox_desktop.events_stream`
55+
WHERE
56+
event_category IN ('creditcard')
57+
AND event_name IN ('detected_cc_form_v2') --, 'filled_cc_form_v2', 'submitted_cc_form_v2', 'popup_shown_cc_form_v2')
58+
GROUP BY 1, 2, 3
59+
)"""
60+
experiments_column_type = "none"
61+
friendly_name = "Credit Card Autofill"
62+
description = "Clients who have used the credit card autofill feature"

0 commit comments

Comments
 (0)