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 pathandroid-nightly-sponsored-shortcuts-validation.toml
124 lines (104 loc) · 3.75 KB
/
android-nightly-sponsored-shortcuts-validation.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
# experiment: android-nightly-sponsored-tiles-validation
[experiment]
# interested in users who are eligible for treatment in both branches: those that open homescreen
# also interested in retention rates for new users
segments = ["opened_homescreen"] #, "new_or_resurrected_fenix"]
[segments.data_sources.events_unnested]
from_expression = """(
SELECT
client_info.client_id as client_id,
CAST(submission_timestamp as DATE) as submission_date,
*
FROM
`mozdata.fenix.events_unnested`
)"""
window_start = 0
window_end = 28
[segments.opened_homescreen]
select_expression = """
COALESCE(CAST(MAX(
CASE WHEN event_category = 'home_screen'
AND event_name = 'home_screen_displayed'
THEN 1
ELSE 0
END
) AS BOOL), FALSE)
"""
data_source = "events_unnested"
[metrics]
daily = ["new_profile_retention",
"spoc_tiles_impressions", "spoc_tiles_clicks", "spoc_tiles_disable_rate",
"pocket_story_impressions", "pocket_story_clicks"]
weekly = ["new_profile_retention",
"spoc_tiles_impressions", "spoc_tiles_clicks", "spoc_tiles_disable_rate",
"pocket_story_impressions", "pocket_story_clicks"]
overall = ["spoc_tiles_impressions", "spoc_tiles_clicks", "spoc_tiles_disable_rate",
"pocket_story_impressions", "pocket_story_clicks"]
### New Profile Retention
[metrics.new_profile_retention]
friendly_name = "New Profile Retention"
description = "New profiles defined as those first seen during the first week (enrollment period) of the experiment."
select_expression = """COALESCE(COUNT(
CASE WHEN PARSE_DATETIME('%Y %m %d %H:%M', REPLACE(REPLACE(client_info.first_run_date, '+', ' '), '-', ' ')) between '2022-03-16' and '2022-03-22'
THEN document_id ELSE NULL END), 0) > 0
"""
data_source = "baseline"
[metrics.new_profile_retention.statistics.binomial]
#### Copied rest of metrics from files in jetstream-config/outcomes/fenix
#### Metrics are not set to render for all experiments by default
[metrics.spoc_tiles_impressions]
friendly_name = "Sponsored Tiles Impressions"
description = "Number of times Contile Sponsored Tiles are shown."
select_expression = """
COALESCE(COUNTIF(
event.category = 'top_sites'
AND event.name = 'contile_impression'
),0)
"""
data_source = "events"
statistics = { bootstrap_mean = {}, deciles = {} }
[metrics.spoc_tiles_clicks]
friendly_name = "Sponsored Tiles Clicks"
description = "Number of times user clicked a Contile Sponsored Tile."
select_expression = """
COALESCE(COUNTIF(
event.category = 'top_sites'
AND event.name = 'contile_click'
),0)
"""
data_source = "events"
statistics = { bootstrap_mean = {}, deciles = {} }
[metrics.spoc_tiles_disable_rate]
select_expression = """
COALESCE(MAX(
CAST(
metrics.boolean.customize_home_contile AS int )
),0)
"""
data_source = "metrics"
bigger_is_better = false
friendly_name = "Sponsored Tiles Disable Rate"
description = "Fraction of users who disable Contile Sponsored Tiles"
[metrics.spoc_tiles_disable_rate.statistics.binomial]
[metrics.pocket_story_impressions]
friendly_name = "Pocket Impressions"
description = "Number of times Pocket recommended stories are shown on the home screen."
select_expression = """
COALESCE(COUNTIF(
event.category = 'pocket'
AND event.name = 'home_recs_shown'
),0)
"""
data_source = "events"
statistics = { bootstrap_mean = {}, deciles = {} }
[metrics.pocket_story_clicks]
friendly_name = "Pocket Story Clicks"
description = "Number of times user tapped a Pocket recommended story to be opened."
select_expression = """
COALESCE(COUNTIF(
event.category = 'pocket'
AND event.name = 'home_recs_story_clicked'
),0)
"""
data_source = "events"
statistics = { bootstrap_mean = {}, deciles = {} }