javascript 阻止GA为您的“一次访问一页”网站(目标网页或博客)报告过高的跳出率

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了javascript 阻止GA为您的“一次访问一页”网站(目标网页或博客)报告过高的跳出率相关的知识,希望对你有一定的参考价值。

$.domReady(function(){
  // Fire an event so that GA doesn't count it as a "bounce"
  // http://blog.popcornmetrics.com/why-your-google-analytics-bounce-rate-is-wrong-and-how-to-fix-it/
  function readPage() {
     ga('send', {
       'hitType': 'event',
       'eventCategory': 'engagement',
       'eventAction': 'read'
     });
  }

  var readPageTime = 60 * 1000;
  setTimeout(readPage, readPageTime);
});

以上是关于javascript 阻止GA为您的“一次访问一页”网站(目标网页或博客)报告过高的跳出率的主要内容,如果未能解决你的问题,请参考以下文章