问题描述
我们在Google Analytics的大部分网址上都会获得双重列表,例如以下内容:
/ Home / Specials
$ b $ /该网站是基于MS MVC3的。第一个通常显示一个几乎为零的退出速度的短暂加载期。大部分真实的用户数据都在第二位(用斜杠后缀)。
隐藏第一个分辨率的分辨率是多少?
$ b $该问题是由Google Analytics本身和jQuery地址脚本(后者添加了尾部斜杠)所做的重复跟踪造成的。 jQuery代码添加了对AJAX帖子的跟踪,因此对于搜索结果等页面非常有用。为了解决这个问题,我们只需从以下提供的核心脚本中删除以下行:分析:
_gaq.push(['_ trackPageview']);
We are getting double listings on most of our urls in Google Analytics, such as the following:
/Home/Specials
/Home/Specials/
The website is MS MVC3-based. The first usually shows a short loading period with an almost zero exit rate. Most of the real user data is on the second (the ones with the slash suffix).
What is the resolution for hiding the first?
The issue is caused by the duplicate tracking done by Analytics itself and the jQuery address script (the latter adds the trailing slash). The jQuery code adds tracking on AJAX posts, so it's useful for pages like search results.
To resolve the issue, we simply removed the following line from the core script provided by Analytics:
_gaq.push(['_trackPageview']);
这篇关于谷歌分析双重列表有和没有正斜杠的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!