Questions tagged [easytracker]

EasyTracker is a class designed to easy the burden of adding tracking code to your application.

Public class EasyTracker;
extends Object. 

EasyTracker is a class designed to easy the burden of adding tracking code to your application. Simply add this class to your application and extend TrackedActivity instead of Activity for each Activity in your application.

This class is designed to be used from a single Thread. Use on the Main UI Thread is acceptable.

Note that all of your Activities must extend TrackedActivity (or an equivalent Activity, like TrackedListActivity instead of ListActivity) for this Class to properly track application usage and time. If you have an Activity Class that doesn't extend one provided in this package, you can create one by copying TrackedActivity and having it extend the Activity you want. For example, if you have an Activity subclass called FragmentActivity, simply create a class called TrackedFragmentActivity and have your classes extend that instead of FragmentActivity. The code for TrackedFragmentActivity should be the same as the code in TrackedActivity.

You can turn on tracking by providing a String resource of the name ga_api_key with a value of your account id (form UA-12345-6). You can provide various parameters as String, Bool or Integer resources (such as sampleRate) as well. Just use the proper type for the parameter (String for String, Bool for boolean and Integer for int).

If you want to track your Activities as well as the application, you can add the Bool resource ga_auto_activity_tracking and give it a value of "true".

Source: com.google.android.apps.analytics.easytracking

20 questions
9
votes
1 answer

What's the difference between EasyTracker and the regular Tracker?

The Google documentation for Google Analytics version 3 is very confusing regarding the differences between EasyTracker and the regular Tracker class, and I'm really not sure which one I should be using. On this page, they talk about setting up the…
Carl Anderson
  • 3,446
  • 1
  • 25
  • 45
9
votes
1 answer

Where do I get the item price, total tax, and shipping cost when tracking purchases on Android?

According to the Google Analytics eCommerce guide for Android, I need to use the Tracker.sendTransaction method to track purchases. Three pieces of information needed are the purchase price, the total tax, and the shipping price (all longs). …
Matt Huggins
  • 81,398
  • 36
  • 149
  • 218
7
votes
1 answer

Google analytics custom screen names in Easy Tracker

I have an application with a reused activity (its used for different purposes so just tracking the activity name would not help me, thats why I want to define the screen name manually while still using the EasyTracker. My code looks like…
Simon
  • 13,173
  • 14
  • 66
  • 90
5
votes
0 answers

Google Analytics EasyTracker doesn't work in Android app with "falling back to local store" error

I'm using EasyTracker (Google Analytics 2.5) in an Android app and can't get it to work. Here is the logcat log (for the GAV2 tag) Thread[main,5,main]: Need to call initialize() and be in fallback mode to start…
ServerCode
  • 151
  • 2
  • 5
5
votes
2 answers

EasyTracker (GA) each launch of the app reported as new user

I set up a helper class which reports events and screens to Google Analytics, via the EasyTracker, for an unknown reason each time I relaunch the app, it reports all the screen and the events as a new user.I checked the gaClientId file, which store…
Kirill Kulakov
  • 10,035
  • 9
  • 50
  • 67
5
votes
2 answers

Uncaught Exception in google analytics using Easytracker

I am using just this in every Activity: @Override public void onStart() { super.onStart(); EasyTracker.getInstance().activityStart(this); } @Override public void onStop() { super.onStop(); …
Archie.bpgc
  • 23,812
  • 38
  • 150
  • 226
3
votes
1 answer

Android: GoogleAnalytics vs EasyTracker

I didn't quite got the difference between using EasyTracker easyTracker = EasyTracker.getInstance(); and Tracker tracker = GoogleAnalytics.getInstance(this).getTracker("UA-XXXX-Y");
RCB
  • 2,253
  • 2
  • 25
  • 49
2
votes
1 answer

How to set Google Analytics api key programmatically?

I can't find how to do this. There's this documentation: https://developers.google.com/analytics/devguides/collection/android/v2/advanced - it shows this method: gaInstance.getTracker(trackingId) Where trackingId is the api key, but I think this…
User
  • 31,811
  • 40
  • 131
  • 232
1
vote
0 answers

How can I use EasyTracker in Android

I have a Android project and plan to send data to Google Analytics. I would like to use EasyTracker and send activity start and stop info. I found just a function like this: EasyTracker.getInstance(this).activityStart(this); It works, but in Google…
Javad Abedi
  • 396
  • 1
  • 3
  • 11
1
vote
1 answer

Google Analytics v4, Campaign Not Found

I am always getting "no campaign data found" error. Following is the steps that I followed. Please tell where I am wrong. I am using Android Studio. 1) I included latest google play library project.2) Added following lines in XML file
Utkarsh Srivastav
  • 3,105
  • 7
  • 34
  • 53
1
vote
2 answers

Android EasyTracker class do not contain method getTracker()

I am using EasyTracker in my PreferenceActivity @Override public void onStart () { super.onStart(); EasyTracker.getInstance(this).activityStart(this); } @Override public void onStop () { super.onStop(); …
Michal
  • 3,584
  • 9
  • 47
  • 74
1
vote
1 answer

SherlockActivity with EasyTracker

I am trying to implement Google Analytics v2 in Android, together with ActionBarSherlock. To make my life easier a bit without having to put EasyTracker code in every activities, I created a new Activity called SherlockTrackedActivity, and implement…
neobie
  • 2,847
  • 5
  • 27
  • 31
0
votes
0 answers

How to Migrate old Android Analytics v2 App to modern playstore

I have an app that was last updated awhile ago that needs to be updated to run on the current Play Store. However, Google Analytics V2 is no longer available and this project depends on it. What is the recommended path to upgrade this? Play Store…
0
votes
2 answers

Should we create instance of EasyTracker multime times when trying to send logs to Google Analytics dashboard

I am using Google Analytics in android project. For this wherever I'm sending analytics I'm creating object of EasyTracker class. Suppose user is on First Activity then I'm creating the object of EasyTracker in onCreate so when user navigate to…
N Sharma
  • 33,489
  • 95
  • 256
  • 444
0
votes
1 answer

Fackbook SDK causing error with EasyTracker

My problem is that when I add the facebook sdk to my current android project it causes and error with public void onStart() { super.onStart(); EasyTracker.getInstance(this).activityStart(this); // This is where the error is. } The error…
1
2