This commit is contained in:
m-d-bowerman 2024-11-14 06:27:01 -08:00
Родитель 1f91163f6c
Коммит 131e4748ee
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: DA9D3625B1E7678A
1 изменённых файлов: 3 добавлений и 20 удалений

Просмотреть файл

@ -232,57 +232,40 @@ pocket_events AS (
SAFE_CAST(mozfun.map.get_key(event_details, "position") AS INT64) AS pocket_story_position,
mozfun.map.get_key(event_details, "tile_id") AS pocket_tile_id,
mozfun.map.get_key(event_details, "recommendation_id") AS pocket_recommendation_id,
COUNTIF(
event_name = 'save'
AND mozfun.map.get_key(event_details, "is_list_card") != "true"
) AS pocket_saves,
COUNTIF(
event_name = 'click'
AND mozfun.map.get_key(event_details, "is_list_card") != "true"
) AS pocket_clicks,
COUNTIF(
event_name = 'impression'
AND mozfun.map.get_key(event_details, "is_list_card") != "true"
) AS pocket_impressions,
COUNTIF(event_name = 'save') AS pocket_saves,
COUNTIF(event_name = 'click') AS pocket_clicks,
COUNTIF(event_name = 'impression') AS pocket_impressions,
COUNTIF(
event_name = 'click'
AND mozfun.map.get_key(event_details, "is_sponsored") = "true"
AND mozfun.map.get_key(event_details, "is_list_card") != "true"
) AS sponsored_pocket_clicks,
COUNTIF(
event_name = 'click'
AND mozfun.map.get_key(event_details, "is_sponsored") != "true"
AND mozfun.map.get_key(event_details, "is_list_card") != "true"
) AS organic_pocket_clicks,
COUNTIF(
event_name = 'impression'
AND mozfun.map.get_key(event_details, "is_sponsored") = "true"
AND mozfun.map.get_key(event_details, "is_list_card") != "true"
) AS sponsored_pocket_impressions,
COUNTIF(
event_name = 'impression'
AND mozfun.map.get_key(event_details, "is_sponsored") != "true"
AND mozfun.map.get_key(event_details, "is_list_card") != "true"
) AS organic_pocket_impressions,
COUNTIF(
event_name = 'save'
AND mozfun.map.get_key(event_details, "is_sponsored") = "true"
AND mozfun.map.get_key(event_details, "is_list_card") != "true"
) AS sponsored_pocket_saves,
COUNTIF(
event_name = 'save'
AND mozfun.map.get_key(event_details, "is_sponsored") != "true"
AND mozfun.map.get_key(event_details, "is_list_card") != "true"
) AS organic_pocket_saves,
COUNTIF(
event_name = 'dismiss'
AND mozfun.map.get_key(event_details, "is_sponsored") = "true"
AND mozfun.map.get_key(event_details, "is_list_card") != "true"
) AS sponsored_pocket_dismissals,
COUNTIF(
event_name = 'dismiss'
AND mozfun.map.get_key(event_details, "is_sponsored") != "true"
AND mozfun.map.get_key(event_details, "is_list_card") != "true"
) AS organic_pocket_dismissals,
COUNTIF(
event_name = 'thumb_voting_interaction'