I have an application, in which I set a tracker. I use tracker = GoogleAnalyticsTracker.getInstance(); and tracker.startNewSession("<UA number", this); inonCreate() in every activity. What I’m interested in – is it efficient to start new session in every separate activity or I can do that in my custom activity manager? In the second case I’m not actually sure where to stop the session? Currently I do this in every activity in onDestroy().
I have an application, in which I set a tracker. I use tracker =
Share
Don’t worry you are doing fine.
If you have a lot of activities you can make a parent activity which handles the tracking like the example here.
Remember to track a page view in
onResume()