How much time does it take for firebase analytics

2019-01-09 12:00发布

问题:

We wanted to try out the new analytics capabilities provided by firebase, and followed all the steps in the getting started guide.

We 've run the app, logged a lot of events and its been a few hours; yet there is no data on the dashboard - We just see a banner saying "Your analytics data will appear here soon"

How much time does it take to get our first reports, events, etc.?

回答1:

It takes a few hours. I would say it takes like 4 hours or something like that, based on current experiments.

Firebase says that it can take up to 24h hours, but the docs says that the dashboard updates "a few times every day".

And if you send the Firebase events to BigQuery, they create a new dataset there everyday, but it seems that the "old" events are not sent immediately, maybe that takes a few hours too, don't know yet.


If you want to test other features, or see if Firebase is working for your app, you can force a crash, and see it in the Crash panel, cause this works almost real time.
Or you can send a notification to all users, this should work too, and it is faster than waiting for 4h or more to see if it is working really.
Remember to add the dependencies if you are going to try this:

compile 'com.google.firebase:firebase-crash:9.0.0'
compile 'com.google.firebase:firebase-messaging:9.0.0'


回答2:

From the moment an event is logged it might take up to an hour for the event to be uploaded to Firebase Analytics server. First open is normally uploaded within 15 seconds after the app starts but the exact time depends on many factors. You can enable debug logging to verify the events are logged and uploaded.

On Android:

adb shell setprop log.tag.FA VERBOSE
adb shell setprop log.tag.FA-SVC VERBOSE
adb logcat -v time -s FA FA-SVC

On iOS:

  1. In Xcode, select Product > Scheme > Edit scheme...
  2. Select Run from the left menu.
  3. Select the Arguments tab.
  4. In the Arguments Passed On Launch section, add -FIRAnalyticsDebugEnabled.

Once the data is uploaded it takes about 3 hours for it to appear in the dashboard.

The export to BugQuery runs once a day so you need 24 hours to see the data after the events were uploaded.



回答3:

Why it just so happens I wrote a blog post on exactly this topic!

You should check it out for all the details, but the tl;dr is "a few hours", unless you're exporting your data to BigQuery.



回答4:

Firebase Analytics Event Update time on Firebase Console.

When an event is logged, It might take up to an hour for the event to be uploaded to Firebase Analytics server and to reflect on Firebase console.

You can enable debug logging to verify the events are logged and uploaded using the Android studio's terminal

- Make sure you are not connected to more than one device/emulator

adb shell setprop log.tag.FA VERBOSE
adb shell setprop log.tag.FA-SVC VERBOSE
adb logcat -v time -s FA FA-SVC