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

查看:29
本文介绍了从 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 预发布报告中禁用 Google Analytics的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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