From 8abcf8a3b48e5d06578374e6002b96f0d494dd7b Mon Sep 17 00:00:00 2001 From: Daniel Berry Date: Wed, 20 Nov 2024 15:11:09 -0500 Subject: [PATCH] Update pin-email-and-calendar-tabs-existing-user.toml (#691) --- ...mail-and-calendar-tabs-early-day-user.toml | 58 ++++++++++++++++--- ...email-and-calendar-tabs-existing-user.toml | 58 ++++++++++++++++--- 2 files changed, 102 insertions(+), 14 deletions(-) diff --git a/jetstream/pin-email-and-calendar-tabs-early-day-user.toml b/jetstream/pin-email-and-calendar-tabs-early-day-user.toml index f229712f..c577dfa1 100644 --- a/jetstream/pin-email-and-calendar-tabs-early-day-user.toml +++ b/jetstream/pin-email-and-calendar-tabs-early-day-user.toml @@ -21,34 +21,78 @@ overall = [ [metrics.any_pinned_tab_rate] select_expression = """ - CAST(COALESCE(SUM(payload.processes.parent.scalars.browser_engagement_tab_pinned_event_count), 0) > 0 AS INT64) + CAST(COALESCE(SUM(browser_engagement_tab_pinned_event_count), 0) > 0 AS INT64) """ friendly_name = "Any pinned tab rate" description = "Proportion of sessions where at least one tab was pinned." -data_source = "main" +data_source = "main_filtered" type = "scalar" [metrics.any_pinned_tab_rate.statistics.binomial] [metrics.more_than_one_pinned_tab_rate] select_expression = """ - CAST(COALESCE(SUM(payload.processes.parent.scalars.browser_engagement_tab_pinned_event_count), 0) > 1 AS INT64) + CAST(COALESCE(SUM(browser_engagement_tab_pinned_event_count), 0) > 1 AS INT64) """ friendly_name = "More than one pinned tab rate" description = "Proportion of sessions where more than one tab was pinned." -data_source = "main" +data_source = "main_filtered" type = "scalar" [metrics.more_than_one_pinned_tab_rate.statistics.binomial] # The number of tab pin events within a subsession +[metrics.tab_pinned_event_count] +select_expression = """ + COALESCE(SUM(browser_engagement_tab_pinned_event_count), 0) +""" +friendly_name = "More than one pinned tab rate" +description = "Proportion of sessions where more than one tab was pinned." +data_source = "main_filtered" +type = "scalar" [metrics.tab_pinned_event_count.statistics.bootstrap_mean] -[metrics.tab_pinned_event_count.statistics.deciles] +#[metrics.tab_pinned_event_count.statistics.deciles] # The maximum number of pinned tabs open during a subsession. +[metrics.concurrent_pinned_tab_count] +select_expression = """ + COALESCE(SUM(browser_engagement_max_concurrent_tab_pinned_count), 0) +""" +friendly_name = "More than one pinned tab rate" +description = "Proportion of sessions where more than one tab was pinned." +data_source = "main_filtered" +type = "scalar" [metrics.concurrent_pinned_tab_count.statistics.bootstrap_mean] -[metrics.concurrent_pinned_tab_count.statistics.deciles] +#[metrics.concurrent_pinned_tab_count.statistics.deciles] # The count of tab reload events by the user after unloaded -- a proxy for returning to pinned tabs. +[metrics.tab_reload_count] +select_expression = """ + COALESCE(SUM(browser_engagement_tab_reload_count), 0) +""" +friendly_name = "More than one pinned tab rate" +description = "Proportion of sessions where more than one tab was pinned." +data_source = "main_filtered" +type = "scalar" [metrics.tab_reload_count.statistics.bootstrap_mean] -[metrics.tab_reload_count.statistics.deciles] +#[metrics.tab_reload_count.statistics.deciles] + +[data_sources] +[data_sources.main_filtered] + +from_expression = """( + SELECT + client_id, + payload.processes.parent.scalars.browser_engagement_tab_pinned_event_count AS browser_engagement_tab_pinned_event_count, + payload.processes.parent.scalars.browser_engagement_max_concurrent_tab_pinned_count AS browser_engagement_max_concurrent_tab_pinned_count, + payload.processes.parent.scalars.browser_engagement_tab_reload_count AS browser_engagement_tab_reload_count, + DATE(submission_timestamp) AS submission_date, + environment.experiments + FROM `moz-fx-data-shared-prod.telemetry_stable.main_v5` + WHERE + DATE(submission_timestamp) BETWEEN '2024-07-29' AND '2024-10-03' + AND normalized_channel = 'release' +)""" +experiments_column_type = "native" +friendly_name = "Main" +description = "Main ping table" diff --git a/jetstream/pin-email-and-calendar-tabs-existing-user.toml b/jetstream/pin-email-and-calendar-tabs-existing-user.toml index 6442f4ae..22dce877 100644 --- a/jetstream/pin-email-and-calendar-tabs-existing-user.toml +++ b/jetstream/pin-email-and-calendar-tabs-existing-user.toml @@ -21,34 +21,78 @@ overall = [ [metrics.any_pinned_tab_rate] select_expression = """ - CAST(COALESCE(SUM(payload.processes.parent.scalars.browser_engagement_tab_pinned_event_count), 0) > 0 AS INT64) + CAST(COALESCE(SUM(browser_engagement_tab_pinned_event_count), 0) > 0 AS INT64) """ friendly_name = "Any pinned tab rate" description = "Proportion of sessions where at least one tab was pinned." -data_source = "main" +data_source = "main_filtered" type = "scalar" [metrics.any_pinned_tab_rate.statistics.binomial] [metrics.more_than_one_pinned_tab_rate] select_expression = """ - CAST(COALESCE(SUM(payload.processes.parent.scalars.browser_engagement_tab_pinned_event_count), 0) > 1 AS INT64) + CAST(COALESCE(SUM(browser_engagement_tab_pinned_event_count), 0) > 1 AS INT64) """ friendly_name = "More than one pinned tab rate" description = "Proportion of sessions where more than one tab was pinned." -data_source = "main" +data_source = "main_filtered" type = "scalar" [metrics.more_than_one_pinned_tab_rate.statistics.binomial] # The number of tab pin events within a subsession +[metrics.tab_pinned_event_count] +select_expression = """ + COALESCE(SUM(browser_engagement_tab_pinned_event_count), 0) +""" +friendly_name = "More than one pinned tab rate" +description = "Proportion of sessions where more than one tab was pinned." +data_source = "main_filtered" +type = "scalar" [metrics.tab_pinned_event_count.statistics.bootstrap_mean] -[metrics.tab_pinned_event_count.statistics.deciles] +#[metrics.tab_pinned_event_count.statistics.deciles] # The maximum number of pinned tabs open during a subsession. +[metrics.concurrent_pinned_tab_count] +select_expression = """ + COALESCE(SUM(browser_engagement_max_concurrent_tab_pinned_count), 0) +""" +friendly_name = "More than one pinned tab rate" +description = "Proportion of sessions where more than one tab was pinned." +data_source = "main_filtered" +type = "scalar" [metrics.concurrent_pinned_tab_count.statistics.bootstrap_mean] -[metrics.concurrent_pinned_tab_count.statistics.deciles] +#[metrics.concurrent_pinned_tab_count.statistics.deciles] # The count of tab reload events by the user after unloaded -- a proxy for returning to pinned tabs. +[metrics.tab_reload_count] +select_expression = """ + COALESCE(SUM(browser_engagement_tab_reload_count), 0) +""" +friendly_name = "More than one pinned tab rate" +description = "Proportion of sessions where more than one tab was pinned." +data_source = "main_filtered" +type = "scalar" [metrics.tab_reload_count.statistics.bootstrap_mean] -[metrics.tab_reload_count.statistics.deciles] +#[metrics.tab_reload_count.statistics.deciles] + +[data_sources] +[data_sources.main_filtered] + +from_expression = """( + SELECT + client_id, + payload.processes.parent.scalars.browser_engagement_tab_pinned_event_count AS browser_engagement_tab_pinned_event_count, + payload.processes.parent.scalars.browser_engagement_max_concurrent_tab_pinned_count AS browser_engagement_max_concurrent_tab_pinned_count, + payload.processes.parent.scalars.browser_engagement_tab_reload_count AS browser_engagement_tab_reload_count, + DATE(submission_timestamp) AS submission_date, + environment.experiments + FROM `moz-fx-data-shared-prod.telemetry_stable.main_v5` + WHERE + DATE(submission_timestamp) BETWEEN '2024-07-29' AND '2024-09-10' + AND normalized_channel = 'release' +)""" +experiments_column_type = "native" +friendly_name = "Main" +description = "Main ping table"