Is there a way to disable Firebase analytics automatic screen reporting?
I have a few UIViewCOntroller's that i don't want to be reported.
So i want to manage the screen reporting my self.
Setting FirebaseAutomaticScreenReportingEnabled
to NO
didn't work
Thanks
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.
Automatically track screens If your app uses a distinct UIViewController or Activity for each screen, Analytics can automatically track every screen transition and generate a report of user engagement broken down by screen. If your app doesn't, you can still get these reports by manually logging screen_view events.
Google analytics also supported mobile analytics though android and IOS sdk's which sent Screen hits to google analytics. There was a difference between Mobile and web google analytics accounts. Firebase is a platform developed by Google for creating mobile and web applications.
Enable debug mode by passing the -FIRDebugEnabled argument to the application. You can add this argument in the application's Xcode scheme. When debug mode is enabled via -FIRDebugEnabled, further executions of the application will also be in debug mode.
Info.plist
will have entries like this:<key>FIREBASE_ANALYTICS_COLLECTION_ENABLED</key> <string>NO</string> <key>FIREBASE_ANALYTICS_COLLECTION_DEACTIVATED</key> <string>YES</string> <key>FirebaseScreenReportingEnabled</key> <false/>
In this answer I have shown the exact, new, syntax needed - for late 2018.
Edit your plist as "source". Paste in the above. It will not work if you try to use the convenient "value entry" interface in Xcode.
You will at last, finally, see this ...
Unfortunately, the details of this operation seem to be changing from time to time.
So it is uncertain if this precise procedure still works in all cases and in all variations. Good luck!
You should be able to disable the Automatic Screen reporting by adding the plist flag FirebaseScreenReportingEnabled to Info.plist and set its value to NO (Boolean). Note that the value must be a Boolean and not a String.
Google Analytics for Firebase does NOT support the case of manual-only screen reporting. The plist flag FirebaseAutomaticScreenReportingEnabled has been renamed to FirebaseScreenReportingEnabled to reduce that confusion. We support automatic + manual screen reporting or no screen reporting at all.
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