Get Firebase Analytics Historic Data using BigQuery - firebase

I've linked firebase analytics app to BigQuery and getting raw data under app_events and app_events_intraday tables.
Our major requirement behind using BigQuery is to get analytics data that we get under Firebase analytics dashboard e.g. active_users, new users, audience geo locations and so on.
We can get these kinds of data using GA REST API for web applications but here we are using firebase app for mobile application and we came to know that BigQuery is the only option to get analytics data.
Can I get google analytics historic data like I get it on Firebase analytics dashboard?
Also, I get this data by downloading CSV from the same dashboard but that is a manual approach and I am looking to automate it.
Please acquaint me with the right approach to get analytics data for firebase app.
Thanks!

Related

Extracting historical data out of Google Analytics

Any ideas how I get historical data out of Google Analytics?
My problem here is I didn't realise the Firebase / Analytics export to BigQuery wasn't retrospective for history, so I only have data from when I turned on the integration and I need everything from when the Firebase App was launched. The main data I need is events with their parameters.
I have tried a few things:
Connect PowerBI to Google Analytics. I can authenticate and it only
shows "Default Account for Firebase" with no children - it doesn't
show the apps underneath that account.
https://ga-dev-tools.appspot.com/query-explorer/ has the same
problem (not showing child properties).
I can load the
properties and therefore analytics dataset using Google Data Studio,
but this does not have the functionality I require that is in Power
BI. I also couldn't locate the event parameters which I need either.
Any ideas on how to export the data?
You can try to use Google Analytics Data API to export report programmatically: https://developers.google.com/analytics/devguides/reporting/data/v1
However the data are not raw like with BigQuery Export. So if you want raw data there are no solution for the historical data.

Bigquery backfill table from Firebase Analytics [duplicate]

I have setup Firebase analytics data to BigQuery. However I received my first export today and it contains all yesterdays user statistics. That is great but I need lifetime statistics history or at least last month's data.
Do I already have access to my entire historic analytics data threw Big Query but I and I do not know how to access it? If so can you point to documentation or give a quick walk threw?
Is it even possible to get the full (or at least a longer period than a day) historic analytics data?
Bonus question: Can I directly access data that is used in Firebase analytics console? They should be feeding it with some API for some things I need aggregates would be sufficient. So is there http://analytics.firebase/data.json I could access while logged in to my Firebase account to save data to my machine?
firebaser here
Firebase Analytics does not expose the historical event level data. It only exposes aggregate information.
Complete event data is only available from the moment you enabled the BigQuery connection. No data from before that time will be added to BigQuery.
The data from the analytics reports that is shown in the Firebase Console is available through the Analytics Data API. See Is there any api for dashboard analytics data?

Retrieve Firebase analytics console data via rest api [duplicate]

Is there any way i can query in my app for data from the analytics tab of dashboard?
For example:
ref.on("value", function(dashboard) {
console.log(dashboard.concurrentUsers)
});
From the "dashboard.concurrentUsers" in your question, it looks like you're trying to get the data from the Analytics tab of your dashboard.
As of Oct/Nov 2020 there is an Analytics Data API that you can use to run Analytics reports and retrieve data
You can also enable the BigQuery integration. Doing this means that all Google Analytics for Firebase events from that moment on will be written to BigQuery, where you can query them. This is the raw data, the events written by your apps, and not the aggregated data that you find in the dashboard.

How to get an export of firebase analytics full historic data?

I have setup Firebase analytics data to BigQuery. However I received my first export today and it contains all yesterdays user statistics. That is great but I need lifetime statistics history or at least last month's data.
Do I already have access to my entire historic analytics data threw Big Query but I and I do not know how to access it? If so can you point to documentation or give a quick walk threw?
Is it even possible to get the full (or at least a longer period than a day) historic analytics data?
Bonus question: Can I directly access data that is used in Firebase analytics console? They should be feeding it with some API for some things I need aggregates would be sufficient. So is there http://analytics.firebase/data.json I could access while logged in to my Firebase account to save data to my machine?
firebaser here
Firebase Analytics does not expose the historical event level data. It only exposes aggregate information.
Complete event data is only available from the moment you enabled the BigQuery connection. No data from before that time will be added to BigQuery.
The data from the analytics reports that is shown in the Firebase Console is available through the Analytics Data API. See Is there any api for dashboard analytics data?

Is there any api for dashboard analytics data?

Is there any way i can query in my app for data from the analytics tab of dashboard?
For example:
ref.on("value", function(dashboard) {
console.log(dashboard.concurrentUsers)
});
From the "dashboard.concurrentUsers" in your question, it looks like you're trying to get the data from the Analytics tab of your dashboard.
As of Oct/Nov 2020 there is an Analytics Data API that you can use to run Analytics reports and retrieve data
You can also enable the BigQuery integration. Doing this means that all Google Analytics for Firebase events from that moment on will be written to BigQuery, where you can query them. This is the raw data, the events written by your apps, and not the aggregated data that you find in the dashboard.

Resources