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
0
votes
2 answers

Easy Tracker issue

I am trying to set context for easytracker before using it in my on create method as : Context context= this; EasyTracker.getInstance().setContext(context); But getInstance is needing a context and when I call setContext, it becomes…
user3559063
  • 37
  • 2
  • 10
0
votes
1 answer

Google Analytics Version 3 for Android - Nothing is logged or tracked

WHAT I NEED My analytics screen is empty. 0 users, 0 sessions, etc. I have waited for a couple hours for some kind of tracking to show up but no luck. Is there any way that events are logged on LogCat? How do I have any kind of indication that…
lavi
  • 119
  • 1
  • 9
0
votes
1 answer

How to use EasyTracker with application which is having multiple Activities?

Can anybody tell me EasyTracker.getInstance(getApplicationContext()).activityStart(this); need to write on every Activities onStart() method. I am using Google analytic v3 SDK.
Shailendra Patil
  • 377
  • 2
  • 19
0
votes
1 answer

EasyTracker with SherlockFragmentActivity

I am having a hard time using Google Analytics EasyTracker in my Activities that extend SherlockFragmentActivity. When I try to use EasyTracker.getInstance().activityStart(this); in onStart, the compiler doesn't complain but the app crashes…
0
votes
1 answer

Configure EasyTracker programmatically

I am using EasyTracker in my app. I need to change the ga_trackingId programmatically and can't use the xml. I couldn't find any thing about it anywhere.. Is it posible? Thanks!
roiberg
  • 13,629
  • 12
  • 60
  • 91
1
2