1
我已經嘗試了一切。我三重檢查破折號在analytics.xml的ID,我需要兩個權限,我有Google Analytics for Android不發送匹配
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。自從我設置這個過程已經兩天多了。
我還能做什麼?