Problems with Easy Tracker in Google Analytics

I am trying to integrate Google Analytics into my activities. According to google docs, I read EasyTracker and added EasyTracker.jar to my libraries and referenced the same thing, expanded my actions from "TrackedActivity" / "TrackedListActivity". An entry was also made in the strings.xml file located under <string name="ga_api_key">UA-xxxxxxxx-x</string> But whenever I enter Google Analytics, I don’t see any tracking.

Where am I wrong?

+4
source share
3 answers

Google Analytics first appears on the website in about 24-48 hours. Therefore, if you expect analytics after implementation, just wait 48 hours.

+3
source

Add another line:

 <bool name="ga_debug">true</bool> 

And then check logcat to see any information from the Analytics library.

+5
source

You have granted the following usage permissions.

<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(); 
0
source

Source: https://habr.com/ru/post/1393967/


All Articles