gpt4 book ai didi

google-analytics - 为何在BigQuery中(但在Google Analytics(分析)中没有带有小时一分钟的浏览量条目)?

转载 作者:行者123 更新时间:2023-12-03 17:24:23 25 4
gpt4 key购买 nike

我正在尝试查询BigQuery中特定页面的综合浏览量(使用count(p.page.pagePath)),但Bigquery中的综合浏览量大于GA。

当比较特定日期(10月10日)的特定页面(页面标题= Moteurs-Le Soir Plus)的时分组合时,我得到了BigQuery中GA中不存在的分时组合。

这怎么可能? GA是否不注册BigQuery进行的某些网页浏览?

这是我使用的查询:

#standardSQL
CREATE TEMP FUNCTION
customDimensionByIndex(indx INT64,
arr ARRAY<STRUCT<index INT64,
value STRING>>) AS ( (
SELECT
x.value
FROM
UNNEST(arr) x
WHERE
indx=x.index) );
SELECT distinct
p.page.pageTitle,
date,
p.hour,
p.minute,
count(p.page.pagepath) as Pageviews
FROM
`ga-ls-sw-233509.186661177.ga_sessions_*` AS st,
UNNEST(hits) AS P
WHERE
_TABLE_SUFFIX = FORMAT_DATE('%Y%m%d', DATE_SUB(CURRENT_DATE(), INTERVAL 1 DAY))
AND p.page.pageTitle = 'Moteurs - Le Soir Plus'
Group by
p.page.pageTitle,
date,
p.hour,
P.minute
ORDER BY
p.hour DESC


以下是10月10日的两个输出(BQ和GA):

BQ:
Row page Title date hour minute Page views
1 Moteurs - Le Soir Plus 20191010 16 13 1
2 Moteurs - Le Soir Plus 20191010 16 14 1
3 Moteurs - Le Soir Plus 20191010 16 16 1
4 Moteurs - Le Soir Plus 20191010 14 29 1
5 Moteurs - Le Soir Plus 20191010 14 32 1
6 Moteurs - Le Soir Plus 20191010 11 19 1
7 Moteurs - Le Soir Plus 20191010 11 20 1
8 Moteurs - Le Soir Plus 20191010 9 17 1
9 Moteurs - Le Soir Plus 20191010 9 24 1
10 Moteurs - Le Soir Plus 20191010 8 18 1
11 Moteurs - Le Soir Plus 20191010 8 23 1
12 Moteurs - Le Soir Plus 20191010 8 24 1
13 Moteurs - Le Soir Plus 20191010 8 29 1
14 Moteurs - Le Soir Plus 20191010 8 30 1


GA:
Page Title Date Hour Minute Page views
1. Moteurs - Le Soir Plus 20191010 16 13 1
2. Moteurs - Le Soir Plus 20191010 16 14 1
3. Moteurs - Le Soir Plus 20191010 14 29 1
4. Moteurs - Le Soir Plus 20191010 11 19 1
5. Moteurs - Le Soir Plus 20191010 09 17 1
6. Moteurs - Le Soir Plus 20191010 08 18 1
7. Moteurs - Le Soir Plus 20191010 08 23 1
8. Moteurs - Le Soir Plus 20191010 08 29 1


例如在BQ中存在时分组合16h16,但在GA中不存在。

最佳答案

据我所知,您是在统计点击数而不是综合浏览量。确保P.type='PAGE'子句中的WHERE

关于google-analytics - 为何在BigQuery中(但在Google Analytics(分析)中没有带有小时一分钟的浏览量条目)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58339585/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com