Google Analytics显示的网页浏览量过多

时间:2015-03-27 22:38:34

标签: google-analytics analytics

我在网站上使用谷歌分析有一个奇怪的问题。该网站通常每天有大约1000 - 1500次综合浏览量(以及大约500-600个唯一身份用户)。

由于一周的分析测量值在每天5000到15000次之间,但独特的用户保持不变。我在过去的两年中从未有过如此多的综合浏览量,所以这些值不是正确的。

我查看了我的Chrome网络面板,发现http://www.google-analytics.com/collect?xxxx经常被触发。网站上没有任何变化,那么什么可能导致这种行为?

另一个问题是我的跳出率。在我更新为Universal Analytics之前,我使用以下代码触发事件gaq.push(['_trackEvent', 'Category', 'Action', undefined, 50, true]);(" true"表示非交互事件)。

更新后我使用了

 ga('send', 'event', 'xxx', 'xxx', 'xxx');

跳出率降至0%(事件计为"互动事件")。

我发现通知使用以下ga('set', 'nonInteraction', true);来设置非交互标记。但是我应该在哪里使用它?

我应该从分析代码开始跟踪网页浏览

(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-xxxxxx-xx', 'example.com');
  ga('require', 'displayfeatures');
  ga('send', 'pageview');

然后设置非交互标志 ga('set', 'nonInteraction', true);

并在最后触发我的网页内容中的事件 例如onload="ga('send', 'event', 'xxx', 'xxx', 'xxx');"

2 个答案:

答案 0 :(得分:1)

see eventTrackerGuide.

non-interaction (optional) A boolean that when set to true, indicates that the event hit will not be used in bounce-rate calculation

Every hit after the code ga('set', 'nonInteraction', true); will be a non-interaction hit.

If you want make a specific hit to non-interaction, just add non-interaction option on the hit. For example: ga('send', 'pageview', {'nonInteraction': true});

答案 1 :(得分:0)

尝试:

ga('send', 'event', 'xxx', 'xxx', 'xxx', undefined, true);

未定义 - 如果您没有事件值

相关问题