Google Ads Tracking Setup for WooCommerce
Quick answer: Use the free container builder wizard to select Google Ads and your events, enter your tracking ID, then import the generated file into Google Tag Manager - no manual tag setup needed for any of the 23 events below.
Conversion tracking tags using Google Ads' native GTM tag type. This container uses a native GTM tag type for this platform.
Build my Google Ads container →
Events you can track
ecommerce events
- Google Ads Page View event setup
- Google Ads View Item event setup
- Google Ads View Item List event setup
- Google Ads Add to Cart event setup
- Google Ads Remove from Cart event setup
- Google Ads Begin Checkout event setup
- Google Ads Add Payment Info event setup
- Google Ads Purchase event setup
- Google Ads Refund event setup
- Google Ads Add to Wishlist event setup
- Google Ads Coupon Applied event setup
- Google Ads Search event setup
- Google Ads Login event setup
- Google Ads Sign Up event setup
engagement events
- Google Ads Form Submission event setup
- Google Ads Lead event setup
- Google Ads Phone Click event setup
- Google Ads WhatsApp Click event setup
- Google Ads Email Click event setup
- Google Ads Outbound Click event setup
- Google Ads Scroll event setup
- Google Ads File Download event setup
- Google Ads Calendly Booking Scheduled event setup
By Humayun Kabir Naim — Last updated: 7 November 2026
Quick answer
To track WooCommerce purchases in Google Ads through Google Tag Manager, create a Purchase conversion action in Google Ads, take its Conversion ID and Conversion Label, and fire GTM's built-in Google Ads Conversion Tracking tag on the same purchase dataLayer event your GA4 setup already uses. Feed the tag three variables from that push — the order value, the currency, and the order ID — and Google Ads records each sale once, at the amount the customer actually paid. Add the Conversion Linker tag so clicks are attributed correctly, and Enhanced Conversions on top to match more conversions to signed-in users.
What gets tracked
Google Ads is not GA4. It does not need eleven events — it needs one conversion it can trust, plus a few supporting signals:
| WooCommerce dataLayer event | Google Ads role | Why it matters |
|---|---|---|
purchase | Primary conversion | The sale Smart Bidding optimises for; must carry value, currency and order ID |
begin_checkout | Secondary conversion (optional) | Useful for observation and checkout drop-off audiences; never set it primary alongside Purchase |
add_to_cart | Secondary conversion (optional) | Feeds cart-abandoner remarketing; keep it out of primary bidding |
view_item | Remarketing signal | Powers dynamic remarketing when the Google tag sees product IDs on product pages |
refund | Offline/adjustment handling | Google Ads does not subtract refunds from the tag automatically — handle refunded orders in reporting or via conversion adjustments |
Two rules before you build anything. First, one primary purchase source per account: if you also import GA4 purchases, or the Google for WooCommerce extension sends its own conversion, the same sale is counted twice and Smart Bidding learns from doubled revenue. Pick the GTM tag below and pause the others. Second, value is not optional: without it, Google treats every order as equal, and value-based bidding (tROAS, Maximise conversion value) has nothing to work with.
Deep dives: Purchase, Add to Cart, Begin Checkout. If GA4 is not set up yet, do that first — the same dataLayer feeds both: WooCommerce + GA4. See all options on the WooCommerce hub.
Before you start
- GTM installed on the store, and the dataLayer working. One web container, and a dataLayer source (GTM4WP with WooCommerce enhanced ecommerce enabled) pushing a clean
purchaseevent on the thank-you page. If your GA4 setup already works, this is done — Google Ads reads the same push. - A Purchase conversion action in Google Ads. In Google Ads: Goals → Conversions → New conversion action → Website. Name it clearly (for example "Purchase — GTM"), set the category to Purchase, value to Use different values for each conversion, and counting to One — "One" counts each order once even if the tag somehow fires twice for it. Then open the action's Tag setup, choose Use Google Tag Manager, and copy the Conversion ID (the
AW-number) and Conversion Label. - One sender only. Check for rival senders of the same purchase before adding this one: a GA4 purchase import in Google Ads (Goals will list it), the Google for WooCommerce extension's conversion tag, a hardcoded gtag.js snippet in the theme, or an old GTM container. Decide which one survives — this guide assumes the GTM tag does.
- Admin access to GTM and Google Ads, to publish the container and read the conversion diagnostics.
Route 1: Use the free TagManagerBuilder container
Open the GTM Container Builder, choose WooCommerce, then Google Ads, and tick the events you want. Enter your Conversion ID and label, download the JSON, then in GTM go to Admin → Import Container and choose Merge → Overwrite conflicting tags, triggers, and variables. Test with the testing section below before publishing.
Note: the container does not replace GTM4WP. The container holds the tag that reads the dataLayer; the plugin creates it. You need both — and if you already imported the WooCommerce × GA4 container, import this one into the same workspace so the two share the dataLayer variables.
Route 2: Build it manually in GTM
Step 1 — The Conversion Linker tag
Tags → New, choose Conversion Linker, and set the trigger to All Pages. This tag stores the ad-click identifiers (the gclid and its successors) in first-party cookies, so a purchase days later is still attributed to the click that caused it. Without it, tags can fire perfectly and conversions still land unattributed or missing. If one already exists in this container, keep it — you need exactly one.
Step 2 — Variables that read the purchase push
Google Ads wants three fields from the purchase event, and all three already sit in the ecommerce object. Create these in Variables → New → Data Layer Variable (Data Layer Version 2):
ecommerce.value— the order total Google Ads will report as conversion valueecommerce.currency— the order currency code (for exampleUSD)ecommerce.transaction_id— the WooCommerce order ID, sent as the tag's Order ID
If you followed the GA4 hub, these variables already exist; reuse them rather than creating duplicates with slightly different names. If ecommerce.value shows as empty in Preview, the problem is the push, not the tag — compare against the reference push below.
Step 3 — The Google Ads conversion tag
Tags → New, choose Google Ads Conversion Tracking, and fill it in:
- Conversion ID: the numeric part of your
AW-ID - Conversion Label: the label from the conversion action's tag setup
- Conversion Value:
{{DLV - ecommerce.value}} - Currency Code:
{{DLV - ecommerce.currency}} - Order ID:
{{DLV - ecommerce.transaction_id}}
The Order ID earns its keep twice: it is how Google Ads deduplicates repeat fires of the same order (a refreshed thank-you page, a back-button revisit), and it is the key conversion adjustments match against later.
Step 4 — Trigger on the purchase event only
Attach a Custom Event trigger with the event name purchase. Not All Pages, not a thank-you-page URL match: page-URL triggers fire on refreshes and on visits that arrive without an order, while the dataLayer event fires exactly when WooCommerce confirms a paid order — and it carries the value with it. One tag, one trigger, one conversion per order.
Step 5 (optional) — Secondary conversions for add_to_cart and begin_checkout
For cart and checkout signals (audiences, observation), repeat Steps 3–4 with separate conversion actions, each with its own label and its own event trigger — and leave both set to Secondary in Google Ads, so they never enter primary bidding alongside Purchase.
What a correct purchase push looks like
Compare your thank-you page push against this, field by field. It is the same push the GA4 and Meta hubs use — Google Ads reads the same object, through different variables:
dataLayer.push({ ecommerce: null }); // clear the previous object first
dataLayer.push({
event: "purchase",
ecommerce: {
transaction_id: "1042",
value: 129.99,
tax: 10.00,
shipping: 5.00,
currency: "USD",
items: [{
item_id: "SKU-123",
item_name: "Trail Running Shoes",
item_category: "Footwear",
price: 119.99,
quantity: 1
}]
}
});
The three fields the conversion tag reads are value, currency, and transaction_id. value must be a number — 129.99, not "$129.99" — and it should be the order total the customer paid, in the same currency the currency field names.
Enhanced Conversions — turn this on once the basic tag records
Enhanced Conversions sends hashed first-party customer data (email, phone, name, address) with the conversion, so Google can match purchases to signed-in users even when the click cookie is gone. It is a matching layer on top of the tag above, not a replacement.
In GTM, open your Google Ads conversion tag and tick Include user-provided data from your website. GTM can collect the data automatically on pages where the customer enters it — but a WooCommerce purchase is confirmed on the thank-you page, where the checkout form no longer exists. The reliable route is to pass the data explicitly: have your dataLayer source expose the order's billing email (and phone, if collected) on the purchase push, create User-Provided Data variables from those fields, and select Manual configuration in the tag. GTM hashes the values in the browser before sending.
Then verify in Google Ads: open the conversion action and check its Enhanced conversions status and the Diagnostics tab. A healthy setup shows enhanced conversions recording with a high match rate within a few days. A low match rate almost always means the variable is empty on the thank-you page — check in Preview what it contains at the purchase event before changing anything in the ad account.
Test it: Preview first, then Google Ads' own status
- Click Preview in GTM and open your store in Tag Assistant.
- Place a real test order end to end — a coupon that takes the total to zero also makes the value zero, so use a cheap product or a partial discount if you want to verify value.
- In the Preview timeline, click the
purchaseevent. Your Google Ads conversion tag should sit under Tags Fired, and opening it should show your Conversion ID, label, value129.99(your test amount), currency, and order ID — not blanks, not placeholders. - In Google Ads, open Goals → Conversions and click your purchase action. A new tag typically shows Inactive until the first real conversion is recorded, then Recording conversions. The Diagnostics tab (and Tools → Troubleshooting) reports tag problems such as missing values or currency errors once data flows.
- Allow for delay: conversions can take a few hours to appear in Google Ads. A tag verified in Preview that has not appeared yet is usually just the delay — check again before rebuilding anything.
- Only then click Submit in GTM to publish — and repeat one test order against the live version, because Preview tests the draft, not the published container.
WooCommerce-specific troubleshooting
The tag fires in Preview but Google Ads records nothing. Work through the boring causes in order: the container is not published (Preview tests drafts); the Conversion ID or label has a typo or belongs to a different ad account; the conversion action is still within its first hours; or the Conversion Linker is missing, so clicks cannot be attributed. Also confirm the action is a Website action set to use the GTM tag — an action created for a different setup will never see your tag's data.
Every purchase is counted twice. Look for a second sender, not a second trigger: a GA4 purchase import into Google Ads, the Google for WooCommerce extension, or a hardcoded gtag snippet are the usual partners in crime. Goals → Conversions lists both sources — keep the GTM one as primary and pause or remove the other. The Order ID protects you against the tag itself firing twice for one order, but not against two different systems reporting the same order.
Conversions record, but the value is 0 or wrong. Inspect ecommerce.value on the purchase push. The usual causes: the value arrives as a formatted string ("$129.99"), the variable points at the wrong field (an items price instead of the order total), or the dataLayer plugin is configured to exclude tax or shipping while you expected the full total. Fix the format at the source; do not hardcode a value in the tag — every order would report the same revenue.
Currency errors or conversions rejected in Diagnostics. The tag sends a currency code Google Ads does not recognise, or no code at all. ecommerce.currency must be a valid ISO code (USD, EUR, BDT) that matches the currency the value is actually in. If your store sells in one currency, a constant would work — but the variable is safer, because it stays correct if the store ever adds a second currency.
Enhanced Conversions shows a low match rate or "insufficient data" warnings. The user-provided data variable is empty or fires too late. On WooCommerce the classic mistake is automatic collection: there is no checkout form on the thank-you page for GTM to read, so the fields arrive empty. Switch to the manual route — billing email and phone passed through the purchase push into User-Provided Data variables — and confirm in Preview that the variables hold values at the purchase event.
Add to cart or begin checkout conversions never fire. Check whether the push happens at all: AJAX add-to-cart updates the cart without a page load, and some dataLayer setups only push on full page views. Watch the Preview timeline while clicking the exact button. If the event is missing, the fix belongs in the dataLayer plugin's settings, not in the Google Ads tag.
Next steps once this is clean: Consent Mode v2 so declined consent is respected by the Google tag, and the Server-Side Tracking for WooCommerce guide if ad blockers are eating into the purchases you can see.
Frequently asked questions
Should I use the GTM tag or just import purchases from GA4?
Either can work, but not both at once. The GTM tag reports faster, carries the Order ID for deduplication, and is the route Enhanced Conversions builds on. A GA4 import is simpler if your GA4 purchase data is already perfect. Whichever you choose, set the other to secondary or remove it — two primary purchase sources double-count every sale.
Do I still need GTM4WP if I use the TagManagerBuilder container?
Yes. The container holds the tag, trigger, and variables that read the dataLayer; GTM4WP creates the WooCommerce dataLayer. Without a dataLayer source, the conversion tag fires with no value, currency, or order ID to send.
What should counting be set to — One or Every?
One for a WooCommerce purchase action: each order is one conversion. "Every" is for cases like counting each item in a basket separately. With counting on One and the Order ID sent by the tag, a refreshed thank-you page cannot inflate your numbers.
Why does my conversion action say "Inactive" or "No recent conversions"?
"Inactive" before the first recorded conversion is normal — the status changes once a real purchase is recorded through the published container. If it persists after real orders, test in Preview: if the tag fires there with the right ID and label, the problem is in the ad account (wrong action, wrong account, or attribution settings), not the tag.
Does Enhanced Conversions send my customers' raw email addresses to Google?
No. GTM hashes the user-provided data in the visitor's browser (SHA-256) before sending, and Google matches hashes against its own hashed records. You must still cover it in your privacy policy and respect consent — hashed is not the same as anonymous.
Can Google Ads track refunds automatically?
No. The tag reports the purchase when it happens and never learns about a later refund. Handle refunds by excluding them in your own reporting, or send conversion adjustments from your order system if refunded revenue is distorting bidding.