Context: We have natively integrated Firebase Analytics Events in our app, I need to now forward these events to 3rd Party marketing & attribution platforms.
As of today, I can either implement:
Google Tag Manager (GTM), or
Pass events by using Firebase Cloud Functions (Server-side).
Question: The documentation states one can extend Google Analytics for Firebase with Cloud Functions, but with an added clause:
Only events marked as conversion events are currently supported by
Cloud Functions. You can specify which events are conversion events in
the Events tab of the Firebase console Analytics pane.
I however stumbled unto this tutorial, where the company forwards all their Events with Firebase Cloud Functions (without limitations). I would like some clarification on whether this latter approach is really a best practice, or am I really only constrained to forward 10 Conversion Events through Cloud Functions (as stated in the documentation) ? Thanks in advance :)
Google Analytics for Firebase only sends conversion events to Cloud Functions for Firebase.
Related
My straight question is: since I am not interested in other Google Services, only Firestore, what is the difference between Firebase Cli and gcloud? Can I do all I need only with Firebase Cli or should I learn also gcloud?
I can easilly see that gcloud can handle more services than Firebase Cli. Also I can see Firebase Cli remenber me a lot the purpose of npm+ng cli when working with NodeJs/Angular (a simple analogy about scaffold/initialize/deploy). Nevertheless, our company will only use Firestore to take advantage of its Realtime Database pushing events to our mobile application.
I use Firebase Cli to type in my Windows command line and create a project in Firebase. I can see the result in Firebase Console and I also can see it in Console Cloud Plataform.
For me, who is total beginner with Google Cloud Plataform, it is a bit confused when prefer one over other. For instance, let's say I want to query data from Firebase Crashlytics from command line instead of logging from my Browser. Is it possible to use either Firebase Cli or gcloud? If both, which one is recommended for some company only interested in Firestore project?
This week I am struggling to figure out how to extract metrics regard my Firestore project and if I don't know what is the recommended tool for reach this task it make even harder to find the first steps. By extracting I don't mean see a beatifull dash in Google Console. I mean consume an endpoint providing me Firestore Metrics or, even better, subscribe my endpoint to Firestore project which will be called every time some issue happens (Other question asking exactly about getting Firestore metrics)
It is confusing and is partly the result of Google's acquisition of Firebase, the creation of what's now called Firestore (which is the unification of the original Firebase backend technology and Google Cloud Datastore), and that Google provides the Firestore service to both its Firebase and Google Cloud developer audiences.
As you've gathered, Google Cloud's CLI (Cloud SDK aka gcloud) and the Firebase CLI overlap in functionality. However, importantly:
both CLIs interact with a shared set of Google services (e.g. Firestore, identity, logging etc.).
there are some Google Cloud services not part of Firebase and vice versa
If you're focused on Firebase, you should be to able to stick with the Firebase CLI and continue to interact with Google's services through this Firebase lens.
If you include Google Cloud Platform services that aren't part of Firebase, you'll need to then consider using gcloud but importantly, you can either:
continue to use the Firebase CLI for the Firebase services;
use gcloud to interact with some (not all!) of the Firebase services (e.g. Firestore).
Over time, I assume (!) the remain discord between these 2 platforms will diminish.
If you consider both platforms as the result of (an ongoing?) unification since the acquisition, hopefully, these discrepancies will be more understandable and less frustrating.
Where you do find inconsistencies and frustrations, ensure Google knows by submitting feature requests and bugs.
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?
The firebase console under Settings -> Integrations -> Google Analytics has a Data Sharing section with a bunch of check boxes, one of which is:
Share Analytics data with all Firebase features (Recommended):
Including Crashlytics, Predictions, A/B Testing, Remote Config, Cloud
Messaging, and In-App Messaging
The word "Share" is confusing to me. Does this mean there's an underlying set of data that is collected by default and unless I check this box, these other firebase features won't have access to that data?
If I don't select this option will data still be collected? Will data be available to any part of my system?
If you disable Share Analytics data with all Firebase features then the analytics data in your Firebase project is only available within the analytics panel, and won't be used in the other Firebase products.
So if you uncheck the box, you won't be able to (for example) send targeted notifications (using Cloud Messaging or In-App Messaging) based on analytics data, or run predictions of future user behavior. But you will be able to see the analytics data in the Firebase console, and you can allow the data to be exported to BigQuery.
Does Firebase Crashlytics works even without Google Play Services (GPS)? If so, what's the difference between devices that has GPS and has not in terms of reporting?
Firebase Crashlytics doesn't require Google Play Services to provide information you are used to seeing in the dashboard. This differs from some other Firebase services so our official policy is to state Firebase as a whole requires Play, but several services work without it.
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.