From ccd1cd663e5a521b2f05e3c66787cc33f10c6c33 Mon Sep 17 00:00:00 2001 From: xluo-mozilla <43585436+xluo-mozilla@users.noreply.github.com> Date: Thu, 10 Jan 2019 10:50:16 -0800 Subject: [PATCH] Create BQ Marketing Attributable CorpMetrics in Tier1.sql --- ... Marketing Attributable CorpMetrics in Tier1.sql | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Xuan/BQ Marketing Attributable CorpMetrics in Tier1.sql diff --git a/Xuan/BQ Marketing Attributable CorpMetrics in Tier1.sql b/Xuan/BQ Marketing Attributable CorpMetrics in Tier1.sql new file mode 100644 index 0000000..8fb8508 --- /dev/null +++ b/Xuan/BQ Marketing Attributable CorpMetrics in Tier1.sql @@ -0,0 +1,13 @@ +SELECT +submission_date_s3 AS submissionDate, +funnelOrigin AS funnelOrigin, +country, +sum(DAU) as DAU, +sum(activeDAU) as aDAU, +sum(installs) as installs, +sum(searches) as searches +FROM +`ga-mozilla-org-prod-001.telemetry.corpMetrics` +WHERE country in ('us', 'ca', 'de', 'fr', 'uk', 'gb') + AND funnelOrigin = "mozFunnel" +GROUP By 1,2,3