how to get Firebase Analytics App Instance Id for Web App? - firebase

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

Related

FCM Security Alert

Security alert
Your app contains exposed Google Cloud Platform (GCP) API keys. Please see this Google Help Center article for details.
I have an android application uploaded in google play store which uses Firebase for App Cloud Messaging in android. I have recently got an alert from play console that
Security alert : Your app contains exposed Google Cloud Platform (GCP) API keys. Please see this Google Help Center article for details.
Could you please tell anyone to resolve this issue.
Thanks in advance.
Hi this warning would come because the google cloud platform api key you are using in your app might be exposed you have to put the restriction on this api key from Google Cloud Console.
There are two type of restriction
1. Application Restriction
2. API Restriction
Please refer below link
https://cloud.google.com/docs/authentication/api-keys#api_key_restrictions

Integrating Branch.io with Google Analytics when app is connected using Firebase

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.

Firebase Rest API for android app performance results

As we all know that App performance monitoring has been provided by Firebase. I have integrated my app with the same and got results at Firebase console. I would like to get the results through Rest API provided by Firebase or some other way. Please let me know if any API provided by the Firebase for the same.
There's currently no REST API for Firebase Performance Monitoring. Please file a feature request if you would like to see that.

How does a firebase project need to be configured to get Google login working from an Expo Snack?

I'm trying to get Google Login working with Firebase from an Expo snack. I can login with Google and get the idToken and accessToken, but when I try to signInWithCredential to Firebase, I get a message that "the Google id_token is not allowed to be used with this application.". I feel like I'm missing some Firebase configuration step that I couldn't find in any of the Expo Firebase tutorials.
What step might be missing in my Firebase configuration or this Expo snack? https://snack.expo.io/HJWiiNRtW
Older post, but for posterity sake:
Your setup on the Expo snack looks fine. The problem you are having is a result of a mismatch between the client ID in the google developer console and firebase google Web SDK settings.
From google developer console, in your app, this will be the Client ID for Web application
603386649315-vp4revvrcgrcjme51ebuhbkbspl048l9.apps.googleusercontent.com
there will also be a client secret in there too.
In the firebase console for your app, in the authentication section, under google, click on Web SDK Configuration
and put the above noted project number (Web client ID) and client secret, and put these in their respective spots.
You will see that the project # being referenced in the error "873097287154..." will already be in the Web Client ID text box which is what you will replace with the client ID from google as noted above.

Firebase Analytics to Google Analytics, how to retrieve the Client ID?

we are planning to move from the GA SDK to the Firebase SDK. Within the GA SDK there were options to retrieve the google analytics client ID (https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#cid). This was fundamental since we transferred this value to the WebView (within the app), so that the customers tracking across native/webview was possible.
Does anybody know how to retrieve this client ID within firebase analytics SDK (iOS & Android)?
Thanks!
The short answer is no - the client ID equivalent (app instance ID) is not currently accessible through an SDK API.
The longer answer :
Firebase Analytics currently only supports logging events from native code. And so, the js code in your webview would call native code to log events and you don't need access to the app instance ID.

Resources