我正在尝试新的谷歌分析 4 和 bigquery,并想了解是否有办法处理 simo 在此链接 https://www.simoahava.com/gtm-tips/fix上描述的“流氓推荐” -rogue-referral-problem-single-page-sites/ 这个想法是,对于单页应用程序网站,为了使文档位置保持不变,我们必须使用原始位置(登录页面)创建一个 javascript 变量并将其发送在字段上设置谷歌标签管理器发送到谷歌通用分析
1 - 有没有办法在谷歌标签管理器上拥有同样的东西,但这次将数据发送到新的谷歌分析 4
2 - 有没有办法进行推荐排除,因为我的域名在运行此查询时始终在 utm 媒体/来源/活动中
SELECT
event_name,
DATETIME(TIMESTAMP_MICROS(event_timestamp)),
user_pseudo_id,
(select value.string_value from UNNEST(event_params) where key = 'page_location' ) as page_location,
(select value.string_value from UNNEST(event_params) where key = 'page_referrer' ) as page_referrer,
traffic_source.name,
traffic_source.medium,
traffic_source.source,
(select value.string_value from UNNEST(event_params) where key = 'source' ) as source_,
(select value.string_value from UNNEST(event_params) where key = 'medium' ) as medium_,
(select value.string_value from UNNEST(event_params) where key = 'campaign' ) as campaign_
FROM `mytable`
where user_pseudo_id ='mycookie'
group by 1,2,3,4,5,6,7,8,9,10,11
order by 2 desc