From d4e7b7bff5ea5959f6b08adc59adb5268a5b20d4 Mon Sep 17 00:00:00 2001 From: dgitis Date: Wed, 13 Mar 2024 09:53:39 -0700 Subject: [PATCH] test original_page_location --- tests/page_location_with_gclid_is_cpc.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/page_location_with_gclid_is_cpc.sql b/tests/page_location_with_gclid_is_cpc.sql index d142c605..8f38b7fb 100644 --- a/tests/page_location_with_gclid_is_cpc.sql +++ b/tests/page_location_with_gclid_is_cpc.sql @@ -8,7 +8,7 @@ select count(event_source) as sources , count(event_medium) as mediums from {{ref('stg_ga4__events')}} -where page_location like '%gclid%' +where original_page_location like '%gclid%' and event_source != 'google' and event_medium != 'cpc' having sources > 0