限制 Google Analytics 异步事件推送? [英] Limit on Google Analytics asynchronous event push?

查看:23
本文介绍了限制 Google Analytics 异步事件推送?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一段代码,它在我的应用程序初始化时根据数据数组记录 Google Analytics 中的事件.它类似于

I have a piece of code that records events in Google Analytics based on an array of data when my application initializes. It goes something like

function recordInitialData(dataArray) {
  for(var i = dataArray.length; i >= 0; i--) {
    _gaq.push(["_trackEvent", category1, action1, label1, dataArray[i].value1],["_trackEvent", category2, action2, label2, dataArray[i].value2]);
  }
}

问题是,_gaq.push 只被调用了 10 次(也就是说,只有 10 个 1x1 gif 加载,并且只代表给 _gaq 的前 10 个事件.push),无论我实际进行了多少次调用(因为有时 dataArray 可能很长).Google Analytics 仅提到每个用户会话 500 次事件推送的限制(Analytics Docs).一次 10 个"的限制是否记录在任何地方?

The problem is, _gaq.push gets called only 10 times (that is to say, there are only 10 1x1 gifs loaded and represent only the first 10 events that were given to _gaq.push), no matter how many calls I actually make (because sometimes dataArray can be quite long). Google Analytics only mentions a limit of 500 event pushes per user session (Analytics Docs). Has this limit of "10 at a time" been documented anywhere?

推荐答案

Google 直接得到答案:

您可以一次发送 10 个,然后他们以每秒 1 个请求的速度补充."

"you can send 10 at once, then they replenish at 1 request per second after that."

这篇关于限制 Google Analytics 异步事件推送?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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