Android Google Analytics屏幕指标不会显示在控制台中

时间:2014-12-03 18:28:32

标签: android google-analytics

我昨天为我的Android应用创建了一个分析配置文件,并为我的活动添加了屏幕视图。我看到消息正在发送到日志中的分析,并且没有错误,但我还没有看到任何流量显示在分析控制台中。

创建帐户后,在分析数据显示在控制台中之前是否存在正常延迟,或者是否存在我遗漏的内容?

我正在使用Analytics SDK V4的最新版本并在Galaxy S4 4.4.4 Kitkat上运行

以下是我在logcat中看到的内容:

12-03 12:21:53.181:V / GAV4(11601):线程[GAThread,5,main]:加载的clientId 12-03 12:21:53.221:V / GAV4(11601):线程[GAThread,5,main]:调用putHit 12-03 12:21:53.221:V / GAV4(11601):线程[GAThread,5,main]:向服务路径发送命中:https:PARAMS:ul = en-us,ht = xxxxxxx,sr = 1080x1920,a = xxxxxxxx,sc = start,sf = 100.0,aid = com.company.package,cid = xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx,av = 0.1.4,v = 1,t = screenview,an = xxxx Android, tid = UAxxxxxxxx,_u = .r3998,cd =用户评论,

1 个答案:

答案 0 :(得分:0)

请参阅https://developers.google.com/analytics/devguides/collection/android/v4/dispatch 您可以尝试使用以下方式减少调度时间:

GoogleAnalytics analytics = GoogleAnalytics.getInstance(this);
analytics.setLocalDispatchPeriod(<time in seconds>);