मैं एंड्रॉइड वी 2.0 बीटा 3 के लिए एसडीके से इज़ीट्रैकर का उपयोग कर रहा हूं। मैंने https://developers.google.com/analytics/devguides/collection/android/v2/ पर वर्णित सभी चरणों का पालन किया है, और यह सुनिश्चित किया है कि हाइफ़न वर्ण हैं और एन नहीं मेरे ga_trackingId पैरामीटर मान में डैश।Google Analytics V2 एंड्रॉइड ऐप से आंकड़े रिकॉर्ड नहीं कर रहा है
मैंने एंड्रॉइड 2.2 और 4.1.2, साथ ही वास्तविक डिवाइस दोनों के लिए अनुकरणकर्ताओं में अपने ऐप की कोशिश की है। यहाँ (आंशिक रूप से संशोधित) LogCat से उत्पादन होता है:
11-17 20:13:50.587: W/GAV2(542): Thread[main,5,main]: Connection to service failed 1
11-17 20:13:50.616: W/GAV2(542): Thread[main,5,main]: Need to call initialize() and be in fallback mode to start dispatch.
11-17 20:13:50.616: I/GAV2(542): Thread[main,5,main]: ExceptionReporter created, original handler is com.android.internal.os.RuntimeInit$UncaughtHandler
11-17 20:13:52.617: I/GAV2(542): Thread[GAThread,5,main]: No campaign data found.
11-17 20:13:52.646: I/GAV2(542): Thread[GAThread,5,main]: putHit called
11-17 20:13:55.606: I/GAV2(542): Thread[Service Reconnect,5,main]: connecting to Analytics service
11-17 20:13:55.616: I/GAV2(542): Thread[Service Reconnect,5,main]: connect: bindService returned false for Intent { act=com.google.android.gms.analytics.service.START (has extras) }
11-17 20:13:55.616: W/GAV2(542): Thread[Service Reconnect,5,main]: Connection to service failed 1
11-17 20:13:55.616: I/GAV2(542): Thread[Service Reconnect,5,main]: falling back to local store
11-17 20:13:55.635: I/GAV2(542): Thread[GAThread,5,main]: Sending hit to store
11-17 20:13:55.666: I/GAV2(542): Thread[GAThread,5,main]: PowerSaveMode initiated.
11-17 20:13:55.696: I/GAV2(542): Thread[GAThread,5,main]: PowerSaveMode terminated.
11-17 20:13:55.696: V/GAV2(542): Thread[GAThread,5,main]: dispatch running...
11-17 20:13:55.746: I/GAV2(542): Thread[GAThread,5,main]: User-Agent: GoogleAnalytics/2.0 (Linux; U; Android 2.2; en-us; sdk Build/FRF91)
11-17 20:13:55.746: I/GAV2(542): Host: www.google-analytics.com
11-17 20:13:55.746: I/GAV2(542): GET /collect?ul=en-us&sr=480x800&a=935594353&sc=start&aid=com.xxx.android&cid=2b8c0c5de52ba05e&av=1.0&v=1&t=appview&an=xxx&tid=UA-xxx-55&_u=.nUWlMB&_v=ma1b3&cd=com.xxx.android.MainActivity&qt=5123&z=184 HTTP/1.1
11-17 20:13:56.116: V/GAV2(542): Thread[GAThread,5,main]: sent 1 of 1 hits
11-17 20:13:56.126: I/GAV2(542): Thread[GAThread,5,main]: PowerSaveMode initiated.
...
11-17 20:15:09.206: V/GAV2(542): Thread[GAThread,5,main]: dispatch running...
11-17 20:15:09.206: V/GAV2(542): Thread[GAThread,5,main]: ...nothing to dispatch
11-17 20:15:09.256: I/GAV2(542): Thread[GAThread,5,main]: putHit called
11-17 20:15:09.256: I/GAV2(542): Thread[GAThread,5,main]: Sending hit to store
11-17 20:15:09.316: I/GAV2(542): Thread[GAThread,5,main]: PowerSaveMode terminated.
11-17 20:15:11.706: V/GAV2(542): Thread[GAThread,5,main]: dispatch running...
11-17 20:15:11.716: I/GAV2(542): Thread[GAThread,5,main]: User-Agent: GoogleAnalytics/2.0 (Linux; U; Android 2.2; en-us; sdk Build/FRF91)
11-17 20:15:11.716: I/GAV2(542): Host: www.google-analytics.com
11-17 20:15:11.716: I/GAV2(542): GET /collect?v=1&ul=en-us&t=appview&sr=480x800&an=xxx&a=448166238&tid=UA-xxx-55&aid=com.xxx.android&cid=2b8c0c5de52ba05e&_u=.sB&av=1.0&_v=ma1b3&cd=com.xxx.android.ProductActivity&qt=2500&z=185 HTTP/1.1
11-17 20:15:11.986: V/GAV2(542): Thread[GAThread,5,main]: sent 1 of 1 hits
11-17 20:15:12.006: I/GAV2(542): Thread[GAThread,5,main]: PowerSaveMode initiated.
मैं इतने पर सभी प्रासंगिक पोस्ट के माध्यम से चले गए हैं।
इस अनुसार: http://blog.blundell-apps.com/google-analytics-common-problems-and-fixes/, तथ्य यह है कि मैं देख रहा हूं "... प्रेषण के लिए कुछ नहीं" इंगित करता है कि डेटा भेजा गया था।
मैं "सेवा से कनेक्शन विफल रहा" चेतावनी के बारे में चिंतित नहीं हूं, क्योंकि इसने अन्य लोगों के लिए रिकॉर्ड किए गए विश्लेषण डेटा को रोक नहीं दिया है (stackoverflow.com/questions/13222468/android-google-analytics-connection- सेवा-असफल)।
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="https://schemas.android.com/tools" tools:ignore="TypographyDashes">
<string name="ga_trackingId">UA-xxx-55</string>
<bool name="ga_autoActivityTracking">true</bool>
<bool name="ga_reportUncaughtExceptions">true</bool>
<integer name="ga_dispatchPeriod">2</integer>
<bool name="ga_debug">true</bool>
</resources>
और मेरे आधार गतिविधियों के भाग:
public class BaseActivity extends ActionBarActivity {
@Override
public void onStart() {
super.onStart();
EasyTracker.getInstance().activityStart(this);
}
@Override
public void onStop() {
super.onStop();
EasyTracker.getInstance().activityStop(this);
}
}
सवाल है, क्यों अपने डेटा अभी भी गूगल एनालिटिक्स में नहीं दिखा रहा है
यहाँ मेरी analytics.xml है? मैंने अपेक्षित 24-48 घंटों का इंतजार किया है, और यह अभी भी खाली है।
एक परेशानी-शूटिंग संबंधित प्रश्न यह है: यदि मैं सीधे इस ब्राउज़र को ब्राउज़र से या फिडलर से कॉल करता हूं: http: // www.google-analytics.com/collect?v=1 & उल = एन-हम & टी = APPVIEW & sr = 480x800 & एक = xxx & एक = १८२५२७८१९७ & टीआईडी = UA-xxx-55 & सहायता = com.xxx.android & सीआइडी = 2b8c0c5de52ba05e & _u = .sB & av = 1.0 & _v = ma1b3 & सीडी = com.xxx.android.ProductActivity & qt = 2414 & z = 141, हिट दर्ज की जानी चाहिए? (प्रतिक्रिया एक 1x1 gif छवि है।) यदि ऐसा है, तो यह किसी भी तरह से एनालिटिक्स खाते की स्थापना के लिए समस्या को अलग करने में मदद कर सकता है। (मैं कई अन्य वेबसाइटों के लिए इस खाते का उपयोग कर रहा हूं और वेब ट्रैकिंग ठीक काम कर रही है।)
संपादित करें: इस संस्करण के लिए लॉग कैट "HTTP प्रतिक्रिया कोड: 200" दिखाएगा, इस पोस्ट के रूप में और ब्लंडेल एक उपरोक्त से जुड़ा हुआ है हालांकि, EasyTracker के पहले संस्करण के लिए क्या लगता है: www.asgarddesigns.com.au/2012/05/easytracker-google-analytics-integration-for-android/? मेरा नहीं है, लेकिन मुझे संदेह है कि ऐसा हो सकता है क्योंकि यह लॉग संदेश नवीनतम संस्करण से हटा दिया गया था।
क्या आपके पास काम करने वाले स्थान पर एक समान आईफोन ट्रैकिंग है? या यह GA डेटा संग्रह है जो काम नहीं करता है? –