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.
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'm using sign in with google via firebase, but I'd like to register a custom receiver (https://developers.google.com/identity/protocols/risc#register_your_receiver) to detect Security Events (https://developers.google.com/identity/protocols/risc#handle_events)
As reported in the errors table here https://developers.google.com/identity/protocols/risc#error_codes
403 "Existing stream configuration does not have spec-compliant
delivery method for RISC." -> "Your Google Cloud project must already
have a RISC configuration. If you are using Firebase and have Google
Sign-In enabled, then Firebase will be managing RISC for your project;
you will not be able to create a custom configuration. If you are not
using Google Sign-In for your Firebase project, please disable it, and
then try to update again after an hour."
I undestand that Firebase manage RISC for my project. Does it means that I cannot detect security events with custom receiver?
Is there any way I can intercept these events via Firebase?
Thanks
I contacted Firebase support team and they said that unfortunately, at the moment, there's no way to intercept these events using Firebase Authentication, it could be a new feature.
I am using Firebase and GA4 for my Android App. Currently, I am running an A/B-Test via Firebase.
Is there a way to select a Segment or Audience based on the A/B-Test-Variant? Or do I need to send my own events to identify the variant a user is using?
This question already has answers here:
Firebase - log events from server side cloud functions [duplicate]
(1 answer)
Firebase analytics from remote REST API?
(3 answers)
Closed 2 years ago.
Firebase Client (JS) supports Firebase Analytics.
In there, I use the method logEvent to log my events to GA v2 and see great funnels.
However, some events, like database events, or HTTP requests coming from a 3rd party aren't tracked by the client, obviously, so we are looking at how to log events from the firebase admin SDK, or just via a Google Analytics API.
It, unfortunately, seems like the "google analytics measurement protocol" used in firebase analytics doesn't have an API. Official or not.
I am looking for a canonical response to know if it is or is not possible to log events (or page views) from the firebase admin SDK or generally using whatever API / library in Node.JS
An immediate solution was to try to use the firebase client SDK in Node, however from this page: https://firebase.google.com/docs/web/setup It seems like if I instantiate the firebase client SDK on a Node.js server, I cannot use the analytics feature.
Edit:
While there are other similar questions, they are over a year old, and the responses might not be valid anymore.
Firebase analytics log events with cloud functions
Can I track my Firebase function in Google Analytics?
Firebase - log events from server side cloud functions
Firebase analytics from remote REST API?
I have Firebase analytics data and enabled BigQuery. But I have a requirement to validate the number of events and screens at app side under automated UI testing. Anyway to access and validate the Firebase analytics data at ios app side programmatically either in swift or objective c?
There is no API to retrieve Google Analytics data through Firebase. See Can I get firebase analytics data using query?
There is also no API for BigQuery to allow secure access directly from your client-side app. That would be a significant security risk, as you'd be exposing data about all of your users to all of your users.
The usual way to implement functionality is to create a custom endpoint (either using a server you already have, or Cloud Functions for Firebase) that exposes just the information your clients need access