Non-FictionFirst 30 DaysWebsite Tracking
GA4 and Firebase Integration eBook
Connect GA4 with Firebase for app analytics. Track
Connect GA4 with Firebase for app analytics. Track mobile app and web together in one property.
Formats
Free sample
Chapter 1: The Broken Mirror--–- Imagine standing in front of a funhouse mirror at a carnival. Your head appears grotesquely enlarged, your torso stretches like taffy, and your legs shrink to cartoonish stumps. You know it's you—the same person who walked in five seconds ago—but the reflection tells a completely different story. That distorted, fragmented image is precisely how most organizations experience their digital analytics today. On one side of the house, your website beams data into Google Analytics 4.
On the other side, your mobile app shouts into Firebase. Two mirrors. Two versions of the truth. Same user, irreconcilably different stories.For nearly a decade, this separation was accepted as inevitable. Websites were measured in pageviews and sessions.
Apps were measured in screen views and events. The data lived in separate silos, and analysts developed elaborate rituals to stitch them together manually—exporting CSV files from one system, CSV files from another system, fumbling with spreadsheet VLOOKUPs across six columns, and praying that their date ranges aligned and their user identifiers matched. It was messy, error-prone, and fundamentally unsustainable. But organizations tolerated it because no better alternative existed.Then, somewhere around 2020, the funhouse mirror shattered entirely. Users stopped caring about your internal organizational boundaries.
They wake up, scroll Instagram on their phone, open your app during their morning commute, switch to your website on a laptop at work, add items to a cart during a lunch break, and complete a purchase on their tablet while watching Netflix at dinner. That is not multiple users. That is one human being. And treating that journey as anything less than a unified story means you are not analyzing data—you are analyzing a fiction of your own creation.This book exists because Google finally acknowledged that fiction by building GA4 and Firebase to be inseparable. Not compatible.
Not integrable with enough duct tape and prayer. Inseparable. Like two sides of the same coin, like the engine and the steering wheel of a car. Firebase collects the raw material from your mobile apps; GA4 shapes that material into actionable insights alongside your web data. When you link them correctly, the funhouse mirror straightens out.
The distorted reflection vanishes. What remains is a single, coherent user—whether they tapped an app icon or typed a URL into a browser.In this opening chapter, we will demolish the old mental model of "separate analytics properties for separate platforms." You will learn why Universal Analytics (UA) died a necessary death, what Firebase actually does versus what GA4 actually does, and why the "One Property" vision is the only sane way to measure modern digital experiences. By the time you finish this chapter, you will never look at app analytics and web analytics as distinct disciplines again. You will see them as what they always should have been: two lenses on the same camera, focused on the same subject.The Death of Universal Analytics and the Birth of a Unified World To understand why GA4 and Firebase must be linked, you first need to understand what Google killed and why that execution was not only justified but overdue. Universal Analytics (UA) was a brilliant product for its time—genuinely revolutionary.
It launched in 2012, built on a web-centric worldview that made perfect sense in an era when desktop browsing dominated and mobile apps were still novel. Every measurement revolved around the pageview. A session started when a user landed on a page. It continued through subsequent pageviews. It ended after 30 minutes of inactivity (or at midnight, whichever came first).
This model worked beautifully for websites because websites are, at their core, collections of HTML pages connected by hyperlinks.But mobile apps are not websites. This seemingly obvious statement has profound implications that the analytics industry ignored for years. An app has no URLs. There is no pageview because there is no HTML page to view. An app has screens, but a screen is not a document you navigate to—it is a state you transition into, often through gestures, swipes, and long presses that have no analog in the web world.
More fundamentally, an app can generate events when the app is in the background, when push notifications arrive without the user even opening the app, or when the device is completely offline and syncing data later.Universal Analytics had no coherent way to handle these realities. Developers hacked together workarounds—sending virtual pageviews for screen changes, manually tracking session time with timers, building custom dimensions to capture event types. But the result was always a compromise, a square peg forced into a round hole. The data was technically present, but it was distorted, unreliable, and difficult to compare across platforms.Enter GA4, announced with surprising fanfare in October 2020 as the inevitable successor to UA. GA4 abandoned the session/pageview foundation entirely.
It adopted an event-based model where every user interaction—every tap, every swipe, every purchase, every level-up, every scroll, every video view—is an event, period. Sessions are still calculated for convenience, but they are derived from events rather than being the primary unit of measurement. This shift made GA4 naturally, almost effortlessly, suited for app analytics. There was no longer a conceptual mismatch between how apps work and how analytics work.But there was a catch—a significant one. GA4 needed a way to collect those mobile app events efficiently, reliably, and at scale.
Google could have built a completely separate SDK for i OS, a separate SDK for Android, separate SDKs for Flutter, React Native, Unity, and every other framework. That approach would have been fragmented, expensive to maintain, and confusing for developers who would need to learn yet another analytics library.That's where Firebase enters the story, and enters it not as an optional add-on but as the unavoidable foundation.Firebase: The Silent Workhorse You Have Already Been Using Firebase launched in 2011 as a real-time backend-as-a-service, founded by James Tamplin and Andrew Lee. Google acquired it in 2014 for somewhere in the neighborhood of $100 million—a bargain in retrospect. Over the following years, Firebase evolved from a simple real-time database into a comprehensive app development platform offering authentication, cloud storage, hosting, remote configuration, cloud messaging for push notifications, crash reporting, and, crucially, analytics.Before GA4 even existed as a concept, Firebase Analytics was already collecting event data from millions of Android and i OS apps. It had battle-tested SDKs that had been refined through years of real-world usage.
It offered efficient, battery-friendly data transmission that batched events and sent them over the network only when optimal. It handled offline caching gracefully, storing events locally when the device had no signal and replaying them when connectivity returned. It had deep integration with Google's infrastructure, ensuring low latency and high reliability.When Google's product teams began designing GA4, they faced a pragmatic decision with far-reaching consequences. Should they build a new, separate SDK for mobile app data collection, ignoring Firebase's existing investment? Or should they leverage the proven Firebase SDK and simply route its data into GA4's reporting layer, treating Firebase as the collection engine and GA4 as the analysis surface?They chose the latter, and that decision fundamentally changed the analytics landscape.
Today, the relationship is simple, absolute, and non-negotiable. If you want to send mobile app data to GA4, you must…
This is the end of the free sample. Get the eBook to keep going. Buy now
About this book
Details
- Author
- Mcrae Theodora
- Publisher
- SamEnrico
- Language
- English
- Genre
- Non-Fiction, First 30 Days, Website Tracking
- Released
- 2026-05-26
- Pages (approx.)
- 146
- Available as
- eBook, Audiobook
Read better in the ZLOADR app
Your eBooks on your phone or tablet. Sign in with your SamEnrico account and start reading.
More by Mcrae Theodora
Instagram Subscriptions RevenueMcrae Theodora$11.99
Serverless Security ReviewMcrae Theodora$11.99
Naloxone Accessible Kit GuideMcrae Theodora$11.99
Imposter Syndrome VisualizationMcrae Theodora$11.99
The Food Addiction Medication GuideMcrae Theodora$11.99
The Blood Ruby Heist: A Dog's Hunt for Europe's Most Stolen GemMcrae Theodora$11.99
Construction SupervisorMcrae Theodora$11.99
How to Become a Composition-roll Maker And CutterMcrae Theodora$11.99
Understanding Primary Ciliary Dyskinesia, 2Mcrae Theodora$17.99You may also like
Hong Kong Handover 1997Dunn Johnnie$11.99
Zumba For Postnatal Recovery CourseNeal Christian$11.99
Zumba for BeginnersLadner Nikia$11.99
YouTube Comment Mining GuideHumes Pandora$12.99
Worry Box MeditationCarlin Rudy$11.99
Workplace Stress MeditationNguyen Lynn$11.99
Workplace Stress and Sleep RepairHawley Ivory$11.99
Workplace Perfectionism CureDelaney Jeffry$11.99
Workplace Injustice Anger GuideWallen Isabelle$11.99
Work Addiction and Burnout LinkGreenwood Ester$11.99
Women in Yoga and WellnessBeattie Galina$11.99
Women in Stand Up ComedyChun Evangeline$11.99