我正在查看一個訪問者在我們網站上的具體操作,以瞭解如何收集一些數據以及如何提取我需要的數據。基本上,當訪問者看到我們網站的某些部分時,會啓動特定的促銷活動,並且我想查看是否收集了這些數據。爲什麼在BigQuery中取消兩個或更多變量時我沒有得到任何結果?
我已經運行下面的代碼來識別訪問者看到的網頁和事件的會話火災:
select fullvisitorid, visitid, date, hitnumber, type, page.pagepath,
eventinfo.eventcategory, eventinfo.eventlabel, eventinfo.eventaction
from `big-query-156009.xxxxxx.ga_sessions_*` t, t.hits as hits
where _table_suffix between "20170511" and "20170511"
and fullvisitorid = 'xxxxxxxxxxxxxxxxxxxxxxxxxx'
and visitid = xxxxxxxxx
order by hitnumber
這工作完全正常,我可以看到訪客的旅程。我也想在
hits.promotion.promoid,
hits.promotion.promoname,
hits.promotion.promocreative,
hits.promotion.promoposition,
hits.promotionactioninfo.promoisview,
hits.promotionactioninfo.promoisclick
拉我已經試過這使用下面的代碼:當我做這將完全一樣fullvisitorid,visitid,日期
select fullvisitorid,
visitid,
date,
hitnumber,
type,
page.pagepath,
eventinfo.eventcategory,
eventinfo.eventlabel,
eventinfo.eventaction,
promotion.promoId,
promotion.promoname,
promotion.promocreative,
promotion.promoposition,
promotionactioninfo.promoIsView,
promotionactioninfo.promoIsclick
from `big-query-156009.xxxxxx.ga_sessions_*` t, t.hits as hits,
hits.promotion as promotion
where _table_suffix between "20170511" and "20170511"
and fullvisitorid = 'xxxxxxxxxxxxxxxxxxxxxxxxxx'
and visitid = xxxxxxxxx
order by hitnumber
但是和數據集等我沒有得到任何結果。沒有錯誤或任何事情,只是沒有結果
我不完全理解嵌套,所以我假設我只是缺少一些簡單的東西。
有沒有什麼辦法可以在一個查詢中提取所有這些數據,還是需要做子查詢?
謝謝
美麗!這工作完美。謝謝Elliott! –