How to use Google Analytics web+api property to fetch analytics data and display on third party dashboard - google-analytics

AS Google Analytics Services SDK sunset On October 31st, 2019 they stop processing incoming hits for this property. and ask to use latest App + Web property, which utilizes Google Analytics for Firebase SDK.
I have successfully linked firebase with app+web property.
Now my question is , how i can fetch that analytics data useing that property ID and display on third party website? I am successfully able to capture app analytics data i just want to display that report with API. how i can use propertyID to fetch that data.
With web_app property there is no View(ViewID) as previous.
Any help on this?

For GA4 Properties, you can use the Google Analytics Data API v1 to fetch analytics data and display on a third party site. This API can produce reports of active users by date and other useful dashboards.
See the Data API v1's developers site for more information: https://developers.google.com/analytics/trusted-testing/analytics-data
When fetching analytics data in the Analytics v3 and Analytics Reporting v4 APIs, a view id is specified. As the question suggests, GA4 properties do not have views. GA4 properties cannot be used in Analytics v3 and Analytics Reporting v4 APIs.
This question asks about "App + Web" properties. For context, App + Web Properties were recently renamed to GA4 Properties. See the blog post for more information: https://blog.google/products/marketingplatform/analytics/new_google_analytics/

There's no public API to get the firebase-backed App + Web analytics data. However, you might have enabled BigQuery integration and use BigQuery API to make requests to analytics tables.

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.

Retrieve GA3 and GA4 data with same API?

So we are using Reporting V3 API in our custom dashboard to retrieve custom reports from multiple GA properties. Now some of our customers have GA4 properties which doesn't show up in properties list. Question is, to support both versions (GA3 and GA4) the only alternative now is to use Reporting V3 and Data API for different properties or did we miss something and there's one API which can be used for both GA versions?
There are two versions of Google analytics now Universal analytics and GA4 they are completely different and have different APIs designed for each one.
Google analytics reporting api allows you to access data from Universal analytics accounts.
Google Analytics GA4 is a completely different system and is not supported by the reporting api to access data behind a GA4 account you will need to use the Google analytics data api
there is also the Google analytics admin API which is the equivalent for the Management api for GA4. so if you want to be able to list a customers GA4 accounts you will need to use that api as well.
Note: The admin api is currently in alpha, and the data api is currently in beta. Take that into account before developing production applications using these apis.

How to add Google universal analytics to Google analytics 4 only?

I have create a Google analytics 4 property and been running and gathering data for while now.
I need some external tools to integrate with it and I saw developers reporting that GA4 does not have an API yet, so it does not support any integrations.
I saw that you can create a dual UA and GA4 property but I was unable to find how to add UA to existing GA4 property.
In short: How do I add universal analytics view without loosing any data or integrate with external tools i.e. slack bot posting regular updates? (work around with big Query?)
GA4 does have an API. You can use the Google Analytics Data API v1 to fetch analytics data. The developer's site for this API has more information: https://developers.google.com/analytics/devguides/reporting/data/v1. The API is currently available at an Alpha (preview) stability. The API will be entering Beta shortly.
When you read about creating dual Property it means tracking with both GA4 and Universal Analytics separately. They are 2 different scripts that track data in different platforms with different model.
Therefore you can create a new Universal Analytics Property in your Google Analytics Account and insert that code in the pages of your site, however it will start tracking from that moment on, you cannot have the history, both because you cannot transport data from a Property to the another (even if they were 2 Properties of the same type), and because GA4 has a completely different data collection model.
In any case, from the moment you start tracking with Universal Analytics then you can query the data with the relative API (i.e. Analytics Reporting API).

Google Analytics Reporting API V3/V4 compatibility with Google Analytics 4 (GA4)

Today we use Google Analytics Reporting API V3 (core reporting API v3 using java SDK google-api-services-analytics-v3-revxxxx.jar) in our system to connect and get data from Google Analytics. For this, we need properties that are based on Universal Analytics (UA-xxxx). We use the service account approach for connecting to Google Analytics and fetching data.
From looking at the information available at https://developers.google.com/analytics/devguides/reporting it seems that we cannot use the v3 API with the new GA4 properties and we would have to use Data API V1. Is this correct? Any information around this would be helpful.
Yes, the data model of GA4 is completely different from that of Universal Analytics for which dedicated APIs are required.
To date, GA4 is still young and constantly evolving so many new improvements and features will come out in the near short future also from a programmatic point of view.
Anyway you can still create a Universal Analytics Property by 'show more option' button when you create a new one.

Would analytics.js be affected by Google Analytics mobile apps reporting and the legacy Google Analytics Services SDK sunset

We have a web application that uses analytics.js of google analytics, and we received an email from google analytics team stating that:
This is a reminder that your Google Analytics account(s) XYZ and their
properties listed below use the older style of Google Analytics mobile
apps reporting and the legacy Google Analytics Services SDK, which
will be sunset starting this October when we will stop collecting data
for your property
....
What will happen to my Google Analytics properties listed above?
• Starting in October, we will begin to decommission properties that
were identified at the time of our first notice as receiving data
exclusively from the Google Analytics Services SDK.
• Data collection and processing for such properties will stop October
31, 2019.
• Reporting access through our UI and API access will remain available
for these properties’ historical data until January 31, 2020.
• After our service is fully turned down in February 2020, these
legacy properties will no longer be accessible via our Google
Analytics UI or API, and their data will be removed from Google
Analytics servers. You will receive additional notification as these
deadlines approach.
My questions are:
would analytics.js be affected by Google Analytics mobile apps
reporting and the legacy Google Analytics Services SDK sunset?
If I create a new Apps property or (Apps and web) property today, will it be decommission on October?
Thanks in advance
No, analytics.js won't be affected. Analytics.js is the library you're using to send data to GA.
If you create a new apps property, the wizard would walk you through and create a Firebase property, which is what it is suggested migration path in the sunset. There is also the new "Web and App" property type that would allow you to track app and web users in the same property.

Resources