我什么都试过了。我三重检查了 analytics.xml 中 ID 中的破折号,我拥有所需的两个权限,我有
EasyTracker.getInstance().activityStart(this);
EasyTracker.getInstance().activityStop(this);
在适当的方法中,我仍然在 logcat 中得到以下内容:
Thread[main,5,main]: Connection to service failed 1
Thread[main,5,main]: Need to call initialize() and be in fallbackmode to start dispatch.
Thread[GAThread,5,main]: No campaign data found.
Thread[GAThread,5,main]: putHit called
Thread[GAThread,5,main]: putHit called
Thread[Service Reconnect,5,main]: connecting to Analytics service
Thread[Service Reconnect,5,main]: connect: bindService returned false for Intent { act=com.google.android.gms.analytics.service.START (has extras) }
Thread[Service Reconnect,5,main]: Connection to service failed 1
Thread[GAThread,5,main]: Sending hit to store
Thread[GAThread,5,main]: Sending hit to store
Thread[GAThread,5,main]: dispatch running...
Thread[GAThread,5,main]: User-Agent: GoogleAnalytics/2.0 (Linux; U; Android 4.1.1; en-us; Galaxy Nexus Build/JRO03O)
Host: www.google-analytics.com
GET /collect?[information collected]
Thread[GAThread,5,main]: Exception sending hit: HttpHostConnectException
Thread[GAThread,5,main]: Connection to http://www.google-analytics.com refused
Thread[GAThread,5,main]: sent 0 of 40 hits
然后它每 30 秒从“调度运行...”开始再次重复所有内容,这是我设置的时间间隔。
这不是互联网问题,因为我的应用程序可以很好地连接到其他网站。我在分析网站上的资料是针对 V2.0 的。自从我设置它以来已经两天多了。
我还可以做些什么?