Can't retrieve Google Analytics for Firebase through API - firebase

I integrated my Firebase to my Google Analytics account by following this link. Now I can see my custom event in Google Analytics.
I managed to use the Google Analytics reporting v4 API to retrieve data for my web site because there is a View like indicated in the figure below :
I would like to use the same API to retrieve data in Google Analytics for Firebase. However, when doing the integration, no view is created like shown below :
I can't manage to find a link or a documentation to do it. Can help me about that ?
PS: I saw that it is possible to export Firebase data through BigQuery, however, I would like to avoid this possible if possible.
Regards and Thanks

Yassir,
It looks like your last screenshot shows a GA4 property, since it does not have any views. You can use the Google Analytics Data API to access GA4 properties.

Related

Is the GA User Activity API compatible with GA4?

Is it possible to retrieve user's data from a GA4 property using the User Activity API (https://developers.google.com/analytics/devguides/reporting/core/v4/user-reporting)?
I have checked the documentation but have not found anything so far. Some endpoints of the v4 API explicitly display a warning saying it is not compatible with GA4, but this User API does not display such warning.
no it is not as stated at the top of the page for the Reporting api Overview there for it apply sto the full Reporting API v4.
Note: This API does not support Google Analytics 4 (GA4) properties. Please use the Google Analytics Data API to access the new reporting features for GA4 properties.
As far as i can see there is no equivalent in GA4 yet.
Note: I pinged the team to have them add the quote to the top of that page as well.

How to use webDataStream to get data from Analytics Reporting Api after Analytics v4 update?

After https://analytics.google.com was updated to v4 there are no more views (profile ids). A user which registered after the update needs to set webDataStream properties in order to create and view a Report.
I can get those new properties from analytics admin api (https://developers.google.com/analytics/devguides/config/admin/v1) however i do not know how to use these properties with the analytics reporting v4 api. The analytics reporting v4 api requires the view (profile id).
I searched after some guides in https://developers.google.com but i cant find anything related to this topic after they updated analytics to v4.
You can also try this out by using the google analytics api explorer https://developers.google.com/apis-explorer and oauth playground https://developers.google.com/oauthplayground/ .
If anyone knows more Information about this, please feel free to share the knowledge. Thanks for your support and i hope that you guys will also be able to make some use out of this.
Marius,
The Core Reporting API V4 does not support GA4 properties, and can only be used to query Universal Analytics properties. In order to access data in the new GA4 properties, please use the Google Analytics Data API V1 (currently in preview).
If you problem is, that you still want to access the data via old APIs on new GA accounts, there seems to be the option to still create a Universal Analytics account when creating the new property (extended options).
You can also create both (GA4 and UA) the same time.
Found it here: https://github.com/spatie/laravel-analytics/issues/371

Google Analytics demo/sandbox account

I am working on a custom dashboard with React and Node that uses the Google Analytics API. I want to use a demo account to test how it works. Is there a way to achive that? I found this page but it explicitly says that it cannot be used with the API. Thank you!
You cannot use Google Analytics API whit Demo Account of Google Merchanding store. You have to use your own Property or create a new one and send hits with measurement protocol to populate some data.

Basic idea of Firebase + GTM, is Google Analytics completely necessary?

I'm somewhat confused about the flow of data in this integration, do I need a GA account to make use of GTM's functionality, or can I just keep the tags inside GTM/send them back to firebase?
I'm an iOS developer and need to tag my already existing firebase events in GTM, but not sure if I'm understanding the big picture here.
Thanks in advance!
You don't need to send data to Google Analytics. In fact, Firebase tags in GTM don't have any field where you can insert the Property ID of Google Analytics. Using them you send the events to the Firebase project that you have configured in its console.

How can I use the Google Analytics API to pull GA Account Change History?

I want to be able to pull the Change History report from Google Analytics... any ideas/help would be much appreciated!
*It looks like the AdWords API offers this function, but I need it for the Analytics API
You can't. The relevant API for this would be the management API, but that does not list a function to get the account history, so you do not have programmatic access to that.
You could probably write a script using a bowser automation framework like Selenium that logs into Google Analytics using your own credentials, navigates to the account history, downloads the HTML content of the account summary page and then parses it to extract the desired information, but that would not involve the Analytics API at all (and is nothing that can adequately described in a Stackoverflow answer).

Resources