bigquery中没有事件标签的唯一事件

时间:2018-08-15 16:01:29

标签: google-analytics google-bigquery standard-sql

在GA中查询事件报告时,我得到297个唯一事件,而运行以下标准SQL查询将结果显示为349。 如果我从“计数”中删除了不重复项,则会得到GA360中显示的确切事件总数。

代码:

SELECT
    CONCAT(fullVisitorId, CAST(VisitId AS string), date),
    COUNT(DISTINCT hits.eventInfo.eventLabel) AS unique_events
  FROM
    `XXXX.ga_sessions_20180812`,
    UNNEST(hits) AS hits,
    UNNEST(hits.customDimensions) AS cd
  WHERE
    hits.eventInfo.eventCategory = 'Errors'
    AND hits.eventInfo.eventAction = 'User'
    AND cd.value = 'pagos'
    AND cd.index = 4
  GROUP BY
    1

有人解决吗?

0 个答案:

没有答案