Connecting WooCommerce to Google Ads
WooCommerce keeps the order in your own database, which is both the advantage and the reason nobody has wired it properly. Google Ads knows what you spent and which click it came from, and nothing at all about what happened afterwards. The join between them succeeds or fails on one thing: whether the GCLID reaches the WooCommerce order before the conversion happens, because Google Ads can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
WooCommerce to Google Ads: gclid as order meta, uploaded on payment
Save the gclid, gbraid or wbraid as WooCommerce order meta at creation, testing both classic and block checkout, and upload paid orders to an import-type action with the order number as order ID. Set the plugin's tag conversion to secondary to avoid double counts, add enhanced conversions with billing email, and send restatements from refund hooks.
Google for WooCommerce fires its purchase conversion from the browser on the order-received page, which inherits every caching and redirect problem that page has. Compare Google Ads conversions with your WooCommerce order count for a closed week; if they disagree, the gap is usually cached or skipped thank-you pages, and an offline import from order meta closes it.
Save the gclid, and gbraid or wbraid where present, as order meta at order creation, from a first-party cookie set on landing. Classic checkout and the block-based checkout use different hooks, so test both if the store has moved to blocks. Upload paid orders against an import-type conversion action, with the order number as order ID and value excluding shipping and tax if that is how you report revenue. If the plugin's tag conversion stays active, set one of the two actions to secondary; both primary means each order counts twice.
Enhanced conversions fit WooCommerce well because the billing email is on every order. Use the order's creation time as conversion time, not the moment it moves to completed after shipping, and send restatements from the refund hooks so Smart Bidding learns on net revenue.
WooCommerce → Google Ads · what breaks
Why this join usually fails — WooCommerce → Google Ads
- 01
The GCLID never reaches WooCommerce
WooCommerce sites are usually the most heavily plugged-in of any platform. Caching plugins serve a static page to the visitor, optimization plugins defer or strip scripts, and consent plugins block them entirely. Any of the three will stop an identifier being captured, and they fail silently.
- 02
Caching and optimization plugins eat the tracking
The page the customer sees is not the page your code assumed. This is the most common cause of WooCommerce tracking that worked at launch and silently stopped after a plugin update.
- 03
The conversion action is the wrong type
Uploads against a standard website conversion action fail. The action has to be created as 'Import' — and existing actions cannot be converted, so this is discovered late and requires starting a new action with no history.
- 04
Nothing reconciles afterwards
Google Ads reports uploads in Goals → Conversions → Uploads, with rows accepted and rows failed. A green result means the file parsed, not that the clicks matched. The number to watch is how many conversions actually appear against campaigns afterwards.
WooCommerce → Google Ads · the fix
What working looks like — WooCommerce → Google Ads
The GCLID on every order
Conversions arriving in Google Ads
Conversions appear against the campaign, ad group and keyword that produced the click, with the value you sent — which is what lets Smart Bidding optimize toward revenue instead of toward form fills.
Reconciled against the source
WooCommerce → Google Ads · architecture
How WooCommerce and Google Ads actually connect
- 1
WooCommerce holds the truth
You own the database, so the truth is exactly as good as the query you write against it. Pin the status set first — whether processing, completed, or both count as a conversion changes the number by a lot and is the source of most arguments.
- 2
Google Ads needs a click to match
Google Ads matches an uploaded conversion back to a click using the GCLID. The conversion action must be created as an import type — an upload against a website-tag conversion action is rejected. Uploads must also land inside Google's window: the click has to be within the last 90 days.
- 3
The identifier is the bridge
The GCLID, captured at the visit and carried into the WooCommerce order.
- 4
The event source decides reliability
Fire server-side from the PHP hook rather than from the thank-you page template. Page caching means the thank-you page cannot be relied on to execute anything, and on many stores it is served from cache to a paying customer.
- 5
Deduplication at the destination
Google deduplicates on the combination of GCLID, conversion action and conversion time. Uploading the same click twice against the same action at the same timestamp is rejected rather than double-counted, but uploading it against a second conversion action counts twice — which is how most double-counting here actually happens.
WooCommerce → Google Ads · normal or broken
Working vs. broken, side by side — WooCommerce → Google Ads
Normal, not a fault
The GCLID present on the order
Sent from the woocommerce_payment_complete hook
Deduplicated correctly
Google deduplicates on the combination of GCLID, conversion action and conversion time. Uploading the same click twice against the same action at the same timestamp is rejected rather than double-counted, but uploading it against a second conversion action counts twice — which is how most double-counting here actually happens.
Reconciles with the source
Actually broken
The GCLID missing on most records
WooCommerce sites are usually the most heavily plugged-in of any platform. Caching plugins serve a static page to the visitor, optimization plugins defer or strip scripts, and consent plugins block them entirely. Any of the three will stop an identifier being captured, and they fail silently.
Sent from the browser
The page the customer sees is not the page your code assumed. This is the most common cause of WooCommerce tracking that worked at launch and silently stopped after a plugin update.
Counted twice, or not at all
Uploads against a standard website conversion action fail. The action has to be created as 'Import' — and existing actions cannot be converted, so this is discovered late and requires starting a new action with no history.
Nobody has reconciled it
WooCommerce → Google Ads · diagnose
Diagnostic order — WooCommerce → Google Ads
- 01
Count orders carrying the GCLID
- 02
Follow one real conversion end to end
- 03
Check order meta on ten recent orders
Directly in the database or with a meta viewer. Then disable page caching for the checkout path and see whether coverage changes — if it does, caching is your cause.
- 04
Check the conversion action type and the upload diagnostics
In Google Ads, Goals → Conversions → Uploads shows every upload with its error rows. Read the errors rather than the success count; a file can import successfully with most rows rejected.
- 05
Read the match rate, not the success message
Google Ads reports uploads in Goals → Conversions → Uploads, with rows accepted and rows failed. A green result means the file parsed, not that the clicks matched. The number to watch is how many conversions actually appear against campaigns afterwards.
WooCommerce → Google Ads · prove
How it gets proven — WooCommerce → Google Ads
Source of truth
WooCommerce → Orders (or the wp_wc_order_stats table), for the same window and status set.
- The GCLID confirmed present on a live order.
- The Uploads diagnostics read row by row, with the accepted count reconciled against conversions appearing in campaign reporting.
- Order meta confirmed present on orders placed while full page caching was active.
WooCommerce → Google Ads · free audit
What we check in the free audit
- Count orders carrying the GCLID
- Follow one real conversion end to end
- Check order meta on ten recent orders
- Check the conversion action type and the upload diagnostics
- Read the match rate, not the success message
Checked against
WooCommerce → Orders (or the wp_wc_order_stats table), for the same window and status set.
Free30 minutesNo obligation
WooCommerce → Google Ads · when not to buy
When you don't need this — WooCommerce → Google Ads
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the GCLID.
- If you run a small store with no caching layer and a single free plugin already reporting accurately, leave it alone.
- If your sales close inside a few days and your website tag already reports accurately, you may not need offline import at all. It exists to solve the delay between click and revenue.
WooCommerce → Google Ads · what we deliver
What gets built — WooCommerce → Google Ads
Identifier capture into WooCommerce
Capture the click identifier and persist it as order meta on the order object with a small snippet in the theme's functions or a purpose-built plugin. Order meta lives in your own database, so it survives caching, plugin conflicts and the customer's browser.
Event source: the woocommerce_payment_complete hook
Fire server-side from the PHP hook rather than from the thank-you page template. Page caching means the thank-you page cannot be relied on to execute anything, and on many stores it is served from cache to a paying customer.
Dispatch to Google Ads
Offline Conversion Import through the Google Ads API, or a scheduled upload. Enhanced conversions for leads where GCLID coverage is poor and you have consented email addresses.
Reversals where they exist
The refund hooks carry the order ID, so reversals are straightforward once the identifier is on the order.
Written guarantee
95%+ tracking accuracy
Measured against WooCommerce → Orders (or the wp_wc_order_stats table), for the same window and status set.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
WooCommerce → Google Ads questions, answered
It works when the order-received page loads and runs its tag. If caching or gateway redirects skip that page, add an offline import from order meta and set one action to secondary.
As order meta written at order creation from a first-party cookie set on landing. Test both classic and block checkout if your store uses the block-based one.
Almost always because the GCLID never reached the WooCommerce order. WooCommerce sites are usually the most heavily plugged-in of any platform. Caching plugins serve a static page to the visitor, optimization plugins defer or strip scripts, and consent plugins block them entirely. Any of the three will stop an identifier being captured, and they fail silently. Measure coverage before debugging the dispatch.
The GCLID — the click ID Google appends to your landing page URL when auto-tagging is on. For iOS App campaigns and some Shopping traffic you will see GBRAID or WBRAID instead, and those behave differently: WBRAID cannot be used with user-provided data in the same way, and neither joins to an individual user. Enhanced conversions for leads is the alternative path, matching on hashed email or phone rather than a click ID, and it is the right choice when GCLID coverage is poor.
The woocommerce_payment_complete hook. Fire server-side from the PHP hook rather than from the thank-you page template. Page caching means the thank-you page cannot be relied on to execute anything, and on many stores it is served from cache to a paying customer.
Google Ads reports uploads in Goals → Conversions → Uploads, with rows accepted and rows failed. A green result means the file parsed, not that the clicks matched. The number to watch is how many conversions actually appear against campaigns afterwards.
More on WooCommerce → Google Ads
- WooCommerce Subscriptions → Google AdsConnecting WooCommerce Subscriptions to Google Ads
- Google Ads · Lead → booked callHow to track lead to booked call for Google Ads
- Google Ads · Booked call → closed wonHow to track booked call to closed won for Google Ads
RELATED GUIDES
Where WooCommerce → Google Ads fits in the rest of your tracking
- Google Ads · Furniture ecommerceGoogle Ads conversion tracking for furniture ecommerce brands
- Google Ads · Jewelry ecommerceGoogle Ads conversion tracking for jewelry ecommerce brands
- Google Ads × Ecommerce OrdersHow to reconcile Google Ads against your store's order table
- Google Ads · Add to cart → purchaseHow to track add to cart to purchase for Google Ads
- Ecwid → Google AdsConnecting Ecwid to Google Ads
- WooCommerce → NextdoorConnecting WooCommerce to Nextdoor Ads
- Jewelry ecommerceConversion tracking for jewelry ecommerce, measured in settled orders
- Squarespace → Google AdsConnecting Squarespace Commerce to Google Ads
Free · 30 min
Get WooCommerce and Google Ads joined properly
Free30 minutesNo obligation
