Google Analytics(分析):已发送事件,但未在报告中显示 [英] Google Analytics: Events sent, but not showing up in reports

查看:127
本文介绍了Google Analytics(分析):已发送事件,但未在报告中显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过ga()函数将事件发送到Google analytics:
$ b

ga('send',{'hitType':'event ','eventCategory':'Article','eventAction':'Purchase','eventLabel':window.location.href.split('?')[0],'eventValue':r.data.price,'useBeacon ':true,'hitCallback':function(){googleSent = true;}});

回调get得到正确执行,铬分析debuger显示事件正在发送到谷歌分析。但是没有任何东西可以显示 - 无论是在实时报告还是在定期报告中。



任何想法都可能导致这个特殊问题?

解决方案

谢谢大家,今天我可以弄清楚这个行为背后的真正问题是:

eventValue was was一个浮点数,但它必须是一个整数,因此它不在分析服务器上。
就是这样。


I am sending events to google analytics via ga() function:

ga('send', {
  'hitType': 'event',
  'eventCategory': 'Article',
  'eventAction': 'Purchase',
  'eventLabel': window.location.href.split('?')[0],
  'eventValue': r.data.price,
  'useBeacon': true,
  'hitCallback': function() {
    googleSent = true;
  }
});

The callback get's executed properly, the chrome analytics debuger shows that the events are being sent to google analytics. But nothing is showing up – neither in the realtime reports nor in the regular reports.

Any ideas what can cause this particular problem?

解决方案

Thanks everyone, today i could figure out what the real issue behind that behavior was:

eventValue was a float, but it has to be an integer, so it wasn't count on the analytics servers. That's all.

这篇关于Google Analytics(分析):已发送事件,但未在报告中显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆