Google analytics 匹配谷歌分析增加了GA和BigQuery之间的联系
我正试图从我在BigQuery中导出的谷歌分析数据中获得产品添加到购物篮的数量 当我在GA界面中查看特定页面时,我看到1669产品添加到了篮子中Google analytics 匹配谷歌分析增加了GA和BigQuery之间的联系,google-analytics,google-bigquery,Google Analytics,Google Bigquery,我正试图从我在BigQuery中导出的谷歌分析数据中获得产品添加到购物篮的数量 当我在GA界面中查看特定页面时,我看到1669产品添加到了篮子中 select date, SUM(adds) as total_adds from (SELECT date, CONCAT(fullvisitorid, CAST(visitid AS string)) AS session_id, hits_product.productlistname as product_list,
select date,
SUM(adds) as total_adds
from
(SELECT
date,
CONCAT(fullvisitorid, CAST(visitid AS string)) AS session_id,
hits_product.productlistname as product_list,
hits_product.productsku as sku,
CASE WHEN hits.eCommerceAction.action_type = '3' THEN 1 ELSE 0 END AS adds
FROM
`project.dataset.ga_sessions_20191208` AS t,
UNNEST(hits) AS hits,
UNNEST(hits.product) AS hits_product
WHERE hits_product.productlistname = 'my_page_url'
and hits.eCommerceAction.action_type = '3'
)
group by 1
然而,当我尝试用下面的查询在原始数据上复制它时,我得到了1322个添加到篮子中
select date,
SUM(adds) as total_adds
from
(SELECT
date,
CONCAT(fullvisitorid, CAST(visitid AS string)) AS session_id,
hits_product.productlistname as product_list,
hits_product.productsku as sku,
CASE WHEN hits.eCommerceAction.action_type = '3' THEN 1 ELSE 0 END AS adds
FROM
`project.dataset.ga_sessions_20191208` AS t,
UNNEST(hits) AS hits,
UNNEST(hits.product) AS hits_product
WHERE hits_product.productlistname = 'my_page_url'
and hits.eCommerceAction.action_type = '3'
)
group by 1
当我对产品视图运行类似的查询时,数字是匹配的,那么为什么我会看到产品添加到篮子中的差异呢
如果我忽略了页面(从上面的查询中删除WHERE hits\u product.productlistname='my\u page\u url'
),并运行了一整天的数字,我会得到一个完美的匹配
我也试过运行GA的未取样数字,但我仍然看到了不同