How to Link Firebase to Google Analytics
If you have a mobile app, linking Firebase to Google Analytics 4 is one of the most powerful moves you can make for your analytics. This simple connection breaks down the wall between your app and web performance, giving you a complete, unified view of your entire user journey. This guide will walk you through exactly how to set up the integration step-by-step, explain the benefits, and show you what to do once the data starts flowing.
Why Link Firebase to GA4? The Power of a Single View
Before this integration became available, getting a clear picture of user behavior across both web and mobile was a huge headache. You were stuck looking at web data in Google Analytics and app data in Firebase Analytics, trying to manually stitch together two completely different reports. Linking them solves this problem entirely.
Here's what you gain immediately:
- A Unified User Journey: See how users move between your website and your app. Do they discover you on the web and then download the app to make a purchase? Now you can track that entire path seamlessly.
- Consistent Cross-Platform Reporting: All your data - from both your
WebandiOS/Androiddata streams - lives inside one Google Analytics 4 property. You can analyze everything using the same interface, metrics, and reporting tools. - Advanced Audience Building: Create powerful audience segments a single platform couldn't dream of. For example, you can target users who abandoned their cart on your website with an in-app promotion, or re-engage app users who haven't visited your website in 30 days.
- Smarter Advertising: When you connect your GA4 property to Google Ads, you can use valuable in-app conversion events (like a subscription or a level completion) to optimize your web-based ad campaigns.
Essentially, this link transforms GA4 from just a "website analytics tool" into your business's central source of truth for all user behavior.
Before You Begin: The Prerequisites
To ensure a smooth setup process, you'll need a few things in order first. Let's run through a quick checklist.
1. A Google Analytics 4 Property
This process is specifically for Google Analytics 4. If you are still using the older Universal Analytics (which was sunset in 2023), you'll need to create a new GA4 property first. The integration relies on GA4's flexible, event-based data model, which is designed to handle both web and app data streams from the start.
2. A Firebase Project
Your mobile app must already be connected to a Firebase project. This is standard practice for most app developers, as Firebase provides essential services like Crashlytics, Authentication, Hosting, and Analytics. If your app isn't using Firebase yet, you'll need to set that up first.
3. The Right Account Permissions
This is the most common reason the setup process fails. To link the two services, your Google account must have the right access levels for both platforms:
- In your Firebase Project, you need to have the Owner or Editor role.
- In your Google Analytics Property, you need to have the Administrator or Editor role.
Make sure you're logged into the Google account that has these permissions before you begin.
Free PDF · the crash course
AI Agents for Marketing Crash Course
Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.
Step-by-Step Guide to Linking Firebase and GA4
With the prerequisites out of the way, the actual linking process is straightforward and only takes a few minutes inside your Firebase console.
Step 1: Go To Project Settings in Your Firebase Console
First, log in to your Firebase account and navigate to the project you want to connect. In the top of the left-hand navigation sidebar, click the gear icon next to "Project Overview," then select Project settings from the dropdown menu.
Step 2: Navigate to the Integrations Tab
Inside Project settings, you'll see a series of tabs across the top (General, Cloud Messaging, Integrations, etc.). Click on the Integrations tab.
Step 3: Find the Google Analytics Card and Click "Link"
On the Integrations page, you will see a card for various Google services. Find the Google Analytics card. If it says "Not enabled," you are in the right place. Click the Link or Enable button on this card.
If it's already linked to an old property or one you don't want, you'll see a "Manage" button, where you can first unlink the existing property and then re-link a new one.
Step 4: Select Your Google Analytics 4 Account
A dialog box will appear. Firebase will automatically look for GA4 properties associated with your Google account.
- If you have an existing GA4 account ready, you'll see it listed here. Select it and proceed. If you don't have a GA4 property for your business yet, Firebase will offer to create a new one for you automatically. It's generally better to create your property in GA4 first so you can configure it properly, then come back here to link it.
If you don't see the account or property you're looking for, double-check that you are logged into the correct Google account and that you have the necessary editor permissions as mentioned above.
Step 5: Confirm and Link
After selecting your account and property, click the Link to Google Analytics button. You will be asked to confirm that you want to enable the integration. Firebase will tell you that it will begin sending app analytics data from your Firebase project to your GA4 property.
And that's it! Firebase will now start sending data to Google Analytics. You've successfully linked the platforms.
What Happens Next?
Be patient! The data doesn't appear instantaneously. It can take up to 24 hours for the new app data stream to be fully configured in GA4 and for you to start seeing data populate in your reports. You can check the "Realtime" report in GA4 to confirm that the connection is active and data is being received from your app.
Making the Most of Your Unified Data
Linking the services is just the first step. The real fun begins when you start using that combined data to uncover new insights.
Explore Your App Data in GA4 Reports
Once linked, Firebase automatically creates a new data stream in your Google Analytics 4 property for your Android app, your iOS app, or both. You can find these in Admin > Data Collection and Modification > Data Streams. All the standard reports in GA4 (like acquisition, engagement, and demographics) will now include data from these app streams right alongside your web stream.
The "Users" metric is now a holistic view of unique individuals across all your platforms, not just website visitors.
Build Powerful Cross-Platform Audiences
This is where the unified setup truly shines. You can create audiences that combine web and app behaviors for incredible targeting opportunities.
Example:
Create an audience of "Web Browsers, App Purchasers" with the following rules:
- Users who have triggered the event
page_view(from your web stream). - AND have also triggered the event
in_app_purchase(from your app stream).
This audience now contains high-intent users who engage with you on both platforms - perfect for a targeted Google Ads campaign announcing your newest product.
Analyze the Entire Conversion Funnel
You can finally map the entire user journey. In GA4's "Explore" section, you can build a funnel exploration report that visualizes steps from both web and app. For an ecommerce business, a funnel might look like this:
session_start(web)view_item(web)add_to_cart(web)first_open(app) - The user downloads and opens the apppurchase(app)
Seeing where users drop off between platforms is an insight you simply could not get before.
Troubleshooting Common Issues
Sometimes things don't go perfectly on the first try. Here are solutions to a few common problems:
Free PDF · the crash course
AI Agents for Marketing Crash Course
Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.
"My GA4 Property Doesn't Appear in Firebase"
This is almost always a permissions issue. Confirm that the Google account you're logged into has "Editor" permissions on both the Firebase project and the destination GA4 property. If it doesn't, you won't be able to see it as an option.
"It's Been 24 Hours and I Still Don't See Data"
First, check the Realtime report in GA4. If you interact with your app and see events popping up there, the connection is working and your standard reports just need more time to process. If you see nothing in Realtime, check your Firebase SDK implementation in your app to ensure it's actively sending analytics events.
"Web and App Metrics Seem to Show a Single Person as Two Different Users"
Out of the box, GA4 uses cookies (on web) and device IDs (on app) to identify users. To truly unify a single user across platforms, you need to implement the User-ID feature. This involves assigning a unique, non-personally identifiable ID to a user when they log in to your app or website. When GA4 sees the same User-ID from both a web data stream and an app data stream, it will merge those two profiles into a single user, giving you the most accurate cross-platform reporting.
Final Thoughts
Connecting Firebase and Google Analytics 4 is a foundational step for any business with both a web and app presence. It moves you away from siloed reporting and toward a genuine understanding of how your customers interact with your brand across every touchpoint, giving you the clarity needed to make smarter marketing and product decisions.
Of course, bringing all your data into one place is a huge unlock, but the next challenge is quickly turning that firehose of information into easy-to-understand dashboards. That's why we created Graphed. After linking sources like Google Analytics, you can simply use plain English to ask questions like, "Show me a dashboard of user acquisition by source for both web and app users this month," and instantly get a live, sharable dashboard. It removes the steep learning curve of complex BI tools so your team can get straight to the insights.
Related Articles
How to Create Facebook Ads API for Claude Code
Create a Meta Marketing API access token that never expires, using a system user, so Claude Code can pull Facebook ad reports and manage campaigns.
ClickHouse vs Postgres: When to Switch to Columnar
Comparing ClickHouse vs PostgreSQL means matching storage architecture to workload. Row storage wins for transactions. Columnar wins for scan-heavy analytics.
Google Ads for Orthodontists: Get More Booked Consults
Most orthodontic Google Ads campaigns waste money on low-intent searches. The problem is structure, not the platform.