从Android的预发布报告中禁用Google Analytics(分析) [英] Disable Google Analytics from Android pre-launch reports

查看:203
本文介绍了从Android的预发布报告中禁用Google Analytics(分析)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Google Play开发者控制台上测试了新的发布前报告.虽然效果很好,并且可以遍历所有屏幕并对其进行测试,但这也会影响您在Google Analytics(分析)上的统计信息.

I have tested new pre-launch report on Google Play developer console. While it is great and goes trough your all screens and test them it also affects your statistics on Google Analytics.

是否可以从Google Analytics(分析)中排除这些测试?如何排除?

Is it possible to exclude those testings from Google Analytics and how?

我知道我可以上传APK只是为了在禁用了GA的情况下进行测试,但是比起每次我都应该上传另一个启用了GA的APK并打开和关闭发布前的报告测试,这不是我想要的.

I know that I can upload APK just for testing with disabled GA, but than every time I should upload another APK with enabled GA and switch on and off pre-launch report testing and that is not what I want.

推荐答案

在Firebase测试实验室中运行的预发布报告.

Pre-launch reports run in the Firebase Test Lab.

根据他们的文档,这是您如何检测到您正在Firebase测试实验室中运行的方法.

According to their documentation, here is how you could detect that you're being run in the Firebase Test Lab.

String testLabSetting = Settings.System.getString(context.getContentResolver(), "firebase.test.lab");
if ("true".equals(testLabSetting)) {
  // Do something when running in Test Lab
}

来源: https://firebase.google.com/docs/test-实验室/android-studio

这篇关于从Android的预发布报告中禁用Google Analytics(分析)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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