Skip to content
James Ross
articlePublished Updated 8 min read

Offline conversion tracking for Google Ads: click IDs, hashed identities and GA4

By James Ross

A phone or offline sale never fires a browser conversion tag, so offline conversion tracking has to send it back before Google Ads can see it. There are three practical routes: an offline conversion upload keyed on a click ID, an enhanced conversion keyed on hashed customer details, and an offline event sent through the GA4 Measurement Protocol. Each route needs a different identifier, credits a different amount of revenue, and fails in its own way.

Offline sale nodes sending hashed identity tokens with click ID tags back to an ad dashboard, illustrating offline conversion tracking.

The evidence discipline behind offline conversion tracking is the same one used in Designing a multi-brand commerce control plane, where every number in a report has to trace back to a record that produced it.

Why phone orders never fire a conversion tag

A conversion tag fires on a page load, and a phone order often has no page load at the end of it.

The split is structural. A customer can check out on the storefront and land on a thank-you page, so the tag fires and the conversion is recorded. A customer service rep can also build a draft order in the Shopify admin and send an invoice link; if the customer pays through that link, a page still loads and a tag can still fire. But when the rep keys the order in directly, or takes a card over the phone, no browser page is involved at the end. The order exists in Shopify, the revenue is real, and Google Ads has no event to attribute it to.

This is not a tracking bug you can configure away. A draft order created in the admin has no storefront cart, so a cart attribute cannot carry the click ID. Shopify’s DraftOrder object is a real order-like record with its own lifecycle (Shopify DraftOrder reference), but the browser session that started the journey is long gone by the time the rep creates it.

The fix has two halves. First, capture the identifier as early as possible and attach it to the customer, not the cart, so a later draft order inherits it. Second, accept that some orders will only ever be matchable by phone number, name or transcript, and label those matches with a confidence tier rather than pretending they are exact.

The three routes back to Google Ads

The routes are not interchangeable. They differ in what identifier they need and therefore in how much of the offline revenue they can carry.

Route Identifier What it can credit Reversible? Best for
Offline click conversion gclid, gbraid or wbraid The exact click, and therefore the campaign and keyword Yes, with a retraction adjustment Orders with a captured click ID
Enhanced conversion Normalised, hashed email and/or phone A match Google makes on its side Yes, where the upload carried an order ID Most orders, since email is usually present
GA4 Measurement Protocol client_id from the web session The GA4 session and its attributed channel Limited; GA4 is not a ledger Reporting continuity and GA4-side analysis

Which should you choose? Start with click-ID uploads for the orders that have one, because that is the only route that gives Google an exact click. Add enhanced conversions for the larger set that has an email or phone but no click ID. Use the Measurement Protocol when the offline event needs to appear in GA4 reports or feed a GA4-imported conversion, not as a substitute for the Ads API.

Route 1: offline conversion import by click ID

The Google Ads API call is UploadClickConversions. The important fields are the conversion action resource name, the click identifier, the conversion date and time, the value and currency, and an order ID.

  1. Create a dedicated conversion action. Do not reuse the existing purchase action. Create it as secondary first, so a bad feed cannot steer bidding while you calibrate.
  2. Route the identifier by prefix. gclid, gbraid and wbraid are separate fields. A gbraid written into gclid is rejected, and the rejection is easy to miss.
  3. Format the timestamp in the Ads account’s time zone. The API expects yyyy-MM-dd HH:mm:ss+HH:mm in that account’s offset. A server in UTC writing a different offset produces conversions that are accepted and then discarded.
  4. Send the order ID. Google uses it for idempotency, and later retractions key on it.
  5. Validate before uploading. Every upload path should take a validate-only flag and default to it in the UI.
  6. Check the body, not just the status. With partial failure on, a 200 response can carry per-row failures.

A retraction is a separate call through ConversionAdjustmentUploadService, using the same order ID and conversion action, with the adjustment type set to RETRACTION (conversion adjustments guide). Refunds and cancellations are normal in custom or made-to-order products, so retractions are part of the design, not an edge case.

Route 2: enhanced conversions with hashed identifiers

Enhanced conversions let you send a hashed email or phone number instead of a click ID, and Google attempts the match on its side (About enhanced conversions).

The engineering work is in normalisation, not hashing. Google’s matching depends on the value being normalised exactly as specified before it is hashed: trim whitespace, lowercase the email, and express the phone in E.164. A perfect SHA-256 of the wrong string matches nothing.

Three rules make this route safe:

  • Hash on the server, never in the browser. The raw identifier should not leave your boundary, and the hashing step should be auditable.
  • Keep consent and terms explicit. Hashed-identifier uploads require the customer data terms to be accepted on the Ads account, and consent has to cover the use.
  • Discount low-confidence matches. If a match is probabilistic, upload a value scaled by its confidence rather than the full order value. A wrong conversion trains bidding toward the wrong queries, which is worse than a missing one because it is confidently wrong.

Route 3: GA4 Measurement Protocol for offline events

The Measurement Protocol sends events straight to Google Analytics over HTTP. It is explicitly designed to augment tagging, not replace it, and it joins an event to the existing web session through client_id or app_instance_id (Measurement Protocol overview).

That join is the whole trick. Capture client_id when the lead submits a form, store it on the CRM record, and send the later offline milestone with the same value. A minimal payload:

{
  "client_id": "CLIENT_ID_FROM_THE_WEB_SESSION",
  "timestamp_micros": 1730000000000000,
  "events": [{
    "name": "offline_sale",
    "params": {
      "transaction_id": "ORDER_ID",
      "currency": "USD"
    }
  }]
}

The api_secret and measurement_id travel as query parameters, and the event name and parameters must be valid for the stream. Two limits shape the design. The protocol is not a ledger, so it cannot retract a bad event the way the Ads API can. And a full server-to-server implementation yields only partial reporting, because some event and parameter names are reserved for automatic collection.

GA4 can then pass key events to a linked Google Ads account as conversions (Create conversions from Analytics events). That path is convenient, but it inherits GA4’s modelling and attribution, so it is not a substitute for an exact click-ID upload.

How to check that the recovered value is real

The number that matters is not “how much did we recover”. It is “how much of the recovery would Google have counted anyway”.

Report three figures, not one:

  • Google-reported value. What the Ads account already shows. This is the baseline.
  • Own-evidence floor. Only orders the system can evidence itself, ignoring Google’s view-through and cross-device modelling.
  • True value. The reported value plus orders Google never attributed, where the add-back is disjoint from Google’s number by construction.

The add-back is a subset of own evidence, never a sum with it. Adding the two is the easiest wrong answer to produce, because both numbers look like revenue and both are real. The code should make the relationship explicit: one type for the reported value, one for the recovered set, and a conversion function that can only produce the union.

Two more checks keep the report honest:

  • Separate “not in Shopify’s attribution” from “not attributed in Google Ads”. They are different sets. An order can fire a thank-you page without a click ID, which means Google logs a conversion it cannot credit to a campaign. That order is already in Google’s number, so uploading its click ID adds attribution but not revenue.
  • Never sum campaign rows to get the account total. Recovered revenue with no click ID belongs to no campaign. Summing the rows drops it silently while every row still looks correct. Show unattributed revenue as its own line.

What broke and what we changed

Partial failure returned 200. The first upload path checked the HTTP status and reported success. With partial failure enabled, a 200 can carry a per-row error list. The client now parses partialFailureError and surfaces each failed row.

The timestamp offset was wrong. Conversions were formatted in UTC instead of the Ads account’s time zone. Google accepted them and then discarded them. The account time zone is now read at connection time and stored with the credentials.

click_view.campaign does not exist. The sync selected a field that is not in the resource, failed partway through, and left spend ingested while click attribution was empty. The query was corrected to campaign.id, and the sync no longer leaves a half-written import looking complete.

A page read from tables that did not exist. The ROAS view queried recovered revenue from the wrong tables behind a .catch(() => ({ rows: [] })). It rendered perfectly and reported true ROAS exactly equal to Google’s, because recovery was always zero. The catch is gone; recovery now reads the typed report object, so a renamed field breaks the build instead of quietly zeroing the page.

The query did not request every field the matcher read. A matcher reading an unrequested field sees null and matches nothing, which looks identical to a genuine no-match. A query-coverage test now asserts that every field the report reads is actually requested.

Stale report payloads rendered undefined. The persisted report is versioned. Renaming a field without bumping the version crashed the page, so the loader now filters on the current version and treats older runs as absent.

Frequently asked questions

Can Google Ads attribute a phone order automatically?

Only if something sends it back. A call-tracking platform can create a conversion when a tracked call ends, but a rep-created draft order has no browser session behind it. The order has to be matched to a click ID, a hashed identity or a call record, then uploaded explicitly.

What is the difference between an offline conversion and an enhanced conversion?

An offline conversion upload carries a click identifier, usually gclid, gbraid or wbraid, and credits a specific click. An enhanced conversion carries hashed customer details and lets Google match them to an ad interaction on its side. The first is exact when the identifier exists; the second covers far more orders.

Why do my uploaded conversions show as accepted but not appear?

The two common causes are a timestamp with the wrong UTC offset and a click identifier in the wrong field. Both can return a success-shaped response. Check the per-row partial failure result, confirm the account time zone, and verify that gbraid values are not being sent as gclid.

Should I create a new conversion action or reuse the purchase action?

Create a new one and start it as secondary. A feed of imperfect matches mixed into the primary purchase action can distort bidding before you have measured its precision. Promote it only after the precision by confidence tier is known.

Does the GA4 Measurement Protocol replace the Google Ads upload?

No. The Measurement Protocol records an event in GA4 and joins it to a session through client_id; it cannot retract an event and it carries GA4's attribution model. For exact offline credit in Google Ads, the click-ID upload is still the stronger route.

How do I stop the same offline order being counted twice?

Use one row per order and conversion action, with a unique constraint, and set the order ID on the Google Ads conversion. Make the upload a no-op for rows already marked uploaded, and use a retraction rather than a second conversion when the order changes.

What value should I send for an order that includes shipping?

Send the value you are willing to bid on. Subtotal excluding shipping and tax is the safer default for heavy or made-to-order goods, because a gross order value pulls bidding toward expensive freight rather than profitable products. Whatever you choose, apply it consistently across every route.