I've finished a project and have tried using GoogleAnalytics v3 for Android. I have followed all their instructions, but no devices are found. Do I need to use Google Analytics v4?
Per your response below, attached are the relevant sections.
In my values section I have an analytics.xml file with the following code:
<?xml version="1.0" encoding="utf-8"?> <resources> <string name="ga_trackingId">UA-xxxxxxxx-2></string> <string name="ga_autoActivityTracking">true</string> <bool name="ga_reportUncaughtExceptions">true</bool> </resources>
In my main activity, I have the following code in onStart():
EasyTracker.getInstance(this).activityStart(this); easyTracker.send(MapBuilder.createEvent("home", "feature event", null, null).build());
In my main activity, I have the following code in onStop():
EasyTracker.getInstance(this).activityStop(this);
Attached is a sample tag for the activity:
easyTracker.send(MapBuilder.createEvent("home", "feature event", null, null).build());
For fragments attached to the activity, I do the following:
In onCreate():
easyTracker = EasyTracker.getInstance(getSherlockActivity());
In onResume():
easyTracker.set(Fields.SCREEN_NAME, "Maps"); easyTracker.send(MapBuilder.createAppView().build());
Still, I am getting no response from google analytics.