Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disabling firebase automatic screen reporting

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

like image 991
ilan Avatar asked Jun 25 '17 13:06

ilan


People also ask

How do I turn off firebase 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 screen view in firebase?

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.

What is the difference between Google Analytics and Firebase Analytics?

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.

How do I enable FIRDebugEnabled?

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.


2 Answers

For 2018, your 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/> 
  1. Critical: Surprisingly this is in >>> YOUR <<< Info.plist. NOT the OTHER strange plist added by Google!

There are two plists!!!

  1. In this answer I have shown the exact, new, syntax needed - for late 2018.

  2. 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 ...

enter image description here

2019...

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!

like image 122
Fattie Avatar answered Oct 05 '22 23:10

Fattie


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.

like image 44
AniV Avatar answered Oct 05 '22 23:10

AniV