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.
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.
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.
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.
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With