Skip to content

Commit

Permalink
Merge pull request #31 from Springbok-Agency/tessa-beijloos-patch-5
Browse files Browse the repository at this point in the history
Update base_select.sql
  • Loading branch information
tessa-beijloos authored Dec 16, 2024
2 parents 200e0c5 + 36a4fd8 commit 17f16e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macros/base_select.sql
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
) items
, property_id
, {{ ga4.unnest_key('event_params', 'ga_session_id', 'int_value', 'session_id') }}
, CAST(REGEXP_EXTRACT({{ ga4.unnest_key('event_params', 'ga_session_id', 'string_value', 'session_id_string') }}, r'^GS\d\.\d\.(\d+)') AS INT64) as fallback_session_id
, CAST(REGEXP_EXTRACT(COALESCE({{ ga4.unnest_key('event_params', 'ga_session_id', 'string_value', 'session_id_string') }}, ""), r'^GS\d\.\d\.(\d+)') AS INT64) as fallback_session_id
, {{ ga4.unnest_key('event_params', 'page_location') }}
, {{ ga4.unnest_key('event_params', 'ga_session_number', 'int_value', 'session_number') }}
, COALESCE(
Expand Down

0 comments on commit 17f16e3

Please sign in to comment.