← All articles
Web & Frontend

How GA4 counts users, sources and sales, and what to measure with it

Every GA4 number comes from a rule the report doesn't show. Learn what to measure in Google Analytics 4 and how sources, retention and tests mislead.

Every number in Google Analytics 4 (GA4) comes from a counting rule the report doesn’t show, so you need those rules before you decide what to measure in Google Analytics 4. Read a source, a returning user or a test result without its rule, and you can answer the wrong question with confidence. This is part 3 of a series: part 1 explains Tag Manager, part 2 gets your events into GA4, and this part decides which numbers to trust.

One question traced through GA4: did the newsletter bring readers back?

Suppose you run a small blog and you sent a newsletter on the first of last month. You want to know one thing: “Did last month’s newsletter bring readers who come back?” The blog, the newsletter and every detail below are invented.

You can answer it in three steps, and each step has its own trap.

Step            What you look at                       Where it can mislead
1. Source       Visits whose source is "newsletter"    Links that lost their tag count as "(direct)"
2. Key event    Readers who reached the end of a post  A reader who scrolls fast counts as "read"
3. Cohort       How many of them came back later       Safari forgets them after 7 days, so they look new

For step 1, you tag every link in the email. UTM parameters are query parameters such as utm_source and utm_medium that tell GA4 where a visit came from (UTM parameters).

https://blog.example/posts/caching/?utm_source=newsletter&utm_medium=email&utm_campaign=2026-10

If an email app or a redirect drops the query string, the visit arrives with no source and GA4 files it under “(direct) / (none)” (direct traffic). So the newsletter’s count is a lower bound.

For step 2, you need a sign that someone read the post. Enhanced measurement already sends a scroll event the first time a reader reaches 90% of the page (enhanced measurement). You mark scroll as a key event, as part 2 shows. But 90% scrolled is not 90% read, so this step measures a proxy.

For step 3, you group readers by when they arrived and count who returns. A cohort is a group of users who share a start date, such as “first visit in the week of the newsletter” (cohort exploration). GA4 follows a cohort by browser cookie, so a reader who switches from laptop to phone counts as two people.

Rule: Each step of a GA4 answer uses a different counting rule, so check the rule at each step before you trust the result.

The rest of this article takes those rules one at a time.

What to measure in Google Analytics 4: three to five key events

Start from your goals, not from the reports. Write down three to five things the site exists to make happen, such as a signup, a purchase or a finished article. Each one becomes a key event, and every other number explains how people got there or why they didn’t.

You have room for 30 key events in a standard property and 50 in Analytics 360 (key events). That limit is generous, and that’s the risk. A report with twenty key events tells you nothing about which one matters, so keep the list as short as your goals.

Add a custom dimension only when you have a question that needs it. A custom dimension is an event parameter or user property that you register so reports can show it. A standard property allows 50 event-scoped and 25 user-scoped custom dimensions, and new ones show data only 24 to 48 hours after you create them (custom dimensions, limits).

The cost of registering everything is real. A dimension with many unique values, such as an ID, fills the report’s row limit and sends the rest into a row called “(other)” (the (other) row).

Where users come from: three source columns that disagree

Suppose one reader visits your blog three times, all on the same laptop in Chrome:

  1. Day 1: they find a post through Google search.
  2. Day 10: they click a link in your newsletter.
  3. Day 12: they type your address and sign up, which is a key event.

Predict what GA4 shows in three columns: “First user source”, “Session source” for the day 12 visit, and plain “Source” for the signup.

GA4 shows “google” as the first user source, because that column keeps the source of the user’s first visit forever. It shows “newsletter” as the session source for day 12. A typed address is a direct visit, and GA4 credits a direct visit to the last source that wasn’t direct (referrals and direct). The plain “Source” for the signup depends on the attribution model, which the next section explains.

These are three scopes, and each one answers a different question (scopes):

Column Scope Answers Rule
First user source User How did this person first find you? Last click on the first visit
Session source Session What brought this visit? Last non-direct click
Source Event, key events only What gets credit for this key event? The attribution model you chose

Now change one condition. If the reader used Safari, the day 10 visit came nine days after the first. Safari deletes cookies set by script after seven days without interaction, so GA4 sees a new user whose first user source is “newsletter” (WebKit tracking prevention).

Rule: Before you compare two source numbers, check that they come from the same scope.

Attribution models and the AI Assistant channel

An attribution model is the rule that splits credit for a key event among the visits that led to it. Only the plain “Source” column uses it; the user and session columns always use last click (scopes).

GA4 now offers data-driven attribution, “paid and organic last click”, and “Google paid channels last click” (attribution models). First click, linear, time decay and position-based were removed in 2023.

GA4 then sorts sources into a channel, a group such as Organic Search, Email or Referral, using fixed rules (default channel group). On 2026-05-13 GA4 added an “AI Assistant” channel for visits from ChatGPT, Gemini and Copilot (what’s new). Visits from Google’s AI Overviews and AI Mode still count as Organic Search, so that channel holds AI traffic from Google too.

By default the lookback window is 30 days for acquisition key events and 90 days for the rest (lookback windows). A visit older than the window gets no credit, whatever model you choose.

Why GA4 shows no search keywords, and where to find them

GA4 has no report of the Google search terms that brought organic visitors (Search Console integration). To see them, you link Search Console, Google’s tool that reports how your pages appear in Google Search.

The link adds two reports, “Google Organic Search Queries” and “Google Organic Search Traffic”, and each has limits that change what you can conclude (Search Console integration):

  • It covers Google Search only, not Bing or any other engine.
  • One web stream links to one Search Console property, and the reports are unpublished until you publish them.
  • Only landing page, device and country combine with Search Console metrics.
  • Data arrives about 48 hours late and goes back 16 months.

Search Console also leaves anonymized queries out of its table rows, so the queries you see add up to less than the total clicks (performance data deep dive). That’s why rare, long queries are the first ones to disappear.

Search Console clicks never equal GA4 sessions. Google lists the reasons: privacy omissions, different counting rules, Search Console’s Pacific time zone, and GA4’s need for JavaScript to run (why the numbers differ). A click from a visitor who blocks scripts or declines consent never becomes a session.

There’s one keyword source you control completely, your own site search. If your search page puts the query in a URL parameter such as q or search, enhanced measurement sends a view_search_results event with a search_term parameter (enhanced measurement). Those are the words readers type when your navigation didn’t give them what they wanted. But GA4 can hide search terms with small user counts behind a threshold (data thresholds).

Engaged sessions, bounce rate and returning users

An engaged session is a visit that lasts longer than 10 seconds, or includes a key event, or has two or more page views (engagement rate). Google’s pages disagree on whether exactly 10 seconds counts, and the 10 seconds can be changed per data stream. Engagement time only counts while the page is in focus (engagement time).

Engagement rate is the share of sessions that were engaged, and GA4’s bounce rate is 1 minus engagement rate (engagement rate). So a reader who spends 40 seconds on one article and leaves is engaged, not a bounce. It’s a different metric from the bounce rate in Universal Analytics, the previous version of Google Analytics. Never compare the two across a migration.

The retention overview report shows new and returning users and retention by cohort for the first 42 days (retention report). The cohort exploration goes further: you choose who enters a cohort and what counts as a return, by day, week or month, up to 60 cohorts (cohort exploration). Cohorts use device data only, not User-ID, so a reader who signs in on two devices is still two people there.

Safari is the larger distortion. Since ITP 2.1 in 2019, Safari caps cookies set by script at seven days (ITP 2.1), and today it deletes them after seven days without interaction (tracking prevention). A Safari reader who returns every two weeks shows up as a new user each time, so your returning-user count is low by an amount GA4 can’t tell you.

Funnels and paths: where users stop

A funnel exploration lists up to 10 steps and shows how many users reach each one (funnel exploration). In a closed funnel, users must enter at step 1. In an open funnel, they can enter at any step, so the step counts can’t be read as a single flow.

The funnel also shows the next action, the event or page users reached after a step, which tells you where people went when they didn’t continue (funnel exploration). A path exploration draws the events and pages users went through as a tree (path exploration).

Both show what users did, never why. If 60 of 100 users leave at the shipping step, GA4 can’t tell you whether the price, a form error or a missing option drove them away. A small usability test answers why, and Module 11 of Web Design for Developers shows how to run one with five people.

A/B tests: GA4 records variants but never picks a winner

Google Optimize ended on 2023-09-30, and GA4 has no testing tool of its own (Optimize sunset). It integrates with AB Tasty, Optimizely and VWO, and its API is open to other tools.

A testing tool that integrates with GA4 sends an experience_impression event when it shows a visitor a variant (integration guide). For a test you build yourself, Google suggests your own event with the experiment and variant as parameters (experiments):

// Excerpt: send once, when the visitor first sees the variant.
gtag('event', 'experiment_impression', {
  experiment_id: 'checkout-button-2026-11',
  variant_id: 'B'
});

Then you register experiment_id and variant_id as event-scoped custom dimensions, so explorations can split key events by variant. Notice that you send the impression when the visitor sees the variant, not when you assign it, or users who never saw the change dilute the result.

GA4 never computes statistical significance, so the testing tool or your own analysis has to (experiments). And the way you look matters. Evan Miller showed in 2010 that stopping a test when it first looks significant can raise false positives from 5% to 26.1% (How Not To Run an A/B Test). Fix the sample size before you start, and read the result once.

What GA4 hides: thresholds, sampling, “(other)” and consent

Several rules remove or merge data before you see it.

  • Thresholds. GA4 hides rows with small user counts, mostly in demographics and search terms (data thresholds).
  • Sampling. An exploration over more than 10 million events in a standard property uses a sample (limits).
  • “(other)”. Values beyond a report’s row limit are merged into one row (the (other) row).
  • Data retention. Explorations can reach back only 2 months unless you set retention to 14 months (data retention). Standard reports aren’t affected.
  • Consent. If your site needs consent, visitors who decline are missing from the data. Behavioral modeling can fill some gaps, but only with advanced consent mode and at least 1,000 consent-denied events a day for seven days, and never in retention reports (consent mode).

So a small site that loads analytics only after a cookie banner gets no modeling. Every number there counts only the visitors who said yes.

BigQuery, Search Console and testing tools, and what changed since 2023

When a GA4 rule hides what you need, three alternatives take over.

Need Alternative Cost or limit
Raw events and real statistics BigQuery export 1 million events a day in a standard property; you write SQL
All search queries Google shows Search Console directly Google only; anonymized queries still hidden
A/B test results with significance A dedicated testing tool One more vendor script on your pages, with the costs part 1 describes

The BigQuery export copies your raw events into BigQuery, Google’s data warehouse, where you can query them with SQL (BigQuery export). The BigQuery sandbox gives 10 GiB of storage and 1 TiB of queries a month, but its tables expire after 60 days (BigQuery sandbox). Start the export early, because it only copies data from the day you turn it on.

GA4 itself keeps changing. These are the changes that affect the numbers in this article, from Google’s What’s new archive and current What’s new page:

  • 2023-09-30: Google Optimize ended.
  • 2023: first click, linear, time decay and position-based attribution were removed.
  • 2024-03-27: conversions were renamed key events.
  • 2024-10-17: editors can save segments and share them with everyone in the property.
  • 2025-04-02: generated insights appear in detailed reports.
  • 2025-12-12: Analytics Advisor, a conversational assistant built on Gemini.
  • 2026-05-13: the AI Assistant channel.
  • 2026-09-09: Dashboards.

A setup checklist for the first day

  • Data retention. Set it to 14 months on day one, because the 2-month default limits how far back explorations reach (data retention).
  • UTM naming. Write down one convention, such as lowercase utm_source=newsletter and utm_medium=email, so “Newsletter” and “newsletter” don’t become two sources.
  • Unwanted referrals. Add your payment gateways under Admin, Data streams, Configure tag settings, List unwanted referrals, so a buyer coming back from checkout isn’t credited to the gateway (referrals).
  • Internal traffic. Create the IP filter in the Testing state and check it first, because an active filter deletes matching data permanently (internal traffic).
  • Equal groups. Use the user bucket dimension, a number from 1 to 100 from a hashed ID, to split users into equal segments (user bucket).
  • No IDs as dimensions. Never register an order ID or user ID as a custom dimension; it fills the “(other)” row (the (other) row).

Next, pick your three to five goals, mark them as key events, and build one cohort exploration for the question you care about most.

For further reading, these are the primary sources:

If you want the next articles like this one when they come out, subscribe to the newsletter.

Comments

No comments yet. Ask a question or share what worked for you.

Leave a comment

Write a comment before you post.

Enter your name.

Never shown on the site.

Enter an email address like name@example.com.

Comments are checked before they appear. Fields marked * are required.

Keep reading

Related articles