gpt4 book ai didi

google-analytics - Google Universal Analytics Google-浏览量

转载 作者:行者123 更新时间:2023-12-03 16:21:49 28 4
gpt4 key购买 nike

我正在尝试记录每个博客站点作者的点击率。

ga('send', 'pageview'); (in the header with the ga code to track each page)
ga('send', 'pageview', { 'dimension1': 'William' }); (only on blog pages, I want to record the hits of each author)


不幸的是,由于该网站的模板,我不能只使用 ga set然后发送综合浏览量。

每次加载页面时,我都会获得2次匹配,因此在Google Analytics(分析)中显示错误数据吗?

最佳答案

是的,您将获得不正确的双页面浏览量。但是,您可以将代码置于其他模式吗?

if(currentPage != 'blogpage') //put your conditions identifying if it's blog or not
{
ga('send', 'pageview'); (in the header with the ga code to track each page)
}else
{
ga('send', 'pageview', { 'dimension1': 'William' }); (only on blog pages, I want to record the hits of each author)
}

关于google-analytics - Google Universal Analytics Google-浏览量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23489640/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com