# Thresholds and reporting

How to turn the classified orders into a verdict, and how to write it so that nobody mistakes a matching total for working tracking.

## Why there is no universal percentage

Google publishes no acceptable gap between GA4 and an order system. Coverage depends on the consent policy, the region mix, the payment mix, blockers and the sender architecture, so a fixed target such as "95% of orders" is wrong for most sites. Browser-only tracking on a site with a strict consent banner and many redirect payments covers far fewer paid orders than a working server-confirmed sender on the same site. Judge the unexplained part of the gap, measured against the orders that could have been collected, and always name the architecture beside the verdict.

## Compute the numbers

Per store and currency:

- `E`: eligible orders. `V`: their expected value.
- `O`: observed orders, eligible orders with at least one purchase row (matched, duplicate, late, value mismatch).
- `M`: missing orders, `E - O`.
- `X`: missing orders with a documented explanation.
  - With consent stored per order: missing orders whose state is denied.
  - With consent rates only: the checkout-session denial rate per region times the eligible orders in that region, summed and capped at `M`. Say that it is an estimate and name the source.
  - Blockers, once measured (step 7b): order-level matches from a first-party log, or the `client_id` capture failure rate among consented checkouts times the consented eligible orders. Cap the total of `X` at `M` and label blocker loss as expected non-collection for a browser architecture.
  - Exclusions written in `decisions.md`, such as a region deliberately not tracked, count in `X`.
- `U`: unexplained missing orders, `M - X`. Report `U / E`.
- Unexplained value share: missing value divided by `V`, minus `X / E`. This assumes explained orders have an average value; say so.
- Flag rates over `O`, used for the thresholds: duplicate rate from `flag_duplicate`; value mismatch rate from `flag_value` or `flag_currency`; late rate from `flag_late` or `flag_fired_before_business_ts`. Query 6 returns them. Report primary-class counts beside them; precedence puts duplicate and late before value, so the class count understates value problems.
- Analytics-only unpaid: the count of `unpaid` transactions from Query 8. `authorized_not_captured` is listed apart and is not counted here.
- Control and suspects from Query 7, and `recoverable_share` for the fix decision.

## Default verdicts

Use these until the owner agrees others in `metrics.md`. Record which set the report used.

- Unexplained gap at most 2% of `E` and at most 2% of value: pass.
- Above 2% and up to 5%: investigate the top suspect segment before the next report.
- Above 5%: defect, with one exception below for an unmeasured, evenly spread gap.
- A suspect segment (at least 20 eligible orders, and a miss rate at least twice the control's or at least 5 percentage points above it) whose excess over the control is not explained by consent evidence: defect for that segment, even when the overall gap passes. Never compare segments with the overall rate: it already contains the defect.
- No suspect segment, gap above 5% and blockers not measured: the verdict is "investigate: measure blockers" (step 7b), not a tag defect. After measurement, a residual at or below the measured blocker share is expected non-collection for a browser architecture; anything above it is judged on the lines above.
- Duplicate flag rate above 0.5%: defect. Report identical transport rows apart; they are not a tag defect.
- Value mismatch flag rate above 1%: defect.
- Any analytics-only purchase from an order that never reached the contract's paid state (`unpaid`): defect, because it reports revenue that was never collected. Authorized orders awaiting capture under a captured contract do not count.
- Late flag rate above 2%: investigate clocks, delayed payments, the paid definition and server queues.
- Fewer than 200 eligible orders: extend the period before quoting rates. Do not judge segments under 20 orders.

The 2% line leaves room for boundary cases a healthy setup still produces: a tab closed on the confirmation page, rounding, an order paid at midnight. It does not cover blockers, the largest loss for browser tags: measure them and count them in `X` instead of widening the line. A single broken payment flow or trigger usually pushes the gap past 5% and shows as a suspect against the control. Duplicates and analytics-only unpaid orders have near-zero floors when the send-once and paid-only rules work, so their lines are tighter.

## Recurring runs

- Run weekly on the week whose scan window ended at least 3 days earlier, with the same contract: with the default window, the week that ended at least 6 days before the run.
- Treat a drop of 5 percentage points or more in coverage of eligible orders, against the median of the previous four weeks, with no logged release or consent change, as an incident (tracking-monitoring-and-incidents when installed; otherwise a re-run of Queries 0 and 7 and a dated note proposed for `decisions.md`).
- After an intentional change, start a new baseline and annotate the date.

## Writing the report

Use [../assets/reconciliation-report-template.md](../assets/reconciliation-report-template.md). A filled example: [../assets/example-acme-report.md](../assets/example-acme-report.md).

- Lead with the verdict, the sender architecture and the unexplained gap, not with GA4's total.
- State the period, the time zone, the contract version, the paid definition, the sources, the extract times, the scan window and the freeze date.
- Give counts and value per class and per currency. Never add currencies together.
- Keep three groups apart: expected non-collection (consent, measured blockers, policy), defects (each with cause and evidence), and unexplained.
- Name the measure exactly: "share of eligible paid web orders with a GA4 purchase", never "GA4 accuracy".
- Show the count-versus-count comparison only to explain why it misled.
- When a fix removes duplicates or an attribution-blind sender, say in advance that counts will fall and why.
- List what was not checked.
- Share the aggregated report. Keep order-level exception lists with the investigation owner, and keep personal data out of both.
- Propose updates to `martech-context/metrics.md` (thresholds) and `martech-context/decisions.md` (contract and fix decisions), and wait for approval before writing them.

Example verdict sentence:

```text
With browser-only tracking, GA4 recorded a purchase for 847 of 1,000 eligible paid web orders (84.7%). Consent denials recorded by the CMP explain about 80 of the 153 missing orders; blockers were not measured. The unexplained gap is 7.3% of orders and 6.2% of value, above the 5% defect threshold, and two redirect flows are suspects against the in-page card control.
```
