Android Google Analytics - 服务连接失败 [英] Android Google Analytics - Connection to service failed

查看:14
本文介绍了Android Google Analytics - 服务连接失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

刚刚开始在我的 Android 应用程序中实施 Google Analytics V2,尽管我遇到了问题.

Just started implementing Google Analytics V2 in my Android application, though I'm having troubles.

我相信我已经正确设置了一个包含属性和配置文件的帐户.我已经在 analytics.xml 文件中提供了我的密钥,并且在我使用

I believe I've set up an acount with a property and profiles correctly. I've supplied my key in the analytics.xml file and in each activity I use the

EasyTracker.getInstance().activityStart(this); onStart 方法中

EasyTracker.getInstance().activityStart(this); in the onStart method

EasyTracker.getInstance().activityStop(this); 在每个活动的 onStop 方法中.

EasyTracker.getInstance().activityStop(this); in the onStop method of every activity.

但是我似乎在 Google Analytics 网站上没有看到任何结果.此外,我打开了调试选项,我可以在 log cat 中看到来自 Gav2 (Google Analytics) 的各种消息,暗示存在问题.

However I don't seem to see any results on the Google Analytics website. Moreover, I turned on the debug options and I can see in log cat various messages from Gav2 (Google Analytics), implying on a problem.

例如

11-04 21:56:48.000: W/GAV2(6376): Thread[main,5,main]: **Connection to service failed 1**
11-04 21:56:48.040: W/GAV2(6376): Thread[main,5,main]: **Need to call initialize() and be in fallback mode to start dispatch.**
11-04 21:56:48.050: I/GAV2(6376): Thread[main,5,main]: ExceptionReporter created, original handler is com.keypod.utils.AppCrashExceptionHandler
11-04 21:56:50.055: I/GAV2(6376): Thread[GAThread,5,main]: No campaign data found.
11-04 21:56:50.060: I/GAV2(6376): Thread[GAThread,5,main]: putHit called
11-04 21:56:50.410: I/GAV2(6376): Thread[GAThread,5,main]: putHit called
11-04 21:56:53.035: I/GAV2(6376): Thread[Service Reconnect,5,main]: connecting to Analytics service
11-04 21:56:53.035: I/GAV2(6376): Thread[Service Reconnect,5,main]: connect: bindService returned false for Intent { act=com.google.android.gms.analytics.service.START (has extras) }
**11-04 21:56:53.035: W/GAV2(6376): Thread[Service Reconnect,5,main]: Connection to service failed 1
11-04 21:56:53.035: I/GAV2(6376): Thread[Service Reconnect,5,main]: falling back to local store**
11-04 21:56:53.040: I/GAV2(6376): Thread[GAThread,5,main]: Sending hit to store
11-04 21:56:53.100: I/GAV2(6376): Thread[GAThread,5,main]: Sending hit to store
11-04 21:56:53.150: V/GAV2(6376): Thread[GAThread,5,main]: dispatch running...

它似乎无法连接,然后回退"到本地商店.难道我做错了什么?或者我应该忽略该警告并等待结果显示在网站上?

It seems like it can't connect and then it "fallsback" to local store. Am I doing something wrong? Or should I just ignore that warning and wait for the results to show up on the site?

我一步一步地遵循了 Google 的指南.

I followed Google's guide step-by-step.

谢谢!

推荐答案

我现在可以在我的分析页面中看到结果,所以显然我只需要等待.

I can now see results in my analytics page so apparently I just needed to wait.

Google 应该对该警告采取措施,它可能会产生误导.

Google should do something about that warning, it can be misleading.

更新:我注意到一件有趣的事情,这也可能有所帮助,默认情况下,Google Analytics(分析)网络界面不显示当天的数据.要查看当天收集的数据,您需要点击右上角的日期范围选择器,然后从日历中选择当天(或从组合框中选择今天).

Update: An interesting thing I've noticed which may also help, Google Analytics web interface doesn't show data from the current day on default. In order to view the data collected from the current day, you need to click on the date range picker on the top-right side, and select the current day from the Calendar (or Today from the combobox).

这篇关于Android Google Analytics - 服务连接失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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