Skip to content

Commit

Permalink
Update stg_ga4__events.sql to consider campaign name (organic) (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
cfrye2 authored Mar 31, 2024
1 parent fd6fe8b commit d97fbf6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion models/staging/stg_ga4__events.sql
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ detect_gclid as (
case
when (page_location like '%gclid%' and event_campaign is null) then "(cpc)"
when (page_location like '%gclid%' and event_campaign = 'organic') then "(cpc)"
when (page_location like '%gclid%' and event_campaign = '(organic)') then "(cpc)"
else event_campaign
end as event_campaign
from include_event_key
Expand Down Expand Up @@ -97,4 +98,4 @@ page_key as (
end as page_engagement_key
from enrich_params
)
select * from page_key
select * from page_key

0 comments on commit d97fbf6

Please sign in to comment.