Google Analytics GA4 Setup Guide eBook
Install GA4 on your website, set up data streams,
by Durr Nickole
Install GA4 on your website, set up data streams, and verify tracking in under 1 hour. Covers Google Tag Manager alternatives and event vs pageview configuration.
Formats
Free sample
Chapter 1: The Identity Crisis--–- In the winter of 2022, a seasoned ecommerce manager named David stared at his newly migrated GA4 property with the kind of confusion usually reserved for quantum physics textbooks. His Universal Analytics property had confidently reported 45,000 users yesterday. His new GA4 property, measuring the exact same website at the exact same time, reported 28,000 users. His first instinct was panic. His second instinct was rage.
His third instinct, the one that saved his career, was curiosity.David's reaction is not unusual. In fact, it has become a rite of passage for anyone migrating to GA4. The numbers look different. The interface feels foreign. The metrics you memorized — bounce rate, pages per session, goal completions — have either changed definitions or vanished entirely.
And lurking beneath every dashboard is the same terrifying question: Is my data wrong, or am I wrong about my data?The answer, almost always, is that you are wrong about your data. Not because you are unintelligent or careless, but because GA4 measures fundamentally different constructs than Universal Analytics did. It is not a new version of the same tool. It is a new tool that happens to share a name. Trying to understand GA4 through the lens of UA is like trying to understand a bicycle through the lens of a unicycle.
Both have wheels. Both require balance. But the moment you try to ride one like the other, you will fall.This chapter exists to prevent that fall. Before you install a single line of tracking code, before you create your first data stream, before you even decide between Google Tag Manager and gtag.js, you need to rebuild your mental model of what analytics actually measures. You need to unlearn the assumptions that Universal Analytics drilled into you over years of daily use.
You need to accept that lower user counts might be more accurate, that bounce rate as you knew it is dead, and that your most valuable data will come not from pageviews but from events you have never tracked before.If you can complete this mental migration, the technical setup in the remaining chapters will feel intuitive. If you cannot, you will spend months trying to force GA4 to behave like UA — and you will lose that argument every single time.The Pageview Delusion: Why Everything You Measured Was Wrong Let me make a controversial statement: Universal Analytics never actually measured users. It measured browsers with cookies. This distinction matters more than almost any other concept in this book.When a person visited your website under Universal Analytics, your tracking code looked for an existing _ga cookie. If the cookie existed, UA assumed it was the same user.
If the cookie did not exist — because the person had cleared their browser data, was using a new device, or was browsing in private mode — UA created a brand new client ID and counted that person as a brand new user. A single person using three different browsers on the same laptop would be counted as three users. A person who visited on their phone (User A), then on their work laptop (User B), then on their personal laptop (User C), then on their tablet (User D) would appear as four distinct users even though they were one person with a shopping problem.This was not a bug. It was a deliberate design choice based on the technological constraints of the mid-2000s. Cross-device tracking was computationally expensive.
Privacy regulations were minimal. And most websites were simple enough that a person visiting from multiple devices was rare enough to ignore.GA4 operates in a different world. Today, the average person owns four connected devices. They switch between phone, laptop, and tablet dozens of times per day. They clear cookies regularly.
They use ad blockers. They browse in private mode. A measurement system that cannot connect these interactions is not just inaccurate — it is actively misleading.GA4 solves this through what Google calls identity spaces. Think of identity spaces as different lenses through which GA4 attempts to recognize the same person across different interactions. GA4 can use up to three identity spaces, applied in a strict hierarchy:First, User ID.
This is the gold standard and the only foolproof method. If you have logged-in users on your website (e.g., an ecommerce site with customer accounts, a Saa S platform with subscriptions, a membership site), you can pass a unique identifier to GA4. This identifier can be a database ID, an email hash, or any string that uniquely identifies a registered user. When GA4 sees the same User ID on different devices or browsers, it immediately knows these interactions belong to the same person. A user who logs into their account on a phone at 8 AM and a laptop at 8 PM will be counted as exactly one user.
The catch is that User ID only works for authenticated sessions. If the same person visits without logging in — perhaps they are comparison shopping before creating an account — GA4 cannot connect that anonymous visit to their logged-in identity.Second, Google Signals. For users who are not logged into your site but are logged into their Google account (Gmail, You Tube, etc.) and have consented to ad personalization, GA4 can leverage Google's vast cross-device graph. This is the same technology that allows Google to show you an ad for running shoes on your phone after you searched for them on your laptop. When Google Signals is enabled, GA4 can see that the same Google account is active on multiple devices and can stitch those sessions together.
The limitation is that Google Signals only works for users who are actively logged into Google and have not disabled ad personalization. It is also subject to stricter privacy regulations, which we will cover in Chapter 12.Third, Device ID. This is the fallback method, and it works similarly to UA's client ID. GA4 stores a unique identifier in a first-party cookie. As long as the cookie persists and the user does not switch devices or browsers, GA4 can recognize them.
This is the least reliable method but the only option for anonymous, logged-out users who are not signed into Google.Here is why this hierarchy causes the "fewer users" panic. Under Universal Analytics, you were almost always looking at Device ID data. Unless you had implemented User ID (which fewer than 5% of UA properties did), your user counts were essentially cookie counts inflated by cookie resets and cross-device fragmentation. Under GA4, if you enable User ID and Google Signals, your user counts will likely decrease because GA4 is finally deduplicating users across devices.A real-world example: A typical online shopper might research a product on their phone during lunch (no login, cookies present), add it to their cart on their work laptop that evening (still no login, different cookies), and finally purchase it on their personal laptop after logging into their account (User ID present). Under UA, this would appear as three users with one purchase.
Under GA4 with proper identity configuration, this would appear as one user with one purchase — which is reality. The conversion rate under UA might have appeared lower (one purchase divided by three…
This is the end of the free sample. Get the eBook to keep going. Buy now
About this book
Details
- Author
- Durr Nickole
- Publisher
- SamEnrico
- Language
- English
- Genre
- Non-Fiction, First 30 Days, Website Tracking, Action Guide
- Released
- 2026-05-30
- Pages (approx.)
- 156
- 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 Durr Nickole
Jungle Explorer Voodoo PriestDurr Nickole$11.99
The Trembler Park DisappearanceDurr Nickole$11.99
Sexual Addiction Psychiatry GuideDurr Nickole$11.99
LSE Online Alumni Network ValueDurr Nickole$11.99
Quetzalcoatl’s Broken Promise: The Feathered Serpent’s ExileDurr Nickole$11.99
The Celestial Glassmakers of Angkor: How Medieval Astronomers Mapped the CosmosDurr Nickole$11.99
Understanding Homozygous HypobetalipoproteinemiaDurr Nickole$17.99
Cybersecurity Mesh OutlookDurr Nickole$12.99
Operating Room TechnicianDurr Nickole$11.99
A Beginners Guide to Beetle (Volume 1)Durr Nickole$11.99