Skip to main content

Firebase Analytics demystified

Alex Cirstea5 February 20184 min read
Firebase Analytics demystified
			<span style="font-weight: 400;">After a steep learning curve into the world of Firebase Analytics or Google Analytics for Firebase, it seems that a blog post about it would be much valued and appreciated. I’ve compiled a list of the most frequently asked questions.</span>

1. How does Firebase Analytics define a session?

Firebase Analytics defines a session as a user engaging with your app for a minimum amount of time (10 seconds by default) followed by your user not engaging with your app for a certain amount of time (30 minutes by default). So if a user is using your app, switches to camera and takes a photo, then goes back to your app, that's considered one session. Another example is if the user accidentally taps on your app then switches away to open a different app, this won’t record a session in Firebase (if they do this within 10 seconds). You can manually define the duration of a session: for Android within the FirebaseAnalytics class and for iOS through the FIRAnalyticsCofiguration class.

2. How does Firebase Analytics define a unique user?
In Firebase Analytics, a user is synonymous with an instance of an app this is called App Instance ID.  As the name suggests, this identifies a unique instance of the application on a device, so that if the app is uninstalled and reinstalled, it will have a distinct App Instance ID. Updating the app to a newer version does not change the App Instance ID. If you export Firebase data to BigQuery you will find this dimension under: app_instance_id now changed to user_pseudo_id

You can find the full list of dimensions exported to BigQuery here.

3. Can I manually supply my own user ID into Firebase?

Yes, you can supply your own user ID using the FirebaseAnalytics.setUserId method. You can then link the account to BigQuery and count distinct users using BigQuery. This custom user ID will show in your BigQuery table under: user_id

4. How much time does it take for Firebase analytics first report?

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. When the device has a network connection and it’s time to upload the data, Firebase will attempt to upload the data. If the upload is successful the data is deleted from the device. If the device is offline the app will wait for connectivity before attempting to upload again.

Short answer: Yes, events are stored locally and uploaded when there is an internet connection.
Note: Data older than 72 hours will be ignored.

6. Where does Firebase Analytics gets demographics and interests data from?

On Android, the data is derived from the Android Advertising ID, which is automatically collected on devices with Google Play Services installed.

On iOS, this data is derived from the Advertising Identifier (IDFA) when available (i.e. when your app links to the Ad Support Framework).

Note: Demographic reports are thresholded for privacy reasons. Once you have enough data (at least 10 users per age/gender bracket), data for that bracket will be shown

7. Can Firebase Analytics combine the data for the Android and iOS version of the same app?

No, currently there's no way to view combined analytics for multiple apps in the same project. You can do this with BigQuery, of course, but there's no out-of-the-box solution for the Firebase Analytics reports. After recent releases, project level reporting nows allows you to see what's happening across all the apps (iOS and Android) in a project, while also being able to apply a filter to view them individually.

8. Why I can’t see custom parameters in my Firebase reports?

In order to see custom parameters in your Firebase reports you need to register these parameters with their corresponding event in the Firebase interface. To enable these parameters in Firebase go to Events, then in the row with the event you want to add the parameter click on “Edit parameter reporting”.

Note: You can register up to 50 event parameters per app (40 numeric and 10 text).

These don’t report retroactively in the UI, custom parameters only report from the point you add them. But historical data is available in BigQuery.


Suggested content

Measurelab awarded Google Cloud Marketing Analytics Specialisation

At the start of the year, if you’d asked us whether Measurelab would be standing shoulder to shoulder with Europe’s biggest consultancies by September, we would've been surprised. Not because we don't believe in ourselves, but because these things feel so distant - until suddenly, they’re not. So, here it is: we’ve been awarded the Marketing Analytics Services Partner Specialisation in Google Cloud Partner Advantage. What’s the big deal? In Google’s own words (with the obligatory Zs): “Spec

Will Hayes11 Sept 2025

BigQuery AI.GENERATE tutorial: turn SQL queries into AI-powered insights

BigQuery just got a major upgrade, you can now plug directly into Vertex AI using the new AI.GENERATE function. Translation: your analytics data and generative AI are now best friends, and they’re hanging out right inside SQL. That opens up a whole world of new analysis options for GA4 data, but it also raises some questions: * How do you actually set it up? * What’s it good for (and when should you avoid it)? * Why would you batch the query? Let’s walk through it step by step. Step 1: H

Katie Kaczmarek3 Sept 2025

How to start forecasting in BigQuery with zero training

If you’d told me five years ago that I’d be forecasting product demand using a model trained on 100 billion time points… without writing a single line of ML code… I probably would’ve asked how many coffees you’d had that day ☕️ But its a brand new world. And it’s possible. Let me explain What is TimesFM? TimesFM is a new foundation model from Google, built specifically for time-series forecasting. Think of it like GPT for time, instead of predicting the next word in a sentence, it predicts t

Katie Kaczmarek14 Jul 2025