I have added my app to GA4 using data streams. It seems it is associated with a firebase project id. But the project doesn't appear in the "Your apps" section of the Firebase console. If I add my app in Firebase section, it generated a different project id.
So is it necesssary to configure both?
In the Firebase console I got somehow two projects with the same name.
It seems that when creating a GA4 property, it will also create the project in the Firebase console.
To answer my own question, when creating a "data stream" for an app, it will automatically add the app to the Firebase console. If not, that because you are in the wrong project.
I guess that if I had added the app to the Firebase console first, it would have been added to the "Data Streams" section for the GA4 also. (As long as the Firebase project is linked to the GA4 property though)
Related
I'm trying to create and configure Firebase project (mobile apps) automatically.
I can create the project itself and android application via terraform.
I also managed to create iOS app and link Google Analytics account (created manually via analytics console) to project using Firebase Management REST API
What I couldn't manage:
If I need to link firebase project to BigQuery: I can create bigquery dataset (and other necessary resources) with terraform but I couldn't find the way to link it to the firebase project and enable all the integration options via REST API or terraform provider (like it can be done manually via firebase GUI console: Project settings -> Integrations -> BigQuery -> Link: Google Analytics, Crashlytics, Performance Monitoring etc.)
Does any one know how it can be done? Or if I just missed the documentation where it's described - please, share the link.
Thanks in advance.
P.S.: If someone also knows how to create Google Analytics acc also via REST API or terraform - please, share this info or the link with proper documentation.
In our Xamarin Forms app we have been using Firebase for push notifications for few years. For that purpose, we have a project in Firebase Console.
Now I needed to add Google Analytics (GA4) functionality. Based on documentation, in https://analytics.google.com/ I created a property for our project, and added a data stream for Android platform (and another data stream for iOS also, by the way). That allowed me to download a config file google-services.json to be added to the app project. A new project corresponding to the newly created data stream appeared in the Firebase console.
The problem is that the app project already has google-services.json file used for the push notifications. If I replace it with the new google-services.json, push notifications stop working. If I leave the existing google-services.json, GA4 would not work.
Of course, the google-services.json files differ. The project_number, project_id, storage_bucket, client_id etc are different, and the existing file has
"firebase_url": "https://api-1234567891482864589-273909.firebaseio.com",
which does not exist in the new file. The package_name is the same in both files.
How can I consolidate the projects to make both Firebase functionalities work? I would prefer to keep the newest project.
From document [GA4] Firebase integration
Link Google Analytics 4 properties to Firebase, we could find that :
Create a project
When you create a project in Firebase, you have the option to
integrate with Analytics. If you already have one or more Google
Analytics accounts, you can associate your project with one of those.
If you do not already have a Google Analytics Account, a new one will
be created for you with the name Default Account for Firebase.
Firebase users who have access to that project are given Analytics
user roles based on their Firebase roles (see User access above).
For more, you can check Part : Link your Firebase project to Analytics in above link.
The steps:
Set up a new Analytics link
Open your Firebase project.
Open Project settings > Integrations.
On the Google Analytics card, click Link.
Select an Analytics Account or create a new one.
If you select an existing account, you have the option to select an existing Google Analytics 4 property in that account or to create a new property.
If you create a new account, then a new Google Analytics 4 property is created for you and your project is linked to that property.
Learn more about setup and limits
Configure your Analytics settings.
I am trying to create a firebase project using the api. The document for this is here: https://firebase.google.com/docs/projects/api/reference/rest/v1beta1/projects/addFirebase
I have created a GCP project already and I am the owner of this project. I can see my project in a request to:
https://firebase.google.com/docs/projects/api/reference/rest/v1beta1/availableProjects/list . It has a project id of: projects/my-project-id-here
I am making the requests as a owner of the GCP project user account (I am not using a service account!) using Google OAuth 2.0 with the correct scopes (You can try it in the documentation), but I am receiving a response of:
{
"error": {
"code": 403,
"message": "The caller does not have permission",
"status": "PERMISSION_DENIED"
}
}
I can create firebase project fine If I go to firebase website directly and create the project there.
Google take 30 days to delete my test projects, so I am restricted to how many times I can try to get this right from scratch. Therefore I am also interested to know how you fully unlink firebase from a GCP project without deleting that project. Removing the service account and disabling the APIs from GCP console doesn't seem to do the trick.
Finally, I do not know if it is relevant but I also have the same user account setup with a developer account on google play and the GCP project is linked up for API access it's created service account granted access. I don't think this is relevant though, as my understanding is that I can setup a firebase project without this.
Hope someone can help!
I've found the solution to this. You cannot use the firebase API to create a firebase project unless you've first accepted the terms and conditions which aren't shown to you until you're in a firebase project (go figure).
Anyway here are some clear steps:
Create a firebase project through the website
Open the firebase project
Accept the terms and conditions for firebase use
Delete the firebase project and enjoy the API now working.
Regarding your interest in removing firebase from a project, this is not supported. The best course of action is to undo the changes that were made when firebase was added, namely disabling the firebase APIs, removing oauth client/brand, removing API keys etc, which you have already done, and it’s the closest thing to deleting the project.
After creating a Firestore database using GCP console (Google Cloud Platform console) and adding some data there, I don't see my project/database appear in Firebase console.
I just get a screen that prompts to create a new project.
It is required to use Firebase console for certain operations such as editing the security rules.
In Firebase console, click on Create new Project. Under the field for project name, there should be a dropdown menu showing projects created in GCP. Select the project you want and it will add this project to Firebase console without requiring you to create a new project.
The data you already have will still be there and will become accessible from Firebase console.
Im trying to locate the link that is supposed to be created along with my app on Firebase(according to the udacity Firebase course).
I found many links but none of them were accepted by the "after lesson quiz" on udacity.
The content that they have is according to the old UI of Firebase so i cant follow it step by step.
Unfortunately that course is for Firebase 2.x (www.firebase.com) and is out of date. In the legacy Firebase docs, under step 5 : Read & Write to your Firebase Database, you can see that creating a Firebase reference required the actual web address for you app. This is no longer true.
The new and correct way to setup your Firebase app does not require you to use this web address. The steps for setting up a Firebase app now are HERE.