---
title: "GA4 users: why BigQuery never matches the interface"
description: "GA4 reports show active users estimated with HyperLogLog++; the export counts every user exactly. The gap, measured on Google's public sample."
canonical: https://www.rtbanalytics.fr/en/blog/ga4-bigquery-export/ga4-users-bigquery-discrepancy
date: 2026-10-30T11:30:00+01:00
author: "Boris Parov"
lang: en
---

# GA4 users: why BigQuery and the interface never show the same number

The GA4 users discrepancy between BigQuery and the interface is by design, not a bug. The Google Analytics 4 (GA4) interface shows active users, estimated with HyperLogLog++. The export lets you count every `user_pseudo_id` exactly: 94,790 in January 2021 on Google's public sample. Our [guide to the GA4 BigQuery export](https://www.rtbanalytics.fr/en/blog/ga4-bigquery-export) covers the rest of the raw data.

**Key takeaways**

- "Users" in GA4 reports means active users. On the public sample, the activity rule removes 198 of 94,790 January users.
- Per Google's documentation, GA4 estimates user totals with HyperLogLog++ at precision 14, with ±0.81% error at 65% confidence.
- On the sample, `HLL_COUNT` at precision 14 returns 94,100 January users against 94,790 exact, a gap of −0.73%.
- Summing daily users overstates distinct users by 12.4% in January 2021 and 18.1% over 92 days.
- Google Signals data, modeled users, and data thresholds act in the interface only, never in the BigQuery export.

## GA4 active users vs total users: which one does the interface show?

The GA4 interface shows active users, not every user who sent an event. Google's user-metrics documentation says it plainly: reports show active users only. Total users, every user who triggered any event, is a separate metric. A `COUNT(DISTINCT user_pseudo_id)` on the export matches total users, not the number on the report card.

An **active user** is a GA4 user metric that counts the distinct users who had an engaged session in the date range, or for whom GA4 collected a `first_visit` event or an `engagement_time_msec` parameter on a website. It's the metric behind the "Users" label in reports.

Recent daily export tables carry an `is_active_user` field that flags this per user and day. The public sample doesn't have it. The query below rebuilds Google's documented rule from events instead. It approximates the field without copying it: Google computes `is_active_user` itself and doesn't publish the code.

```sql
WITH user_flags AS (
  SELECT
    user_pseudo_id,
    LOGICAL_OR(
      event_name = 'first_visit'
      OR IFNULL((SELECT value.int_value FROM UNNEST(event_params) WHERE key = 'engagement_time_msec') > 0, FALSE)
      OR IFNULL((SELECT COALESCE(value.string_value, CAST(value.int_value AS STRING)) FROM UNNEST(event_params) WHERE key = 'session_engaged') = '1', FALSE)
    ) AS is_active
  FROM `bigquery-public-data.ga4_obfuscated_sample_ecommerce.events_*`
  WHERE _TABLE_SUFFIX BETWEEN '20210101' AND '20210131'
  GROUP BY user_pseudo_id
)
SELECT
  COUNT(*) AS total_users_exact,
  COUNTIF(is_active) AS active_users_exact,
  COUNTIF(NOT is_active) AS inactive_users,
  HLL_COUNT.EXTRACT(HLL_COUNT.INIT(IF(is_active, user_pseudo_id, NULL), 14)) AS active_users_hll_14
FROM user_flags
```

| Measure, January 2021                      | Users  |
| ------------------------------------------ | ------ |
| Total users, exact (any event)             | 94,790 |
| Active users by the documented rule, exact | 94,592 |
| Users with no sign of activity             | 198    |
| Active users, `HLL_COUNT` at precision 14  | 93,892 |

Computed on 2026-10-15 on the public sample `bigquery-public-data.ga4_obfuscated_sample_ecommerce` (Google Merchandise Store, 2020-11-01 to 2021-01-31, obfuscated data).

On this obfuscated sample, the activity filter removes 0.2% of users. On your own property, the share depends on your traffic and your tagging. The last row applies the estimate GA4 uses for every user total.

## Why is the GA4 users total an estimate, not a count?

The GA4 interface estimates user totals with HyperLogLog++, because exact distinct counts need more memory and time. Google's developer documentation states the method and its settings per metric.

**HyperLogLog++** (HLL++) is a cardinality-estimation algorithm that counts distinct values from a fixed-size sketch instead of the full list of keys, with an error that shrinks as its precision parameter grows. At precision 14, the value GA4 uses for users, the documented error is ±0.81% at 65% confidence.

| GA4 metric   | HLL++ precision | Error at 65% confidence | Error at 95% confidence |
| ------------ | --------------- | ----------------------- | ----------------------- |
| Sessions     | 12              | ±1.63%                  | ±3.25%                  |
| Active users | 14              | ±0.81%                  | ±1.63%                  |
| Total users  | 14              | ±0.81%                  | ±1.63%                  |

Precision values from Google's Analytics developer documentation; error bounds from BigQuery's sketches documentation; both consulted 2026-10-15.

Three consequences follow for your reports. The interface total can sit above or below the exact count. Sessions are estimated too, at precision 12, with an error band twice as wide. Sketches also merge but don't add. Daily sketches combine into a monthly estimate without rereading events. Summing daily estimates, by contrast, double-counts returning users.

Google also documents a residual gap. GA4 uses a sparse precision of 25 for users, while BigQuery fixes it at the precision plus 5. Below about 12,200 distinct users, a BigQuery replica can differ slightly from the interface.

## Google Signals and modeled data: what the export never receives

The BigQuery export receives no Google Signals data and no modeled data. Two interface adjustments therefore stay out of SQL's reach.

The first is reporting identity. In reports, GA4 can merge one person's devices into one user. Google's reporting identity page lists three identity spaces: User-ID, device ID, and modeling. The blended option falls back on modeling when no identifier is available. Google Signals isn't among these spaces in the version consulted on 2026-10-15. Google's page on data thresholds adds that Signals data isn't exported to BigQuery. In the export, `user_pseudo_id` identifies a browser on a device. One person on a phone and a laptop is two users. Sending a `user_id` and counting on it closes part of that gap.

The second is consent. Events refused through a consent banner are missing from both systems. Behavioral modeling fills part of that gap in the interface only. The export holds the consented events and nothing in their place.

Data thresholds are a third interface-only mechanism. Google withholds rows in reports that include demographics or search queries when too few users sit behind them. You can't adjust thresholds, but a wider date range makes them less likely. The method for reconciling these interface-only figures is in Modeled conversions and Google Signals: the data the export doesn't have.

## How far apart are COUNT(DISTINCT) and HLL_COUNT on the public sample?

On the public sample, `HLL_COUNT` at GA4's precision returns 94,100 January users, 0.73% below the exact 94,790. The query runs the exact count and two estimates side by side. Google's developer documentation gives `HLL_COUNT.INIT(user_pseudo_id, 14)` as the replica for total users. BigQuery's built-in estimate, `APPROX_COUNT_DISTINCT`, uses a precision you can't set.

```sql
WITH events AS (
  SELECT
    _TABLE_SUFFIX AS day,
    user_pseudo_id,
    CONCAT(user_pseudo_id, '-', CAST((SELECT value.int_value FROM UNNEST(event_params) WHERE key = 'ga_session_id') AS STRING)) AS session_key
  FROM `bigquery-public-data.ga4_obfuscated_sample_ecommerce.events_*`
  WHERE _TABLE_SUFFIX BETWEEN '20201101' AND '20210131'
),
periods AS (
  SELECT 'January 2021' AS period, '20210101' AS first_day
  UNION ALL
  SELECT '92 days', '20201101'
)
SELECT
  p.period,
  COUNT(DISTINCT e.user_pseudo_id) AS users_exact,
  HLL_COUNT.EXTRACT(HLL_COUNT.INIT(e.user_pseudo_id, 14)) AS users_hll_14,
  APPROX_COUNT_DISTINCT(e.user_pseudo_id) AS users_approx,
  COUNT(DISTINCT e.session_key) AS sessions_exact,
  HLL_COUNT.EXTRACT(HLL_COUNT.INIT(e.session_key, 12)) AS sessions_hll_12
FROM events AS e
JOIN periods AS p
  ON e.day >= p.first_day
GROUP BY p.period
ORDER BY p.period
```

| Measure                            | January 2021 | Gap vs exact | 92 days | Gap vs exact |
| ---------------------------------- | ------------ | ------------ | ------- | ------------ |
| Users, `COUNT(DISTINCT)`           | 94,790       | reference    | 270,154 | reference    |
| Users, `HLL_COUNT` precision 14    | 94,100       | −0.73%       | 269,952 | −0.07%       |
| Users, `APPROX_COUNT_DISTINCT`     | 94,784       | −0.01%       | 271,075 | +0.34%       |
| Sessions, `COUNT(DISTINCT)`        | 118,380      | reference    | 360,129 | reference    |
| Sessions, `HLL_COUNT` precision 12 | 116,086      | −1.94%       | 354,970 | −1.43%       |

Computed on 2026-10-15 on the public sample `bigquery-public-data.ga4_obfuscated_sample_ecommerce` (Google Merchandise Store, 2020-11-01 to 2021-01-31, obfuscated data). Gaps are rounded to two decimals.

Three readings matter. The user estimates stay inside the documented bands: −0.73% in January, −0.07% over 92 days. The sign varies between functions and periods, so no fixed correction factor applies. Sessions at precision 12 drift further, −1.94% in January, inside the 95% band of ±3.25%. The session key is the one detailed in [Counting GA4 sessions in BigQuery without getting it wrong](https://www.rtbanalytics.fr/en/blog/ga4-bigquery-export/ga4-sessions-bigquery).

## Which three volume measures should a report keep?

Keep three volume measures: exact sessions, additive daily users, and estimated unique users, each with one use.

A **GA4 session** is a group of events from one `user_pseudo_id` that share one `ga_session_id`, closed after 30 minutes of inactivity by default.

An **additive measure** is a measure whose value over a period equals the sum of its values over the sub-periods, like sessions or revenue. It differs from a distinct count, like users, which must be recomputed on the raw keys for each period and each filter.

Sessions are exact in the export and nearly additive. Counted per day, a session that crosses midnight counts on both days. Daily users are the sum of each day's distinct users. They add up across days by construction, which keeps trends and breakdowns consistent. Their period total is user-days, not people. Unique users are a distinct count over the period, estimated for totals. The query shows what summing daily users does.

```sql
WITH daily AS (
  SELECT
    event_date,
    COUNT(DISTINCT user_pseudo_id) AS daily_users
  FROM `bigquery-public-data.ga4_obfuscated_sample_ecommerce.events_*`
  WHERE _TABLE_SUFFIX BETWEEN '20201101' AND '20210131'
  GROUP BY event_date
),
by_month AS (
  SELECT
    SUBSTR(_TABLE_SUFFIX, 1, 6) AS month,
    COUNT(DISTINCT user_pseudo_id) AS distinct_users
  FROM `bigquery-public-data.ga4_obfuscated_sample_ecommerce.events_*`
  WHERE _TABLE_SUFFIX BETWEEN '20201101' AND '20210131'
  GROUP BY ROLLUP (month)
)
SELECT
  IFNULL(m.month, 'all 92 days') AS period,
  COUNT(*) AS days,
  SUM(d.daily_users) AS sum_of_daily_users,
  m.distinct_users
FROM by_month AS m
JOIN daily AS d
  ON m.month IS NULL OR SUBSTR(d.event_date, 1, 6) = m.month
GROUP BY period, m.distinct_users
ORDER BY period
```

| Period        | Days | Sum of daily users | Distinct users | Overstatement    |
| ------------- | ---- | ------------------ | -------------- | ---------------- |
| November 2020 | 30   | 93,882             | 79,421         | +14,461 (+18.2%) |
| December 2020 | 31   | 118,619            | 104,315        | +14,304 (+13.7%) |
| January 2021  | 31   | 106,565            | 94,790         | +11,775 (+12.4%) |
| All 92 days   | 92   | 319,066            | 270,154        | +48,912 (+18.1%) |

Computed on 2026-10-15 on the public sample `bigquery-public-data.ga4_obfuscated_sample_ecommerce` (Google Merchandise Store, 2020-11-01 to 2021-01-31, obfuscated data). Percentages are rounded to one decimal.

Monthly distinct counts don't add up either. The three months sum to 278,526, against 270,154 distinct users over the quarter, or +3.1%. A total row needs its own distinct count or estimate, never a sum. The DAX side, measure by measure, is in [DAX measures for GA4: sessions, users, conversion rate, and additivity](https://www.rtbanalytics.fr/en/blog/ga4-power-bi/dax-measures-ga4).

## How do you present the gap to a steering committee?

Present the gap as a bridge from the export count to the interface number, one cause per step. On the sample, January 2021 has two measurable steps. The 94,790 exact users become 94,592 active users, then 93,892 after HyperLogLog++ at precision 14. The total gap is −898 users, or −0.95%. The other causes act in the interface only, or depend on your property's settings. Thresholds and sampling, two of them, are compared in Sampling, thresholding, and cardinality: three mechanisms that change your GA4 numbers.

| Cause                                 | Effect on the interface number                                                             | What the export lets you do                                           |
| ------------------------------------- | ------------------------------------------------------------------------------------------ | --------------------------------------------------------------------- |
| Active users vs total users           | Lower: users with no engaged session, `first_visit`, or engagement time are left out       | Filter on `is_active_user`, or rebuild Google's rule from events      |
| HyperLogLog++ estimate                | Above or below the exact count: ±0.81% at 65% confidence for users                         | Replicate with `HLL_COUNT.INIT(user_pseudo_id, 14)`                   |
| Data thresholds                       | Rows withheld in reports with demographics or search queries                               | Nothing to do: the export has no thresholds                           |
| Consent                               | Refused events missing in both; behavioral modeling fills part of the gap in the interface | Count consented events only, and say so                               |
| Reporting identity and Google Signals | User-ID and modeling can merge one person's devices into one user                          | Count on `user_id` where you send one; Signals data is never exported |
| Time zone                             | `event_date` follows the property time zone; `event_timestamp` is in UTC                   | Group by `event_date` to keep the interface's day boundaries          |

Show the bridge next to the report, so the gap reads as a known cause. State the rule once, in writing: which measure each report shows, and why. A gap of one percent is not a data quality problem. A report that hides which number it shows is.

> **In Lightstack · Available**
>
> Lightstack, by RTB Strategic Analytics (Montpellier, France), recomputes consultancy-grade GA4 analyses every day from the raw BigQuery export and delivers them in Power BI. Its semantic model holds three volume measures. `Sessions` is exact; `Daily Users` is additive, for trends and breakdowns. `Users` is estimated for period totals, within ±0.8%. See [Shared measures on the Platform page](https://www.rtbanalytics.fr/en/platform#model).

## FAQ

### Can I make BigQuery match the GA4 users number exactly?

No, BigQuery never matches the GA4 users number exactly. It can still get within a fraction of a percent. Filter on `is_active_user` or on Google's activity rule, then count with `HLL_COUNT.INIT(user_pseudo_id, 14)`. Google's replica also assumes a device-based reporting identity on the property. Modeling and thresholds still separate the two systems. Small counts can also differ because GA4 and BigQuery use different sparse precisions.

### Is APPROX_COUNT_DISTINCT the same estimate as GA4?

No, `APPROX_COUNT_DISTINCT` is not the same estimate as GA4. It uses a fixed precision that Google's developer documentation replicates with precision 15. GA4 uses precision 14 for users. On the public sample, January 2021 gives 94,784 users with `APPROX_COUNT_DISTINCT` and 94,100 with `HLL_COUNT` at precision 14. Use `HLL_COUNT` with an explicit precision when you need to approach the interface.

### Why don't users add up across countries or channels?

A user who appears in two rows of a breakdown is counted in both rows. Someone who visits from two countries, or through two channels, is one user in the total. The same person is also one user in each row. The sum of the rows therefore exceeds the total, in GA4 reports as in BigQuery.

### Where is is_active_user in the GA4 export?

`is_active_user` is a Boolean field of the GA4 export schema. It's true when the user was active at any point in the calendar day. Google populates it in the daily tables only, not in the intraday table. The public sample `ga4_obfuscated_sample_ecommerce` doesn't contain it. On that sample, you rebuild the rule from `first_visit`, `engagement_time_msec`, and `session_engaged`.

Pick your three measures once, and label every report with the one it shows. The [GA4 BigQuery export: the complete guide to raw event data](https://www.rtbanalytics.fr/en/blog/ga4-bigquery-export) covers the rest of the method. Want the next analyses like this one? [Get new analyses as they ship](https://www.rtbanalytics.fr/en/blog/ga4-bigquery-export/ga4-users-bigquery-discrepancy#footer-newsletter-email).

## Sources

- [Understand user metrics](https://support.google.com/analytics/answer/12253918) - Google, consulted 2026-10-15
- [Unique count approximation in Google Analytics](https://developers.google.com/analytics/blog/2022/hll) - Google, updated 2024-10-09, consulted 2026-10-15
- [Sketches (HyperLogLog++ precision and error)](https://docs.cloud.google.com/bigquery/docs/sketches) - Google Cloud, updated 2026-10-13, consulted 2026-10-15
- [About data thresholds](https://support.google.com/analytics/answer/9383630) - Google, consulted 2026-10-15
- [About reporting identity](https://support.google.com/analytics/answer/10976610) - Google, consulted 2026-10-15
- [BigQuery export schema for Google Analytics 4](https://support.google.com/analytics/answer/7029846) - Google, consulted 2026-10-15
