Google Analytics Metrics are inflated when extracting hit level data using BigQuery

前端 未结 4 1507
迷失自我
迷失自我 2020-12-22 11:52

I\'m trying to display the source property name within the Google Analytics roll up property I have linked to bigquery. Issue is, is that when I try the below some of the me

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-22 12:36

    after UNNESTing an array, use MAX() instead SUMMing them up to report on session level matrices:

    use:

    • MAX(totals.screenviews) AS PAGEVIEWS,
    • MAX(totals.bounces) AS BOUNCES,
    • MAX(totals.transactions) AS Transactions
    • ...
    • ...

    instead of:

    • SUM(totals.screenviews) AS PAGEVIEWS,
    • SUM(totals.bounces) AS BOUNCES,
    • SUM(totals.transactions) AS Transactions

    this should partially solve your issue. Let me know how it goes?

提交回复
热议问题