Google Analytics: Events sent, but not showing up in reports

与世无争的帅哥 提交于 2019-12-10 11:24:04

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/29174225/google-analytics-events-sent-but-not-showing-up-in-reports

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!