Reputation: 672
I am trying to integrate Google Analytics on my Activities.
As per the google docs I read up on EasyTracker and added EasyTracker.jar to my libs and referenced the same, extended my Activities from "TrackedActivity" / "TrackedListActivity"
Also made an entry in the strings.xml file located under values
<string name="ga_api_key">UA-xxxxxxxx-x</string>
But whenever I log into Google Analytics I don't see any tracking displayed there.
Where have I gone wrong?
Upvotes: 4
Views: 2079
Reputation: 51
Add another string:
<bool name="ga_debug">true</bool>
And then check logcat to see any information from the Analytics library.
Upvotes: 5
Reputation: 372
did you give the following uses permission.
<uses-permission android:name="android.permission.INTERNET" />
GoogleAnalyticsTracker tracker = GoogleAnalyticsTracker.getInstance();
tracker.start("your analytics code", this.con);
tracker.setCustomVar(1, "Medium", "Mobile App");
tracker.trackPageView("ur activity name");
tracker.dispatch();
tracker.stop();
Upvotes: 0
Reputation: 18746
Google Analytic 1st time appear on website after about 24-48 hours. So if you are waiting for analytic after implementation then just wait for 48 hours.
Upvotes: 3