I need to extract raw events from Firebase Analytics using python SDK. Actually, we can link a BigQuery to a firebase and access raw events through BigQuery. But it is not clear from the documentation is there any other ways to extract events without BigQuery?
2
Answers
There is an Analytics Data API that you can use to run Analytics reports and retrieve data.
The Google Analytics Data API gives programmatic access to users by country.
In Data API requests, you’ll need to identify your Google Analytics 4 (GA4) property by its ID; this ID is different from the Firebase project. There are client libraries in Java, Python, Node.js, and other languages to simplify your implementation.
You could download CSV file of your Analytics reports. Though, Google Analytics exports only up to 5k rows when you download a report as a CSV.
To export a report:
You could check this for your reference.