Skip to content

Tracking health: the GA4 tagging flaw that skews everything

Data trust

By Boris Parov7 min read

Lire cet article en français

Tracking health is the daily check that your GA4 tagging still matches the measurement plan. One defect skews every analysis built on it, and nothing in the interface flags it. On Google's public sample, add_to_cart sits at zero for 18 of 92 days while purchases continue. This is the tagging chapter of our guide to GA4 data accuracy.

How does a GA4 tagging plan break?

A GA4 tagging plan breaks when the site changes and the tags don't follow. A release renames a data layer variable or rebuilds the checkout. A consent banner update changes when tags may fire, sometimes on one page type only. A tag manager container ships with a test trigger, or never reaches production.

A measurement plan is a reference document that lists, for each key event, the parameters it must carry, their expected format, and the pages that fire it, so that tagging is tested against a written contract rather than against memory.

A tagging defect is a gap between what the measurement plan expects and what the export receives: a missing event, an empty or renamed parameter, a duplicate, or a placeholder instead of a value. GA4 keeps collecting, so the defect stays silent.

Which symptoms show up in the export, day by day?

A tagging defect first shows as a daily event count falling to zero, or far below its median. Each event gets its own baseline, because volumes differ by two orders of magnitude. One query over the sample's full 92 days shows it.

WITH daily AS (
  SELECT
    PARSE_DATE('%Y%m%d', event_date) AS day,
    COUNTIF(event_name = 'page_view') AS page_view,
    COUNTIF(event_name = 'view_item') AS view_item,
    COUNTIF(event_name = 'add_to_cart') AS add_to_cart,
    COUNTIF(event_name = 'begin_checkout') AS begin_checkout,
    COUNTIF(event_name = 'purchase') AS purchase
  FROM `bigquery-public-data.ga4_obfuscated_sample_ecommerce.events_*`
  WHERE _TABLE_SUFFIX BETWEEN '20201101' AND '20210131'
  GROUP BY day
)
SELECT
  event_name,
  COUNT(*) AS days,
  APPROX_QUANTILES(events, 2)[OFFSET(1)] AS median_events_per_day,
  COUNTIF(events = 0) AS days_at_zero,
  MIN(IF(events = 0, day, NULL)) AS first_day_at_zero,
  MAX(IF(events = 0, day, NULL)) AS last_day_at_zero
FROM daily
UNPIVOT (events FOR event_name IN (page_view, view_item, add_to_cart, begin_checkout, purchase))
GROUP BY event_name
ORDER BY median_events_per_day DESC
EventDaysMedian per dayDays at zeroFirst day at zeroLast day at zero
page_view9214,9640nonenone
view_item923,9530nonenone
add_to_cart92500182020-11-022020-11-24
begin_checkout923480nonenone
purchase92530nonenone

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 the sample, add_to_cart is at zero on 18 days. They form two stretches: November 2 to 15, then November 21 to 24, 2020. On those days, begin_checkout and purchase keep firing, so the funnel is impossible. The sample is obfuscated and the cause unknown; on your export, the release log names it. The sequence a funnel relies on is in The GA4 e-commerce events that build the funnel, from view_item to purchase.

Duplicates: the same purchase counted twice

Duplicates are the opposite symptom. In January 2021, 10 transaction IDs appear on more than one purchase event.

WITH duplicated AS (
  SELECT
    ecommerce.transaction_id AS transaction_id,
    COUNT(DISTINCT CONCAT(user_pseudo_id, '-', CAST((SELECT value.int_value FROM UNNEST(event_params) WHERE key = 'ga_session_id') AS STRING))) AS sessions,
    TIMESTAMP_DIFF(TIMESTAMP_MICROS(MAX(event_timestamp)), TIMESTAMP_MICROS(MIN(event_timestamp)), SECOND) AS seconds_apart
  FROM `bigquery-public-data.ga4_obfuscated_sample_ecommerce.events_*`
  WHERE _TABLE_SUFFIX BETWEEN '20210101' AND '20210131'
    AND event_name = 'purchase'
    AND ecommerce.transaction_id != '(not set)'
  GROUP BY transaction_id
  HAVING COUNT(*) > 1
)
SELECT
  IF(sessions = 1, 'same session', 'different sessions') AS pattern,
  COUNT(*) AS duplicated_ids,
  MIN(seconds_apart) AS min_seconds_apart,
  MAX(seconds_apart) AS max_seconds_apart
FROM duplicated
GROUP BY pattern
ORDER BY duplicated_ids DESC
PatternDuplicated IDsMin seconds apartMax seconds apart
Same session99762
Different sessions1410,668410,668

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).

Nine IDs repeat inside one session, 9 seconds to about 13 minutes apart: a reloaded confirmation page. The tenth spans two sessions almost five days apart, with two amounts: an ID collision. GA4 deduplicates web purchases sharing a transaction ID, but the export keeps both rows.

Missing parameters and (not set) values: what do they hide?

A missing parameter hides inside an event that still fires, so daily volumes look normal. The check is a fill rate per key event and expected parameter.

(not set) is the placeholder value GA4 shows when a dimension received no value for an event. It appears when a parameter was not sent, was sent under another name, or does not apply to that event type.

SELECT
  event_name,
  COUNT(*) AS events,
  COUNTIF(ARRAY_LENGTH(items) = 0) AS events_with_empty_items,
  COUNTIF(EXISTS(SELECT 1 FROM UNNEST(items) AS item WHERE item.item_id = '(not set)')) AS events_with_item_not_set,
  IF(event_name = 'purchase', COUNTIF(ecommerce.transaction_id = '(not set)'), NULL) AS purchases_with_id_not_set,
  IF(event_name = 'purchase', COUNTIF(ecommerce.purchase_revenue IS NULL), NULL) AS purchases_without_revenue
FROM `bigquery-public-data.ga4_obfuscated_sample_ecommerce.events_*`
WHERE _TABLE_SUFFIX BETWEEN '20210101' AND '20210131'
  AND event_name IN ('view_item', 'add_to_cart', 'begin_checkout', 'purchase')
GROUP BY event_name
ORDER BY events DESC
EventEventsEmpty items arrayItem at (not set)Transaction ID at (not set)No revenue
view_item86,97126,2214n/an/a
add_to_cart15,522039n/an/a
begin_checkout11,03401,652n/an/a
purchase1,2040300300300

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).

The 300 purchases without a transaction ID are the same 300 without revenue, with only a placeholder item. Those orders cannot be reconciled, valued, or tied to a product. About 30% of view_item events carry an empty items array.

The sample's source fields also hold <Other> and (data deleted), obfuscation artifacts. A real export shows (not set), NULL, or empty strings instead. The data-trust guide counted 1,866 January sessions without session_start and 7,180 without page_view. Google lists both gaps as causes of a (not set) source or landing page. They also flag automated visits, as Bot traffic in GA4: spotting it in BigQuery when the interface doesn't filter it shows.

Why does a one-off tagging audit expire at the next release?

A one-off tagging audit describes the tags on the day it ran, and the next release changes them. A site shipping every two weeks gets 26 releases between two annual audits. The audit is not wrong; it is dated. Its value decays with each deployment, banner update, or container publish. An audit is a snapshot; the site is a moving target.

One-off tagging auditDaily tracking-health check
What it comparesThe tags against the plan, onceThe export against the plan, every day
When a defect surfacesAt the next auditThe day after the release
What a late catch breaksEvery report since the releaseOne day of data
What it deliversA report with recommendationsA dated list of broken events and parameters

A missing parameter caught on day one is a hotfix. Caught at month end, it invalidates the month's attribution and the credibility of whoever presented it. The November gap in the sample lasted 14 days, then 4 more. A monthly report would have shown that funnel as fact. The audit keeps its place for redesigns, when the plan itself changes.

How do you check tracking health every day against the measurement plan?

You check tracking health by turning the measurement plan into a contract a scheduled query tests daily. Each line becomes a rule with a threshold, run on yesterday's complete table.

Rule in the planTest on yesterday's tableAlert when
add_to_cart fires on product pagesDaily count versus its medianCount at zero, or far below the median
purchase carries transaction_idShare at (not set) or NULLShare above its usual level
view_item carries itemsShare with ARRAY_LENGTH(items) = 0Share moves after a release
One purchase per orderIDs with more than one eventAny new duplicated ID
The export arrivedRow count versus the 7-day medianTable missing or partial

Start with five rules, one per row of the table. Three habits keep the contract useful. Compare each rate with its own history, because some events never reach 100%. On the sample, 30% of view_item events carry no items; the alert is the change, not the level. Write each result to a dated table, so the start of a defect is one query away. Keep the rules under version control next to the plan, and change both together. Dataform assertions and dbt tests can host them inside the pipeline that builds the reports. How the two tools compare is in Dataform or dbt for the GA4 export: what incremental models change.

Why does flagging a tagging defect not mean fixing it?

Flagging a tagging defect and fixing it are two jobs, held by two teams. The check reads the export; the fix sits in the container, the data layer, or the site code. The analyst states which event broke, which parameter, from which day, and on which pages. The tagging team or the developers change the tag. The same rule confirms the fix the next morning.

Keeping the roles apart keeps the check honest. It measures the export as received, never a corrected copy. Past data is not repaired either: a day collected without transaction_id stays without it. Reports should mark those days rather than fill them with estimates. A server container forwards these defects as they are, as Server-side tagging and consent: what it changes, what it doesn't shows. That dated history tells finance which periods to read with caution. The check never edits the history it reports on.

FAQ

Why is add_to_cart missing in GA4?

An add_to_cart event usually disappears after a site change the tag did not follow. A renamed button or an edited trigger is typical. Compare its daily count with begin_checkout. When checkouts continue and carts fall to zero, the tag broke, not the demand.

Does GA4 remove duplicate purchases?

GA4 deduplicates web purchase events that share a transaction ID, according to Google's documentation. The BigQuery export still contains every row. On the public sample, January 2021 holds 10 transaction IDs with more than one purchase event. A revenue query must deduplicate them itself.

Can past GA4 data be fixed after a tagging error?

No, past GA4 data cannot be fixed. The export holds what the browser sent, and a value never sent cannot be recovered. A day without transaction_id stays without it. A back-office join can estimate some gaps, labeled as estimates. The safer practice is to mark the affected days in every report.

Consent, bots, and reconciliation explain the rest of the gap in Trusting your GA4 numbers: consent, reconciliation, bots, and tagging. To check your own export, Book a diagnostic.

Sources