[英]Results within Bigquery do not remain the same as in GA4
I'm inside BigQuery performing the query below to see how many users I had from August 1st to August 14th, but the number is not matching what GA4 presents me.我在 BigQuery 中执行下面的查询,以查看从 8 月 1 日到 8 月 14 日我有多少用户,但这个数字与 GA4 呈现给我的不匹配。
with event AS (
SELECT
user_id,
event_name,
PARSE_DATE('%Y%m%d',
event_date) AS event_date,
TIMESTAMP_MICROS(event_timestamp) AS event_timestamp,
ROW_NUMBER() OVER (PARTITION BY user_id ORDER BY TIMESTAMP_MICROS(event_timestamp) DESC) AS rn,
FROM
`events_*`
WHERE
event_name= 'push_received')
SELECT COUNT ( DISTINCT user_id)
FROM
event
WHERE
event_date >= '2022-08-01'
Resultado do GA4结果做 GA4
Result BQ = 37024结果 BQ = 37024
There are quite a few reasons why your GA4 data in the web will not match when compared to the BigQuery export and the Data API.与 BigQuery 导出和数据 API 相比,web 中的 GA4 数据不匹配的原因有很多。
In this case, I believe you are running into the Time Zone issue.在这种情况下,我相信您遇到了时区问题。
event_date
is the date that the event was logged in the registered timezone of your Property. event_date
是事件在您的财产的注册时区中记录的日期。 However, event_timestamp
is a time in UTC that the event was logged by the client.但是,
event_timestamp
是客户端记录事件的 UTC 时间。
To resolve this, simply update your query with:要解决此问题,只需使用以下命令更新您的查询:
EXTRACT(DATETIME FROM TIMESTAMP_MICROS(`event_timestamp`) at TIME ZONE 'TIMEZONE OF YOUR PROPERTY' )
Your data should then match the WebUI and the GA4 Data API.然后,您的数据应与 WebUI 和 GA4 数据 API 匹配。 This post that I co-authored goes into more detail on this and other reasons why your data doesn't match: https://analyticscanvas.com/3-reasons-your-ga4-data-doesnt-match/
我与人合着的这篇文章详细介绍了您的数据不匹配的原因和其他原因: https://analyticscanvas.com/3-reasons-your-ga4-data-doesnt-match/
You cannot simply compare totals.您不能简单地比较总数。 Divide it into daily comparisons and look at details.
把它分成日常比较,看看细节。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.