Order IDs and duplicate conversions: stopping double counting

Passing a unique order ID (called transaction_id in tags and transactionId in the Data Manager API) prevents Google Ads from counting the same conversion twice within a single conversion action. If a browser tag already recorded an online checkout or paid invoice link, uploading the exact same identifier stops duplicate credit. In the Data Manager API, subsequent events carrying a matching transactionId update the existing conversion as an adjustment rather than failing.

Key facts

  • Google Ads requires each transaction ID to be unique per purchase, dynamically generated, up to 64 characters long, and free of personally identifiable information (PII). Source: support.google.com
  • When using both the Google tag and Data Manager server-to-server uploads on the same conversion action, the transaction ID must match character-for-character across both sources to deduplicate. Source: support.google.com
  • In the Data Manager API IngestEvents endpoint, sending an event with an existing transactionId for the same conversion action treats the second call as a conversion adjustment rather than throwing a duplicate error. Source: developers.google.com
  • Deduplication by transaction ID applies strictly within the same conversion action; two separate primary conversion actions will still double-count an order even if both carry the same order ID. Source: support.google.com
Matching numbered invoice slips and verification stamp on a clean oak desk
On this page

How order ID deduplication works in Google Ads

Passing a unique order ID (documented as transaction_id in browser tags and transactionId in the Data Manager API) tells Google Ads when two incoming conversion signals describe the same sale. When two events arrive for the same conversion action carrying an identical order ID, Google Ads deduplicates them rather than crediting the revenue twice, as detailed in our Google Ads offline conversions guide.

For merchants running both online storefront pixels and offline phone or draft-order pipelines, deduplication is essential because hybrid checkouts overlap. A customer might call your sales desk, ask a customer service representative (CSR) to build a Shopify draft order, and pay through an emailed Shopify invoice link that loads an online confirmation page—firing a browser tag on top of your backend upload.

Before uploading a batch, you can verify whether your export file carries valid order IDs alongside properly hashed identifiers in our Enhanced Conversions Validator.

Duplicate order IDs behave very differently depending on which Google endpoint receives your upload:

Behavior Browser tag (gtag.js / GTM) Legacy Google Ads API (UploadClickConversions) Data Manager API (IngestEvents)
Field name transaction_id order_id transactionId
Same ID sent twice on same action Second event discarded as duplicate; error surfaced Fails row with duplicate order ID error First event kept; subsequent call processed as conversion adjustment
Adjustment support Not applicable Requires separate ConversionAdjustmentUploadService Unified into IngestEvents (restates value; no full retraction to 0)
Different action, same ID Not deduplicated Not deduplicated Not deduplicated

That Data Manager API shift matters when your backend pipeline retries failed jobs or updates an order after a partial refund. Because IngestEvents treats a repeated transactionId on the same conversion action as a value or user-data update rather than rejecting it, your uploader must distinguish between a new order, an idempotent retry, and an intentional refund restatement. Note also that Data Manager supports restating conversion values but does not support full conversion retractions (setting count and value to zero) the way the legacy adjustment service did.

Rules every order ID must follow

Google Ads Help defines strict formatting and uniqueness rules for transaction and order IDs:

  • Maximum 64 characters: IDs can contain letters, numbers, and standard characters like hyphens or spaces, up to 64 characters.
  • No PII inside the ID: Never construct an order ID using a customer’s email address, phone number, or full name.
  • Exact character parity across sources: If your Shopify Google & YouTube app sends #10452 or 10452 from the storefront tag, your backend Data Manager upload must send the exact same string—no added prefixes, suffixes, or trailing spaces—or deduplication fails.
  • Never use static placeholders or raw template strings: Values such as thank_you, 1234, or unresolved Liquid/JavaScript strings like {{ order_number }} cause Google Ads to treat distinct customers’ purchases as duplicates of the first order, severely undercounting conversions.
  • Watch for GG_ prefixes: If Google Tag Assistant or network logs show a GG_ transaction ID (for example GG_1234abcd), Google generated a temporary fallback because your site sent nothing. You cannot match offline uploads or value adjustments against GG_ IDs.

Why order IDs alone do not prevent cross-action double counting

Transaction IDs deduplicate only within a single conversion action. If your Google Ads account tracks storefront purchases in a primary action called Shopify Purchase and uploads phone/draft orders into a separate primary action called Offline Draft Order, Google Ads will happily count the exact same order number in both columns if an invoice checkout link happened to fire the storefront pixel.

Avoid cross-action inflation in two ways:

  1. Multi-source on one action (when uploading all orders). Google recommends sending backend orders to the same conversion action via Data Manager with identical transaction_id values so Google deduplicates tag + server events automatically.
  2. Channel-exclusive filtering (when uploading offline-only actions). Keep your offline conversion action secondary during testing, classify every Shopify order by source, and exclude any order_id that already fired an online checkout event before building your offline Data Manager batch.

Conversion count (“Every” vs “One”) and verifying your tags

Passing an order ID does not replace configuring the Count setting on your conversion action. Google Ads Help draws a sharp distinction between the two controls:

  • Count = One: Counts only one conversion per ad click, regardless of how many distinct purchases that buyer completes later. Use One for lead-form submissions where duplicate reloads should collapse into one lead.
  • Count = Every + unique Order ID: Counts every distinct purchase after an ad click while blocking accidental repeats of the same order. Google explicitly recommends Every paired with unique transaction IDs for purchase actions—and requires Every whenever your offline uploads include wbraid or gbraid parameters.

Before launching parallel Data Manager uploads, verify that your storefront tag already sends real order IDs rather than blank or GG_ fallback strings:

  1. Google Tag Assistant: Connect Tag Assistant to your store, place a test order, select your Google Ads tag (AW-...), open the Hits tab, and inspect the transaction_id parameter.
  2. Chrome DevTools Network tab: Filter requests for googleadservices.com/pagead/conversion, open the Payload tab, and check the oid parameter to confirm it matches your exact Shopify order ID character-for-character.

Note two built-in Google Ads limits documented in Google Ads Help: transaction IDs do not appear as a visible column in standard Google Ads reports, and passing a transaction ID does not deduplicate view-through conversions.

How Shopify draft orders create duplicate conversion risk

Draft orders built by a customer service representative (CSR) in Shopify split into two checkout behaviors, and only one fires your website pixel. As explained in our Shopify draft orders tracking guide, a CSR might create a draft order after a phone call and either:

How the Shopify draft order is paid Loads online thank-you page? Browser tag fires? How order ID deduplication protects you
Emailed Shopify invoice link paid by card online Yes, standard checkout confirmation loads Yes (most ad-blocker-free sessions) Sending the exact Shopify order ID in your backend upload prevents Google from counting the sale twice
Phone payment or manual “Mark as paid” in Shopify Admin No, never visits storefront thank-you URL No Backend Data Manager upload records the conversion once using the order ID and stored identifiers

Because a single sales desk often mixes both payment methods in the same week, blindly uploading every draft order into a separate primary action double-counts invoice-link orders. Pairing a phone-order tracking workflow in Shopify with strict order-ID parity ensures hybrid checkouts count once while offline-only payments still get measured.

How conversion adjustments and refunds interact with order IDs

Passing an immutable order ID is also required if you restate conversion values after partial refunds, order edits, or shipping adjustments. However, the Data Manager API handles adjustments differently from the legacy Google Ads API:

  • Automatic restatement on repeat transactionId: In IngestEvents, resending an order with the same transactionId and a lower conversionValue (for example, adjusting a $1,200 order down to $900 after a $300 item return) updates the recorded value without throwing a duplicate error. You do not pass a separate ConversionAdjustmentType enum.
  • No full retractions to zero: Unlike the legacy Google Ads API ConversionAdjustmentUploadService, the Data Manager API does not support conversion retractions that wipe conversion count and conversion value to 0. You can restate value upward or downward, while the conversion count remains 1.
  • Internal ROAS reporting still needs net refunds: Because Data Manager cannot retract cancelled orders to zero count, adjust your internal ROAS reporting separately using the rules in our returns and cancellations ROAS guide.

Common transaction ID coding errors to audit

Google Ads Help warns that malformed or static transaction IDs silently break deduplication or cause widespread undercounting across unrelated buyers:

  • Unresolved template variables: Passing raw code strings such as {{ order_number }}, [invoice-prefix][invoice-number], or Number(order.id).toString() causes every customer’s purchase to share the same literal string, collapsing distinct orders into one conversion.
  • Static placeholder words: Values like thank_you, congrats, buy, or 1234 block real purchases after the first occurrence.
  • URLs, prices, or PII: Never pass full confirmation URLs, dollar amounts like $15.50, email addresses, or phone numbers as the order ID. If an order ID appears inside a query parameter such as ?order_id=54321, extract only 54321.

How order IDs anchor confidence tiers in ROAS reporting

Even before a single event is uploaded to Google Ads, strict order-ID deduplication is the backbone of accurate internal attribution reporting. In our three-ROAS attribution method, every paid Shopify order and draft order is keyed by its unique store order_id and assigned at most one credit path:

  1. Google-reported baseline: Orders already credited in Google Ads’ browser conversion column are locked first so they can never be added back as “recovered” offline sales.
  2. Own-evidence floor: Uncredited paid orders matched deterministically by gclid, caller phone number, or recorded email receive credit exactly once—never once for a phone call and a second time for an email match on the same order.
  3. Estimated tier: Channel-level estimates apply strictly to the remaining unmatched offline bucket, net of refunds and cancellations.

During an Attribution Audit, checking order-ID overlaps between Shopify draft orders, call-tracker logs, and Google Ads purchase tags frequently exposes double counting in DIY Zapier workflows or dual-tag setups before any budget decisions are made—and prevents the same duplication when we configure a Closed-Loop Build.

Frequently asked questions

What is the difference between Transaction ID and Order ID in Google Ads?

They are the exact same identifier named differently by interface. Google Tag Manager and the Google tag snippet call the parameter transaction_id, offline CSV imports and legacy Google Ads API uploads call it Order ID (order_id), and the Data Manager API names the JSON field transactionId. Google Ads treats them identically when matched within the same conversion action.

Does an Order ID prevent duplicates across two different conversion actions?

No. Google Ads deduplicates by transaction ID only within a single conversion action. If your website purchase tag reports into Action A and your offline Data Manager upload sends the same order into Action B, and both actions are set as Primary, Google Ads counts the sale twice. Use one unified action for matching or exclude tag-captured orders before uploading.

How does the Data Manager API handle duplicate Order IDs differently from the Google Ads API?

In the legacy Google Ads API UploadClickConversions method, sending a second conversion with the same order_id for the same conversion action fails with a duplicate error. In the Data Manager API IngestEvents method, Google treats a subsequent upload sharing an existing transactionId on the same action as a conversion adjustment—updating value or user data instead of rejecting the request.

What does a GG_ prefix on a Transaction ID mean in Google Ads?

A transaction ID beginning with GG_ (such as GG_1234abcd) is a temporary placeholder generated automatically by Google when your website tag failed to pass your own order number. Google Ads Help advises treating GG_ values as blank IDs: they cannot be used for conversion adjustments, do not clear missing-transaction-ID diagnostics, and will not deduplicate against backend uploads.

Why should I still keep Order IDs in my internal attribution matching if Google deduplicates?

Google's deduplication only protects uploads to Google Ads, and only within one conversion action. Your internal true ROAS reporting also needs strict order-ID uniqueness so a Shopify draft order paid via invoice link—which may trigger a browser pixel on payment—is never counted in both Google-reported ROAS and your offline phone-order recovery.

Sources

  1. Google Ads Help: Use a transaction ID to minimize duplicate conversions (checked )
  2. Google Data Manager API: Upgrade from the Google Ads API (checked )
  3. Google Data Manager API: Send events (checked )
  4. Google Ads API: Manage offline conversions (checked )