We have a service that uses googleapis library https://www.npmjs.com/package/googleapis to read data from Google Analytics. We want to migrate our analytics to GA4 soon, but I couldn't be sure about that library usage.
This is the code piece on how we initialize the analytics
const ga = google.analytics({
version: 'v3',
auth: authClient
});
I was searching about how to migrate it but couldn't find it. Does someone know about it? Many thanks.
Related
I am trying to log purchase event via Google Analytics 4 Measurement Protocol. if I read this documentation, it is said that I must have app_instance_id so I can send the data from our backend to GA4 server.
we are using Vue and Firebase Nuxt for our web app, but unfortunately, as you can see from the image below, I can't find a method to get app_instance_id
so how to get app_instance_id for web app in Firebase for web app? is it not available yet? please help
unfortunately, for now the app_instance_id is not available for web. please read the full explanation in Github from Firebase Analytics repo maintainer in here
I want to consume the google analytics reporting API in some other server application and in that application, I can only make the HTTP API call to any other third party services and can not include any external library.
Please let me know is there any way to consume the google analytics reporting API without library and consume directly using the HTTP API Call.
I am very new to google analytics and don't know much about google analytics.
any documentation or solutions or suggestions will be very helpful.
Regards,
Nitesh.
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.
We're building SDK for Android apps which hopefully be used inside many android apps.
We need analytics both for ourselves and for the companies who would implement our SDK.
Does it make sense to implement firebase analytics inside our SDK in order to achieve this requirements?
(I know that it works with big query so I thought I might be able to gain lots of value from it.)
Is it even possible? (because of the JSON needed for the hosting app)
If it does make sense, what I really need is a list of pros and cons for using it in this scenario.
You can integrate Firebase Analytics within your app, then track who uses your SDK by logging a custom event and parameters or any other information that you need.
Note that custom parameters are not directly displayed in your Analytics reports, however you can link your app to BigQuery to see these data.
As of now, this is not possible.
There is an issue created for this on Github.
https://github.com/firebase/firebase-android-sdk/issues/66
Initialize FirebaseApp without google-services.json
FirebaseOptions options = new FirebaseOptions.Builder()
.setApplicationId(applicationID) // Required for Analytics.
.setApiKey(apiKey) // Required for Auth.
.build();
FirebaseApp.initializeApp(context, options);
<provider
android:name="com.google.firebase.provider.FirebaseInitProvider"
android:authorities="${applicationId}.firebaseinitprovider"
tools:node="remove"/>
But the replies says as below:
Google Analytics for Firebase (GA4F) doesn't support dynamic
initialization. Our engineers are checking the possible solutions to
support this. It's just that we still haven't found a definite
timeline as to when (or if) this will be available. GA4F will not work
without the google-services.json file (or Gradle on your end). Even
though you can initialize the FirebaseApp dynamically through code,
GA4F will not recognize this and will only result in the error message
you are seeing. The scenario you are getting is only specific to
Google Analytics for Firebase. However, you can still use other
products like Firestore, Realtime Database, Storage even if you are
not using Gradle plugin.