case when Event Name = 'page_view' and Event Param Name = 'page_location' then Event Param Value (String) else '' end
CASE
WHEN Event Name = 'session_start' AND Event Param Name = 'page_location' AND CONTAINS_TEXT(Event Param Value (String), 'https://web-analytics.me/') THEN 1
ELSE 0
END
case
when
Event Name = 'page_view' and Event Param Name = 'page_location' and Event Param Value (String) = 'https://web-analytics.me/' then User Pseudo ID
else ''
end
HOUR(Event Time)
WHERE
_TABLE_SUFFIX >= PARSE_DATE('%Y%m%d', @DS_START_DATE)
And _TABLE_SUFFIX <= PARSE_DATE('%Y%m%d', @DS_END_DATE)
Where
_PARTITIONTIME >= PARSE_DATE('%Y%m%d', @DS_START_DATE);
AND _PARTITIONTIME <= PARSE_DATE('%Y%m%d', @DS_END_DATE);
where parse_date('%Y%m%d', event_date) = date_sub(current_date(), interval 1 day)