GoogleAnalyticsTracker Store full

帅比萌擦擦* 提交于 2019-12-11 08:17:33

问题


I've seen a couple of similar posts on this site, but neither one had any response so I'm going to post my issue.

I'm getting the following warnings from GoogleAnalyticsTracker: Store full. Not storing last event.

I'm using GoogleAnalyticsTracker in my Android app to store analytics. It all executes fine, except for the above warnings, however no data seems to be getting to Google Analytics since every time I check it there's nothing there.

GoogleAnalyticsTracker tracker;
tracker = GoogleAnalyticsTracker.getInstance();
tracker.startNewSession(GA_ID , this);

// i've got a bunch of these throughout my activity
tracker.trackEvent("BTN CLICK", "myactivity", "some info",n);

Can anyone from Google provide some info on this?


回答1:


you need to manually call dispatch to push stored events or better star with autamatic dispatch with giving an interval.

Change it to this, and your events will pushed to analytics every 10 seconds. tracker.startNewSession(GA_ID , 10, this);




回答2:


It's because you didn't set the dispatch interval in startNewSession method. You can either set it in above method or do it manually by tracker.dispatch() method.



来源:https://stackoverflow.com/questions/13503335/googleanalyticstracker-store-full

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