Skip to content

Commit 9b97c86

Browse files
committed
feat(DENG-9765): Update key event list based on what blog.mozilla.org currently considers key events
1 parent 75c86c9 commit 9b97c86

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

sql/moz-fx-data-shared-prod/mozilla_org_derived/blog_performance_v1/query.sql

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
--note to self - still need to add engagement rate & figure out key events list
21
WITH staging AS (
32
SELECT
43
event_date,
@@ -46,7 +45,14 @@ SELECT
4645
page_title,
4746
--placeholder, waiting for list of actual key events from Stephen
4847
COUNTIF(
49-
event_name IN ('link_click', 'download_click', 'scroll', 'cta_click', 'click', 'search')
48+
event_name IN (
49+
'click',
50+
'cta_click',
51+
'download_click',
52+
'newsletter_subscribe',
53+
'scroll',
54+
'social_share'
55+
)
5056
) AS nbr_key_events,
5157
SUM(page_views) AS page_views,
5258
COUNT(DISTINCT(ga_session_id || ' - ' || user_pseudo_id)) AS nbr_sessions

sql/moz-fx-data-shared-prod/mozilla_org_derived/blog_performance_v1/schema.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ fields:
1010
- name: nbr_key_events
1111
type: INTEGER
1212
mode: NULLABLE
13-
description: Count of key events, where key events is defined as
13+
description: Count of key events, where key events include the following,
14+
click, cta_click, download_click, newsletter_subscribe, scroll, and social_share
1415
- name: page_views
1516
type: INTEGER
1617
mode: NULLABLE

0 commit comments

Comments
 (0)