我正在尝试从我的GA视图获取带有EventInfo的新表,例如EventAction,EventCategory和EventLabel。但是我面临以下问题无法访问类型为的值的字段eventInfoARRAY<STRUCT<hitNumber INT64, time INT64, hour INT64, ...>> at [2:6]
即使在尝试如上所述编写查询之后,我仍然收到错误。阵列>
你能让我知道如何解决吗?
以下是BigQuery标准SQL的示例
#standardSQL
SELECT visitId, visitNumber, hit.eventInfo.*
FROM `bigquery-public-data.google_analytics_sample.ga_sessions_20170801`,
UNNEST(hits) hit
WHERE NOT eventInfo IS NULL
结果如下所示
visitId visitNumber eventCategory eventAction eventLabel eventValue
1501607501 1 Enhanced Ecommerce Quickview Click YouTube Men's Vintage Henley null
1501633019 1 Enhanced Ecommerce Quickview Click YouTube Custom Decals null
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句