Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get Firebase analytics collection enable status

Tags:

For firebase analytics, we can enable/disable analytics collection by calling

- (void)setAnalyticsCollectionEnabled:(BOOL)analyticsCollectionEnabled

But how can we get the enable status of Firebase analytics? Is there a method like:

- (BOOL)isAnalyticsCollectionEnabled
like image 608
jokeman Avatar asked Apr 18 '17 23:04

jokeman


People also ask

How do I know if Firebase Analytics is working?

In the Firebase console, open your project. Select Analytics from the menu to view the Analytics reporting dashboard. The Events tab shows the event reports that are automatically created for each distinct type of event logged by your app. Read more about the Analytics reporting dashboard in the Firebase Help Center.

How long does it take for Firebase Analytics to update?

It takes a few hours, normally around 3-4 hours but the documentation says that the dashboard updates “a few times every day” and it can take up to 24 hours. 5. Does Firebase Analytics work offline? Firebase with batch the events and store them locally on the device.

How to enable Firebase DebugView?

To enable Analytics debug mode in your browser, install the Google Analytics Debugger Chrome extension. Once installed, enable the extension and refresh the page. From that point on, the extension will log events in your app in debug mode. You can view events logged in the DebugView in the Firebase console.


1 Answers

Unfortunately you can't. Analytics are enabled by default, so you can perfectly track this yourself. From Firebase documentation:

Sets whether analytics collection is enabled for this app on this device. This setting is persisted across app sessions. By default it is enabled.

But, if your code eventually loses track of the current state, you should probably set it again to the desired on/off status just to be extra sure ;-)

like image 193
Paulo Mattos Avatar answered Sep 25 '22 11:09

Paulo Mattos