This repository has been archived by the owner on Jan 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathbug-1695794-pref-new-tab-modernized-ux-region-1-existing-users-e-release-86-88.toml
160 lines (112 loc) · 4.47 KB
/
bug-1695794-pref-new-tab-modernized-ux-region-1-existing-users-e-release-86-88.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
[experiment]
segments = ["attributed", "non_attributed"]
enrollment_period = 13
end_date = "2021-05-28"
reference_branch = "newtab-control"
## data sources
[data_sources]
## data source: AS session pings data
[data_sources.as_session_ping]
from_expression = "(SELECT client_id, user_prefs, experiments, date(submission_timestamp) as submission_date FROM `moz-fx-data-shared-prod.activity_stream.sessions`)"
experiments_column_type = "native"
## Segments
[segments]
[segments.attributed]
select_expression = 'max(attr_source is not null)'
data_source = "npp"
[segments.non_attributed]
select_expression = 'max(attr_source is null)'
data_source = "npp"
[segments.data_sources.npp]
from_expression = """
(SELECT
DATE(submission_timestamp) AS submission_date,
client_id,
environment.settings.attribution.source AS attr_source
FROM `moz-fx-data-shared-prod.telemetry.new_profile`
WHERE environment.partner.distribution_id IS NULL
AND coalesce(environment.settings.attribution.ua, '') != 'firefox'
)
"""
window_start = -2
window_end = 0
## metrics
[metrics]
overall = ['days_of_use', 'search_count', 'organic_search_count', 'unenroll',
'pocket_rec_clicks', 'pocket_spoc_clicks', 'homepage_search_count',
'topsite_clicks', 'highlight_clicks', 'homepage_switch',
'turned_off_search', 'turned_off_topsites', 'turned_off_pocket',
'turned_off_highlights']
weekly = ['days_of_use', 'search_count', 'organic_search_count', 'unenroll',
'pocket_rec_clicks', 'pocket_spoc_clicks', 'homepage_search_count',
'topsite_clicks', 'highlight_clicks', 'homepage_switch',
'turned_off_search', 'turned_off_topsites', 'turned_off_pocket',
'turned_off_highlights']
[metrics.pocket_rec_clicks.statistics.bootstrap_mean]
[metrics.pocket_spoc_clicks.statistics.bootstrap_mean]
[metrics.unenroll.statistics.binomial]
## homepage_search_count
[metrics.homepage_search_count]
select_expression = "SUM(CASE WHEN source IN ('newtab','abouthome') THEN sap ELSE 0 END)"
data_source = 'search_clients_daily'
[metrics.homepage_search_count.statistics.bootstrap_mean]
## topsite_clicks
[metrics.topsite_clicks]
select_expression = """COUNTIF(
event = 'CLICK'
AND source = 'TOP_SITES')"""
data_source = 'activity_stream_events'
[metrics.topsite_clicks.statistics.bootstrap_mean]
## highlight_clicks
[metrics.highlight_clicks]
select_expression = """COUNTIF(
event = 'CLICK'
AND source = 'HIGHLIGHTS')"""
data_source = 'activity_stream_events'
[metrics.highlight_clicks.statistics.bootstrap_mean]
## homepage_switch
# NOTE: this metric doesn't take into account users setting their page to
# blank. Only when users have set the page to a 3rd party!
[metrics.homepage_switch]
select_expression = """COALESCE(MAX(
CASE WHEN event = 'PAGE_TAKEOVER_DATA'
THEN true ELSE false END), false)"""
data_source = 'activity_stream_events'
bigger_is_better = false
[metrics.homepage_switch.statistics.binomial]
## turned_off_search
# NOTE: true here means we know they turned it off
# any other value can mean they didn't, or we don't know
[metrics.turned_off_search]
select_expression = """COALESCE(MAX(
user_prefs & 1 = 0), false)"""
data_source = 'as_session_ping'
bigger_is_better = false
[metrics.turned_off_search.statistics.binomial]
## turned_off_topsites
# NOTE: true here means we know they turned it off
# any other value can mean they didn't, or we don't know
[metrics.turned_off_topsites]
select_expression = """COALESCE(MAX(
user_prefs & 2 = 0), false)"""
data_source = 'as_session_ping'
bigger_is_better = false
[metrics.turned_off_topsites.statistics.binomial]
## turned_off_pocket
# NOTE: true here means we know they turned it off
# any other value can mean they didn't, or we don't know
[metrics.turned_off_pocket]
select_expression = """COALESCE(MAX(
user_prefs & 4 = 0), false)"""
data_source = 'as_session_ping'
bigger_is_better = false
[metrics.turned_off_pocket.statistics.binomial]
## turned_off_highlights
# NOTE: true here means we know they turned it off
# any other value can mean they didn't, or we don't know
[metrics.turned_off_highlights]
select_expression = """COALESCE(MAX(
user_prefs & 8 = 0), false)"""
data_source = 'as_session_ping'
bigger_is_better = false
[metrics.turned_off_highlights.statistics.binomial]