We use Firebase to add mobile app data streams to our GA4 property.
Firebase provides many products and extensions (both free and paid) to build, release and monitor apps as well as optimize your app experience for user engagement.
How to use Firebase?
In order to use Firebase, you would need to create and use one or more projects. These projects are called Firebase Projects.
You can create a new Firebase project via Firebase Console.
In order to use a Firebase project, you would need to add/register one or more apps to it.
These apps could be your mobile apps (IOS, Android) and/or your web apps.
Note: Firebase project acts as a container for all the registered apps.
All the apps registered to the same Firebase project share and have access to all the same resources and services provisioned for the project.
For example,
All Apps registered to the same Firebase project are associated with the same GA4 property, where each Firebase App is a separate data stream in that property.
Similarly,
All Apps registered to the same Firebase project share the same backends (like Firebase Hosting, Authentication, Realtime Database, Cloud Storage etc).
#1 Your current situation -> You own mobile app(s) but not a website. You don’t have either the Firebase project or the GA4 property.
Recommended implementation path
1) Create a new firebase project.
2) Add firebase to your mobile apps (Android App, Apple App)
3) Link your Firebase project to Google Analytics. When you link your Firebase project to Google Analytics, you get the option to either create a new GA4 property or to link to an existing GA4 property.
4) Create new GA4 property from within the Firebase.
The moment your firebase project is connected to your new GA4 property, Google will automatically create corresponding mobile app data streams in your GA4 property.
So you don’t need to create mobile app data streams manually in your GA4 property.
Note: You don’t need to create a web data stream in your GA4 property as you don’t own a website.
#2 Your current situation -> You own mobile app(s) but not a website. You have the Firebase project but not the GA4 property.
Recommended implementation path
1) Open the Firebase project you want to connect to the GA4 property.
2) Make sure that firebase is added to your mobile apps.
3) Link your Firebase project to Google Analytics. When you link your Firebase project to Google Analytics, you get the option to either create a new GA4 property or to link to an existing GA4 property.
4) Create new GA4 property from within the Firebase.
#3 Your current situation -> You own mobile app(s) but not a website. You have both the Firebase project and GA4 property.
Recommended implementation path
1) Open your Firebase project you want to connect to your existing GA4 property.
2) Make sure that Firebase is added to your mobile apps.
3) Link your Firebase project to Google Analytics. When you link your Firebase project to Google Analytics, you get the option to either create a new GA4 property or to link to an existing GA4 property.
#1 Your current situation -> You own both mobile app(s) and a website. You don’t have either the Firebase project or the GA4 property.
Recommended implementation path
1) Create a new firebase project.
2) Add firebase to your mobile apps (Android App, Apple App).
3) Create new GA4 property from within the GA user interface.
4) Add a new web data stream to your GA4 property.
5) Navigate back to your Firebase project and then link your Firebase project to your existing GA4 property.
When you link your Firebase project to Google Analytics, you get the option to either create a new GA4 property or to link to an existing GA4 property.
6) Link to your existing GA4 property.
REMEMBER: The moment your firebase project is connected to your GA4 property, Google will automatically create corresponding mobile app data streams in your GA4 property.
So you don’t need to create mobile app data streams manually in your GA4 property.
#2 Your current situation -> You own both mobile app(s) and a website. You have the Firebase project but not the GA4 property.
Recommended implementation path
1) Open the Firebase project you want to connect to a GA4 property.
2) Make sure that Firebase is added to your mobile apps.
3) Create new GA4 property from within the GA user interface.
4) Add a new web data stream to your GA4 property.
5) Navigate back to your Firebase project and then link your Firebase project to your existing GA4 property.
When you link your Firebase project to Google Analytics, you get the option to either create a new GA4 property or to link to an existing GA4 property.
6) Link to the existing GA4 property.
#3 Your current situation -> You own both mobile app(s) and a website. You have both the Firebase project and the GA4 property.
Recommended implementation path
1) Open the Firebase project you want to connect to your existing GA4 property.
2) Make sure that Firebase is added to your mobile apps.
3) Navigate to your existing GA4 property and make sure that a web data stream is added to it.
4) Navigate back to your Firebase project and then link your Firebase project to your existing GA4 property.
When you link your Firebase project to Google Analytics, you get the option to either create a new GA4 property or to link to an existing GA4 property.
You would need the help of a mobile app developer here.
Step-2: Navigate to the ‘project overview‘ page of your Firebase Console and then click on the ‘iOS+’ button:
Step-3:
Add Apple Bundle ID (You can find your bundle identifier in the ‘General’ tab for your app’s primary target in Xcode)
Add App nickname (this name would be used throughout the Firebase console to represent this app. Note: Nicknames aren’t visible to users).
Add your App Store ID (You can find your App Store ID in your app’s URL. In the example below, 123456789 is the App Store ID. https://itunes.apple.com/us/app/yourapp/id123456789 ).
Click on the ‘Register App’ button.
Step-4: Download the configuration file and then click on the ‘Next’ button:
Step-5: Follow the on-screen instructions to add the Firebase SDK to your IOS app and then click on the ‘Next’ button:
Step-6: Add the relevant initialization code to your app’s main entry point:
Step-7: Scroll down and then click on the ‘Next’ button:
Step-8: Click on the ‘Continue to Console’ button:
Congratulations!
You have successfully added Firebase to your Apple app.
You should now see your IOS app added to the project overview page:
You would need the help of a mobile app developer here.
Step-2: Navigate to the project overview page of your Firebase Console and then click on the ‘+Add app’ button:
Step-3: Click on the ‘Android’ button:
Step-4:
Add Android Package name (Your package name is generally the applicationID in your app-level build.gradle file)
Add App nickname (this name would be used throughout the Firebase console to represent this app. Note: Nicknames aren’t visible to users).
Add Debug signing certificate SHA-1 (optional) (See this page for information on using keytool to get the SHA-1 hash of your signing certificate ).
Click on the ‘Register App’ button.
Step-5: Download the configuration file and then click on the ‘Next’ button:
Step-6: Follow the on-screen instructions to add the Firebase SDK to your Android app:
Step-7: Scroll down and then click on the ‘Next’ button:
Step-8: Click on the ‘Continue to Console’ button:
Congratulations!
You have successfully added Firebase to your Android app.
You should now see your Android app added to the project overview page:
The correct way to add the mobile app data streams to a GA4 property
Many people add mobile app data streams from the user interface of the GA4 property:
But this is not the correct way.
When you create a mobile app stream from a GA4 property, you do not get the option to link to an existing Firebase project.
Instead, the following things happen automatically:
1) A new Google cloud project is automatically created.
2) A new Firebase project is automatically created.
3) The new firebase project is automatically connected to your GA4 property.
And your mobile apps are most likely not added to this new Firebase project.
What you should do instead is to find and link your existing firebase project (to which you added your mobile apps) to your GA4 property:
The moment your firebase project is connected to your existing GA4 property, Google will automatically create corresponding mobile app data streams in your GA4 property.
Advantages of connecting Firebase project to GA4 property
Following are the key advantages of linking your Firebase project to your GA4 property:
#1 The moment your firebase project (to which mobile apps have been added) is connected to your GA4 property, Google will automatically create corresponding mobile app data streams in your GA4 property.
#2 Firebase GA4 integration allows you to combine mobile app and website data into one GA4 reporting view.
#3 You get access to a wide range of GA4 exploration report templates (like free form, funnel exploration, path exploration etc) which are not available in Firebase Analytics.
Connect your Firebase project to your GA4 property (GA4 Firebase Integration)
Follow the steps below to connect an existing Firebase project to an existing GA4 property:
Step-2: Click on the Firebase project you want to connect to your existing GA4 property:
Step-3: Make sure that the Firebase is added to your mobile apps:
Step-4: Click on the wheel next to ‘Project Overview’:
Step-5: Click on ‘Project Settings’:
Step-6: Click on the ‘Integrations’ tab:
Step-7: Click on the ‘Enable’ button under ‘Google Analytics’:
Step-8: Select your Google Analytics account from the drop-down menu:
Step-9: Click on the pencil icon next to ‘Automatically create a new property in this account’:
You should now see a screen like the one below:
Step-10: Select your GA4 property from the ‘Analytics property’ drop-down menu and then click on the ‘Enable Google Analytics’ button:
As soon as you clicked on the ‘Enable Google Analytics’ button two new mobile app data streams will be automatically be created in the background in the selected GA4 property:
Step-11: Click on the Finish button:
Congratulations!
Your Firebase project is now successfully connected to your GA4 property.
This new connection between your firebase project and GA4 property would enable data flow between firebase and GA4.
Note: The data exported from your GA4 property into your Firebase project is subject to the Firebase terms of service. Similarly, the data exported from your Firebase project to your GA4 property is subject to the Google Analytics terms of service.
Other articles related to GA4 (Google Analytics 4)
"How to use Digital Analytics to generate floods of new Sales and Customers without spending years figuring everything out on your own."
Here’s what we’re going to cover in this training…
#1 Why digital analytics is the key to online business success.
#2 The number 1 reason why most marketers are not able to scale their advertising and maximize sales.
#3 Why Google and Facebook ads don’t work for most businesses & how to make them work.
#4 Why you won’t get any competitive advantage in the marketplace just by knowing Google Analytics.
#5 The number 1 reason why conversion optimization is not working for your business.
#6 How to advertise on any marketing platform for FREE with an unlimited budget.
#7 How to learn and master digital analytics and conversion optimization in record time.
My best selling books on Digital Analytics and Conversion Optimization
Maths and Stats for Web Analytics and Conversion Optimization
This expert guide will teach you how to leverage the knowledge of maths and statistics in order to accurately interpret data and take actions, which can quickly improve the bottom-line of your online business.
Master the Essentials of Email Marketing Analytics
This book focuses solely on the ‘analytics’ that power your email marketing optimization program and will help you dramatically reduce your cost per acquisition and increase marketing ROI by tracking the performance of the various KPIs and metrics used for email marketing.
Attribution Modelling in Google Analytics and BeyondSECOND EDITION OUT NOW!
Attribution modelling is the process of determining the most effective marketing channels for investment. This book has been written to help you implement attribution modelling. It will teach you how to leverage the knowledge of attribution modelling in order to allocate marketing budget and understand buying behaviour.
Attribution Modelling in Google Ads and Facebook
This book has been written to help you implement attribution modelling in Google Ads (Google AdWords) and Facebook. It will teach you, how to leverage the knowledge of attribution modelling in order to understand the customer purchasing journey and determine the most effective marketing channels for investment.
About the Author
Himanshu Sharma
Founder, OptimizeSmart.com
Over 15 years of experience in digital analytics and marketing
Author of four best-selling books on digital analytics and conversion optimization
Nominated for Digital Analytics Association Awards for Excellence
Runs one of the most popular blogs in the world on digital analytics
Consultant to countless small and big businesses over the decade
error: Alert: Content is protected !!
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Allow Cookies”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
Cookie
Duration
Description
cookielawinfo-checkbox-analytics
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional
11 months
The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy
11 months
The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.