-
Replicating the GA4 User Engagement value with Bigquery export
Hey there, I’ve been working with daily GA4 export data in BigQuery and trying to match the User Engagement value with what’s shown in the GA4 API.
SELECT SUM(( SELECT value.int_value/1000 FROM UNNEST(event_params) WHERE KEY = 'engagement_time_msec')) FROM
BI_1.analytics_331127371.events_<span class="hljs-operator">*</span>
where _TABLE_SUFFIX between '20230301' AND '20230315'But here’s the issue – my numbers are coming out around 3% higher than the API. I checked out Google’s docs, and they’re saying that ‘engagement_time_msec’ is how User engagement is calculated. Have a look here: Google Analytics Help. Any ideas on where I’m going wrong?
Log in to reply.