DENG-2938 Update product download logic to limit to Firefox Desktop downloads only in www_site_landing_page_metrics_v2 (#5158)
* DENG-2938 - update schema column descriptions for product download columns * DENG-2938 - update product download logic to be firefox desktop only * DENG-2938 add backticks around date
This commit is contained in:
Родитель
c3e4c5984d
Коммит
0c4652f0f2
|
@ -23,29 +23,41 @@ SELECT
|
|||
IF(NOT `moz-fx-data-shared-prod.udf.ga_is_mozilla_browser`(browser), entrances, 0)
|
||||
) AS non_fx_sessions,
|
||||
COUNTIF(
|
||||
(date <= '2024-02-16' AND event_name = 'product_download')
|
||||
OR (
|
||||
date > '2024-02-16'
|
||||
AND event_name IN (
|
||||
'firefox_download',
|
||||
'focus_download',
|
||||
'klar_download',
|
||||
'firefox_mobile_download'
|
||||
(
|
||||
`date` <= '2024-02-16'
|
||||
AND event_name = 'product_download'
|
||||
AND product_type = 'firefox'
|
||||
AND platform_type IN (
|
||||
'win',
|
||||
'win64',
|
||||
'macos',
|
||||
'linux64',
|
||||
'win64-msi',
|
||||
'linux',
|
||||
'win-msi',
|
||||
'win64-aarch64'
|
||||
)
|
||||
)
|
||||
OR (`date` > '2024-02-16' AND event_name = 'firefox_download')
|
||||
) AS downloads,
|
||||
COUNTIF(
|
||||
(
|
||||
(date <= '2024-02-16' AND event_name = 'product_download')
|
||||
OR (
|
||||
date > '2024-02-16'
|
||||
AND event_name IN (
|
||||
'firefox_download',
|
||||
'focus_download',
|
||||
'klar_download',
|
||||
'firefox_mobile_download'
|
||||
(
|
||||
`date` <= '2024-02-16'
|
||||
AND event_name = 'product_download'
|
||||
AND product_type = 'firefox'
|
||||
AND platform_type IN (
|
||||
'win',
|
||||
'win64',
|
||||
'macos',
|
||||
'linux64',
|
||||
'win64-msi',
|
||||
'linux',
|
||||
'win-msi',
|
||||
'win64-aarch64'
|
||||
)
|
||||
)
|
||||
OR (`date` > '2024-02-16' AND event_name = 'firefox_download')
|
||||
)
|
||||
AND NOT `moz-fx-data-shared-prod.udf.ga_is_mozilla_browser`(browser)
|
||||
) AS non_fx_downloads,
|
||||
|
|
|
@ -86,11 +86,11 @@ fields:
|
|||
- mode: NULLABLE
|
||||
name: downloads
|
||||
type: INT64
|
||||
description: Downloads - The number of product_download events
|
||||
description: Downloads - The number of Firefox Desktop downloads
|
||||
- mode: NULLABLE
|
||||
name: non_fx_downloads
|
||||
type: INT64
|
||||
description: Non Firefox Downloads - The number of product_download events on a non-Firefox browser
|
||||
description: Non Firefox Downloads - The number of Firefox Desktop downloads from a non-Firefox browser
|
||||
- mode: NULLABLE
|
||||
name: pageviews
|
||||
type: INT64
|
||||
|
|
Загрузка…
Ссылка в новой задаче