Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Google Ads transaction_id missing: how to find and fix it

TRK-141Medium impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

A transaction_id is a unique value, such as an order number, that you send to Google Ads with a conversion. Google Ads uses it to deduplicate: if it sees the same ID twice for the same conversion action, it counts the conversion once.

When the field is missing, Ads has nothing to compare. Every hit that reaches it can look like a separate conversion. This applies to purchases, and also to leads if you send a lead ID or submission ID.

How a missing transaction_id inflates conversions
  1. Ad clickVisitor lands with a gclid
  2. Order placedConversion sent without transaction_id
  3. Thank-you page reloadedSame conversion sent again, no ID to match
  4. Ads reportingTwo conversions recorded for one order

The first hit is real. The repeat hit has no ID to match against, so it is counted again.

Why it costs you leads or sales

Duplicate conversions make campaigns look better than they are. If you use Smart Bidding (target CPA or target ROAS), the bidding model learns from inflated data and can spend on the wrong audiences or keywords. Your reported cost per conversion drops while real revenue stays flat.

It also makes reports hard to trust. Ads totals stop matching your shop or CRM, and the gap is hard to explain. The size of the effect depends on how often people reload, bookmark or revisit the confirmation page.

Reported vs real ordersExample numbers
Reported vs real orders (example)Real orders: 100 conversions; Ads, no transaction_id: 118 conversions; Ads, with transaction_id: 100 conversions04590100118100Real ordersAds, no transaction_idAds, with transaction…conversions

Example: 100 real orders in a week. Without a transaction_id, repeat hits on the thank-you page push Ads to report more.

How to check if your site has it

Check for a transaction_id by hand
  1. Open DevTools

    Open your thank-you page in Chrome, press F12 and go to the Network tab. Tick Preserve log.

  2. Complete a test conversion

    Submit a test lead or order (use test mode for payments). Never enter real card details on a live store.

  3. Find the Google Ads request

    Filter for googleadservices.com/pagead/conversion or google.com/pagead/1p-conversion. Open the request.

  4. Look for the order ID

    Check the query string for the oid parameter. That is where the transaction ID is carried. If oid is missing or empty, you have this issue.

  5. Use Tag Assistant as a second view

    In Google Tag Assistant, open the conversion tag and check that the Transaction ID field has a real value, not a blank or a literal placeholder.

How to fix it

Pick an ID that is unique per conversion and available on the confirmation page: the order number for shops, or a submission or lead ID for forms. Then pass it to the conversion tag. The steps depend on how your tag is set up.

Add transaction_id by platform
  1. Expose the order ID

    Make sure your site pushes the order ID to the data layer on the confirmation page, for example dataLayer.push({transaction_id: '10234'}). For GA4 ecommerce it sits in ecommerce.transaction_id.

  2. Create a Data Layer Variable

    In Variables, add a Data Layer Variable pointing to your key (for example transaction_id). Use version 2.

  3. Add it to the Google Ads Conversion Tracking tag

    Open the tag, find the Order ID field and select your variable.

  4. Preview and publish

    Use Preview mode, run a test order and check the variable has a value when the tag fires. Then publish.

gtag conversion with transaction_idjavascript
gtag('event', 'conversion', {
  'send_to': 'AW-XXXXXXXXX/YYYYYYYYYYYY',
  'value': 49.00,
  'currency': 'USD',
  'transaction_id': 'ORDER-10234'
});
Shopify order number as transaction_idliquid
gtag('event', 'conversion', {
  'send_to': 'AW-XXXXXXXXX/YYYYYYYYYYYY',
  'value': {{ order.total_price | money_without_currency }},
  'currency': '{{ order.currency }}',
  'transaction_id': '{{ order.order_number }}'
});
Lead forms: generate a unique ID when no order ID existsjavascript
var leadId = (window.crypto && crypto.randomUUID) ? crypto.randomUUID() : Date.now() + '-' + Math.random().toString(36).slice(2);
gtag('event', 'conversion', {
  'send_to': 'AW-XXXXXXXXX/YYYYYYYYYYYY',
  'transaction_id': leadId
});
Conversion tag before and after

Before

  • No `oid` in the conversion request
  • Reloading the thank-you page counts again
  • Ads totals higher than shop or CRM totals

After

  • Unique `oid` on every conversion request
  • Repeat hits with the same ID are deduplicated
  • Ads totals closer to real orders

How to confirm it's fixed

Confirmation checklist
  • The conversion request shows an oid value on a test order or lead
  • Two different test orders show two different IDs
  • The ID is a real value, not blank or an unresolved {{variable}}
  • Tag Assistant shows the Transaction ID field filled
  • Reloading the thank-you page repeats the same ID, not a new one
  • After a few days, Ads conversion counts sit closer to your shop or CRM totals

How to prevent it happening again

Keep transaction_id working
  • Treat the order ID in the data layer as part of your tracking spec
  • Re-test the conversion request after theme, checkout or plugin updates
  • Re-test after any GTM container publish that touches conversion tags
  • Use the same ID in Ads, GA4 and your CRM so counts can be compared
  • Schedule an automated check so a regression is caught within a day

How FunnelGuard handles this

FunnelGuard detects this issue today. A robot visitor runs your real journey, such as a lead form or checkout, on a schedule from the EU or the US. It then inspects the tracking hits sent to Google Ads and applies rules on the request parameters, flagging a conversion that arrives without a transaction_id.

Questions people ask

Why are my Google Ads conversions higher than my actual orders?

A common cause is a missing transaction_id. Without it, reloading or revisiting the thank-you page can be counted as a new conversion. Other causes include the tag firing twice or counting more than one action per sale, so check those too.

What is transaction_id in Google Ads?

It is a unique value, usually the order number, sent with a conversion. Google Ads uses it to count the same conversion only once if the same ID arrives again for that conversion action. It appears as the oid parameter in the conversion request.

How do I add a transaction ID to my Google Ads conversion tag?

In Google Tag Manager, put your order ID in a Data Layer Variable and select it in the Order ID field of the Google Ads Conversion Tracking tag. In gtag, add 'transaction_id': 'YOUR-ID' to the conversion event. The ID must be different for each order.

Do lead form conversions need a transaction_id?

It is not required, but it helps if people can reload or revisit the thank-you page. Use a lead or submission ID from your server or CRM. If you generate one in the browser, create it once per submission, not on every page load.

Will adding a transaction_id fix my old conversion data?

No. It only affects conversions sent after the change. Earlier inflated numbers stay in your reports, so note the date of the fix when comparing periods.

How can I see if the transaction ID is being sent?

Open DevTools, go to the Network tab, complete a test conversion and find the Google Ads conversion request. Check that the oid parameter holds a real, unique value. Tag Assistant also shows the Transaction ID field for the tag.

Can FunnelGuard tell me if transaction_id is missing?

Yes. FunnelGuard runs your journey with a robot visitor and checks the Google Ads tracking hit against parameter rules. A conversion without a transaction_id is flagged and you get an alert with a screenshot and a likely cause.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: params rules.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.