GA4 Big Query Sample Query

2022/05/161 min read
bookmark this

get total page view count for the month

Return 202305's each date's page count

with data as (
SELECT event_date, event_name, count(*) as total
FROM `ga4_table.events_intraday_202305*`
group by 1, 2
having event_name = 'page_view'
order by 1
)
select event_date, total from data;

Total event count with event_name

with data as (
SELECT event_name, count(*) as total
FROM `ga4_table.events_intraday_202306*`
group by 1
order by 1
)

select * from data;