问题描述
你们中的一个是否在Google BigQuery中使用序列条件复制Google Analytics(分析)细分和特别高级的细分?
例如,我的意思是
具有例如1234555.6666或1234665.6644或12345855.6256的clientid的用户?页ABC,然后是页YYYVV
我确实在堆栈问题中找到了吗?
在bigquery中创建的高级细分示例在此处输入图像说明[在此处输入图像说明] 1在此处输入图像说明在此处输入图像说明
这是我的查询示例
#standard sql
select
MAX (hits.hitNumber) as max_hitnumber,fullvisitorid AS fullvisitorid,visitid AS visitid,clientId as clientId,date as date,hits.hour AS hit_hour,hits.minute AS hit_minute,hits.isExit AS hit_isExit,hits.type AS hit_type,(SELECT MAX(IF(index=4,value,NULL)) FROM UNnesT(hits.customDimensions)) AS type_de_la_page,(SELECT MAX(IF(index=5,NULL)) FROM UNnesT(hits.customDimensions)) AS titre_de_la_page,(SELECT MAX(IF(index=6,NULL)) FROM UNnesT(hits.customDimensions)) AS univers_affichage
FROM `dataset.ga_sessions_*`,UNnesT(hits) as hits
WHERE
_TABLE_SUFFIX BETWEEN 'XX' AND 'YY'
AND
clientId IN ('1216107517.1566907413','2133916944.1568016396','191276059.1563523657','2099333168.1568989130','40560158.1568714387','1148175150.1568740892','2006464416.1569333485')
AND
((SELECT MAX(IF(index=10,NULL)) FROM UNnesT(hits.customDimensions)) = "prod")
AND
hits.type="PAGE"
AND
(SELECT MAX(IF(index=4,NULL)) FROM UNnesT(hits.customDimensions)) ="home")
GROUP BY
fullvisitorid,visitid,clientId,date,hit_hour,hit_minute,hit_type,type_de_la_page,titre_de_la_page,univers_affichage,hit_isExit
但是不知道要在我的Google Analytics(分析)自定义维度的查询中添加一些正则表达式条件,而且我也不知道如何在Google bigquery中进行处理,以便在查询中添加类似于我的Google Analytics(分析)细分中的元素
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)