From a4512d9661994eaa6b56b16ddd21c0bf1e84d969 Mon Sep 17 00:00:00 2001 From: Katie Windau <153020235+kwindau@users.noreply.github.com> Date: Tue, 13 Feb 2024 13:45:28 -0600 Subject: [PATCH] DENG-2492 update product dl types (#5032) --- .../ga_derived/www_site_downloads_v2/query.sql | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/sql/moz-fx-data-marketing-prod/ga_derived/www_site_downloads_v2/query.sql b/sql/moz-fx-data-marketing-prod/ga_derived/www_site_downloads_v2/query.sql index 8dff3693f4..4f54552da3 100644 --- a/sql/moz-fx-data-marketing-prod/ga_derived/www_site_downloads_v2/query.sql +++ b/sql/moz-fx-data-marketing-prod/ga_derived/www_site_downloads_v2/query.sql @@ -24,7 +24,18 @@ WHERE _TABLE_SUFFIX = FORMAT_DATE('%Y%m%d', @submission_date) AND e.key = 'ga_session_id' AND e.value.int_value IS NOT NULL - AND a.event_name = 'product_download' + AND ( + (a.event_name = 'product_download' AND a.event_date <= '20240216') + OR ( + a.event_name IN ( + 'firefox_download', + 'focus_download', + 'klar_download', + 'firefox_mobile_download' + ) + AND a.event_date > '20240216' + ) + ) GROUP BY date, visit_identifier,