enableAutoActivityTracking不能自动跟踪活动? [英] enableAutoActivityTracking not automatically tracking activities?

查看:214
本文介绍了enableAutoActivityTracking不能自动跟踪活动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,我正在初始化我的谷歌Analytics(分析)跟踪如下:

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);

它工作正常的发送自定义事件和这样的,虽然我没有看到任何自动活动跟踪(寻找下行为 - >活动 - >屏幕中GA)。难道我不能让这样此设置?

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?

推荐答案

你能不能也一定要叫<一href="https://developer.android.com/reference/com/google/android/gms/analytics/GoogleAnalytics.html#enableAutoActivityReports%28android.app.Application%29"><$c$c>enableAutoActivityReports GoogleAnalytics 类?我知道,电话是重复的,但不幸的是,我们一直没能解决这个问题呢。在即将到来的版本之一,我们将不再需要在两个地方调用此方法。

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.

如果以上都没有工作,请编辑的问题,并与标签的开头添加日志GAV

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

这篇关于enableAutoActivityTracking不能自动跟踪活动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆