Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable Google Analytics from Android pre-launch reports

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.

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

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.

like image 461
Bojan Bosanac Avatar asked May 28 '16 06:05

Bojan Bosanac


People also ask

How do I turn off Android Analytics?

If you need to deactivate Analytics collection permanently in a version of your app, set FIREBASE_ANALYTICS_COLLECTION_DEACTIVATED to YES (Boolean) in your app's Info.

What is pre launch report Google Play?

A pre-launch report is automatically generated when you publish an app to internal, closed, or open testing. It helps to identify issues proactively before your app reaches users. It includes tests for: Stability issues. Android compatibility issues.

What data does firebase collect?

By default, the Firebase SDK collects identifiers for mobile devices (for example, Android Advertising ID and Advertising Identifier for iOS) and utilizes technologies similar to cookies. On iOS, the SDK collects the Advertising Identifier if it is available.


2 Answers

Pre-launch reports run in the Firebase Test Lab.

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
}

source: https://firebase.google.com/docs/test-lab/android-studio

like image 196
bleuf1shi Avatar answered Sep 24 '22 06:09

bleuf1shi


One can exclude stats using filters (Administration ›Global Filters› Edit Filter). As I found one can use IP, domain or subdomain that will be excluded by Google Analytics stats.

In my project I have excluded my IP, so my development and test are excluded from Google Analytics. As I can notice, the same filters are applied at Firebase Analytics.

like image 37
ivan.panasiuk Avatar answered Sep 24 '22 06:09

ivan.panasiuk