1
我想在Android SDK中手動重新啓動一些會話,以便模擬Google Analytics框架中的一些數據。按照sessions documentation和跟蹤documenation,它看起來像所有你需要做的是:如何在Google Analytics Android SDK V2中重新啓動會話/句柄限制?
for(i=0; i<1000; i++) {
myTracker.setSession(true);
myTracker.sendEvent("this", "is a", "test", 1); // this is the first event in the session
}
但是,當我看到我的報告,有儀表板〜150個事件(最終出現30分鐘後或者)。我不知道我是否受到限制,或者如果此方法沒有完全重新啓動會話。有關如何在不重新啓動應用程序1000次的情況下做到最好的任何想法?