How do I fetch realtime stats from the analytics API? The documentation and examples does not work with the newest Google API:
Examples:
https://developers.google.com/analytics/devguides/reporting/realtime/v3/reference/data/realtime/get#examples
Library installed:
https://github.com/google/google-api-php-client
I have the analytics reporting for non-realtime statistics working, only trying to find how to get the realtime number of visitors.
Thanks in advance.
Related
From https://support.google.com/analytics/thread/160902664?hl=en
Hi, I have connected my Google Search Console with Firebase Analytics, and Firebase Analytics with Google Cloud Bigquery, after waiting for a few days, I still don't receive anything from Google Search Console, only Firebase Analytics events.
Did I do something wrong, or something is missing? Is it even possible? (And yes I have a bunch of data in Google Search Console)
I'd really love not having to build a pipeline on top of Google Search Console API, and instead use Google Cloud Bigquery.
Thanks a lot for your feedback :)
We currently have hundreds app on Google Analytics Mobile. We understand we need to migrate over to Google Analytics for Firebase. We have some questions which we need help to understand:
Current set up:
Currently we have multiple Google Cloud Platform accounts each with a number of API projects (one per app). Each API Project ID is used to created a Firebase Project for that Google Platform account.
In (old) Google Analytics Mobile we use the the REST API to get data for each app to be displayed in a custom dashboard:
sessions
unique users
demographics
geographic
affinity groups
Questions:
A) How do we replicate this in Google Analytics for Firebase? Is there a REST API for Google Analytics for Firebase to retrieve this information?
B) I understand an option is to migrate the Firebase analytics into BigQuery? Does BigQuery provide a REST API to extract the above data ? Is there a cost to using BigQuery.
C) Given we have multiple Google Cloud Platform accounts and each with multiple API Projects and linked to a Firebase project. Can all these Firebase projects be connected to the same BigQuery instance?
Many thanks
I am trying to list all google analytics properties connected to a google account.
While this works fine using the google analytics management api, it seems the connected firebase projects are missing:
While in the analytics web UI the firebase property is listed. I took a look at how Google itself queries for this data and they use some kind of internal API:
https://analyticssuitefrontend-pa.clients6.google.com/v1/search/entityHeaders
Result:
I tried adding a firebase related scope (https://www.googleapis.com/auth/firebase.readonly) to my OAuth authorization but the property was still missing.
How can I query for the full list?
As DaImTo mentioned in a comment these systems are separate and firebase analytics data can not be queried via the google analytics API. This also holds true for listing connected firebase projects.
The confusion might arise, because google provides access to firebase analytics data under the hood of the google analytics website.
I want to integrate Branch.io with the Google Analytics property for my app.
I have succesfully linked my app to Google Analytics using Firebase, but since I used Firebase as the tracking method, I don't have any Tracking ID, that I can enter in Branch.io's data integrations.
Has anyone found a solution to this?
Unfortunately, we do not have direct integration with Firebase. You can switch to Google Analytics to obtain your tracking ID. You can find more info on our documentation.
I am using node js Firebase SDK.
How can I access analytics data from Firebase, with the help of Firebase admin API.
Update: there is now an API to get the Analytics reports data. See my answer here: Is there any api for dashboard analytics data?
You can also:
download the analytics report data from the Firebase console by clicking the Download CSV option from the ⠇ overflow menu. Also see my answer here: Is it possible to embed Firebase Analytics data from my apps into a webpage?
connect Firebase Analytics to BigQuery to export the raw events, and query them in BigQuery, or visualize them with Data Studio.