Android/Google AnalyticsSDK:如何使REAL TIME分析工作?

Reg*_*_AG 1 sdk android analytics google-analytics real-time

我在我的应用中安装了Google AnalyticsSDK.

我希望能够进行实时分析(Google提出的新功能).

我的代码:

tracker = GoogleAnalyticsTracker.getInstance();
// the tracker is started with a dispatch interval of 20 seconds.
tracker.startNewSession("UA-XXXXX", 20, theContext);
tracker.trackEvent("Init", theContext.getPackageName(),"NoLabel", 0);
tracker.dispatch();
Run Code Online (Sandbox Code Playgroud)

我可以关注"Init"事件,但是实时统计数据(例如,使用我的应用程序的实际用户数量)不起作用,即使我已经使用可以在调度时启动我的跟踪器,而不是这样:

tracker.startNewSession("UA-XXXX", theContext);
Run Code Online (Sandbox Code Playgroud)

你知道如何解决这个问题吗?

谢谢 !!

Jan*_* S. 9

如果您希望它与实时Google Analytics配合使用,则应使用trackPageView.不幸的是,他们还没有为事件启用此功能,仅用于页面浏览.