I'm currently initializing my Google Analytics tracker as follows:
GoogleAnalytics analytics = GoogleAnalytics.getInstance(context);
Tracker mGATracker = analytics.newTracker(context.getString(R.string.ga_code));
mGATracker.setSessionTimeout(300);
mGATracker.enableAutoActivityTracking(true);
It works fine for sending custom events and such, though I'm not seeing any auto activity tracking (looking under Behavior -> Events -> Screens in GA). Am I not able to enable this setting in this way?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…