简体   繁体   English

Bigquery 中的结果与 GA4 中的结果不同

[英]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

结果 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.

相关问题 GA4流量源数据与bigquery不匹配 - GA4 traffic source data do not match with bigquery 如何从 BigQuery 中提取 GA4 流量 session 而不是用户获取流量? - How to extract GA4 traffic session from BigQuery instead of user acquisition traffic? GTM + GA4:iOS 应用未使用 GTM 向 GA4 发送事件 - GTM + GA4: iOS app not sending events to GA4 using GTM 为什么 GA4 产品链接停止工作? - Why did GA4 product link stopped working? 如何使用 Big Query 计算 GA4 的“平均参与时间”? - How to calculate the "average engagement time" of GA4 using Big Query? GA4 和 firebase:自定义事件在 tablayout 中触发两次(android kotlin) - GA4 and firebase: custom event firing twice in tablayout(android kotlin) 有谁有将 GA4 日志数据加载到 Supabase 数据库的经验吗? - Does anyone who has experience with loading GA4 log data to Supabase database? 为什么相同的查询结果在 BigQuery 编辑器和 sqlalchemy 上不同? - Why same query results are different on BigQuery editor and sqlalchemy? 在 Android 和 GA4 中的 Apple 移动应用程序中创建自定义跟踪菜单点击 - Creating custom tracking menu clicks in Android and Apple mobile apps in GA4 通过 oauth2(同意屏幕)从 Google Analytics Data API (Ga4) 中提取数据 - Extract data from Google Analytics Data API (Ga4) via oauth2 (consent screen)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM