Can anybody tell me EasyTracker.getInstance(getApplicationContext()).activityStart(this); need to write on every Activities onStart() method. I am using Google analytic v3 SDK.
Asked
Active
Viewed 218 times
1 Answers
0
Enable auto activity tracking by setting this line in your values/"analytics".xml
<!-- Enable Activity tracking -->
<bool name="ga_autoActivityTracking">true</bool>
and in every activity add this to your onStop
EasyTracker.getInstance().activityStop(this);

youssefhassan
- 1,067
- 2
- 11
- 17
-
you mean ga_autoActivityTracking will track all activities, no need to put code to start track on onStart() method. Is there any way to stop EasyTracker. – Shailendra Patil Jan 23 '14 at 11:39
-
If you mean to stop easytracker permanently, you can remove the sdk, but if you want to temporarily disable it you can close the auto tracking and put a boolean around the onstop line of code. – youssefhassan Jan 23 '14 at 11:45
-
It Means EasyTracker.getInstance().activityStop(this); needs to be written on every Activities onStop() method. – Shailendra Patil Jan 23 '14 at 12:16
-
Yes ,that is the only thing you have to do in your code and the library does all the other things – youssefhassan Jan 23 '14 at 22:46
-
Is this affect my application speed and is throw any exception? – Shailendra Patil Jan 24 '14 at 07:32
-
Not at all . I used it in many apps and never had any problem – youssefhassan Jan 24 '14 at 20:00