enableAutoActivityTracking not automatically tracking activities?

我与影子孤独终老i 提交于 2019-12-17 19:39:10

问题


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?


回答1:


Can you also make sure you call enableAutoActivityReports on GoogleAnalytics class? I know that the calls are duplicated but unfortunately, we have not been able to fix this yet. In one of the upcoming versions, we'll remove the need to call this method in two places.

If this answer doesn't work, Can you also make sure that there is some screen name associated with the screens you are using.

If none of the above work, please edit the question and add logs with tag starting with "GAV"



来源:https://stackoverflow.com/questions/23230358/enableautoactivitytracking-not-automatically-tracking-activities

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!