我在我的应用程序中使用谷歌分析,我希望用户能够启用或禁用分析跟踪。文件上说:
GoogleAnalytics.getInstance(this).setAppOptOut(true);和:
You can enable an app-level opt out flag that will disable Google Analytics across the entire app.
Note that this flag must be set each time the app starts up and will default to false.对我来说,这是令人困惑的,因为我不知道我是否必须将setAppOptOut设置为true或false,如果我想完全禁用分析。那么,布尔值必须是真还是假才能完全禁用分析?
发布于 2016-08-08 08:49:31
若要禁用它,请将其设置为true。默认情况下,它被设置为false,这意味着默认情况下它是启用的。
https://stackoverflow.com/questions/38824721
复制相似问题