Note that there are some explanatory texts on larger screens.

plurals
  1. POCan Not Integrate Google Analytics in my Android app
    primarykey
    data
    text
    <p>I want to track all my users activities using Google Analytics in my Android Mobile App. I add libGoogleAnalytics.jar in my Build Path, create an account in Google analytics (so I have my UA-XXXXXXXX-Y number).Here is how I initialize the tracker and try to track the current Activity:</p> <pre><code> tracker = GoogleAnalyticsTracker.getInstance(); tracker.setDebug(true); tracker.setDryRun(false); tracker.startNewSession("UA-XXXXXXXX-Y", MyActivity.this); tracker.trackPageView("/MainScreen"); tracker.dispatch(); </code></pre> <p>I also add needed permitions in my AndroidManifest:</p> <pre><code>&lt;uses-permission android:name="android.permission.INTERNET" /&gt; ... &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt; ... </code></pre> <p>How you can see I enable the debugging in order to verify my configuration. And everything in debug log looks fine for me:</p> <pre><code>10-28 17:43:59.233: VERBOSE/GoogleAnalyticsTracker(11024): Called dispatch 10-28 17:43:59.233: VERBOSE/GoogleAnalyticsTracker(11024): Sending 1 hits to dispatcher 10-28 17:43:59.233: INFO/GoogleAnalyticsTracker(11024): Host: www.google-analytics.com 10-28 17:43:59.233: INFO/GoogleAnalyticsTracker(11024): User-Agent: GoogleAnalytics/1.5.1 (Linux; U; Android 4.0.3; en-gb; GT-I9100 Build/IML74K) 10-28 17:43:59.233: INFO/GoogleAnalyticsTracker(11024): GET /__utm.gif?utmwv=4.9.1ma&amp;utmn=155573506&amp;utmcs=UTF-8&amp;utmsr=480x800&amp;utmul=en-GB&amp;utmp=%2FMainScreen&amp;utmac=UA-xxxxxxxx-y&amp;utmcc=__utma%3D1.1239100675.1351436696.1351436696.1351436696.1%3B&amp;utmht=1351439039180&amp;utmqt=59 HTTP/1.1 10-28 17:43:59.348: VERBOSE/GoogleAnalyticsTracker(11024): HTTP Response Code: 200 </code></pre> <p>And my problem is that nothing is displayed in my Analytics Account. So nothing was tracked! The Real - Time statistics also show 0 and No Data.</p> <p>Anybody faced with something like that?????</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload