Google Ads conversion tracking on WooCommerce with Google Tag Manager (with enhanced conversions)
To set up Google Ads conversion tracking on WooCommerce with Google Tag Manager, you add a WooCommerce data layer to WordPress, then fire a Google Ads Conversion Tracking tag on the purchase event of the order-received page. The tag reads the order's value, currency and transaction ID from the data layer, and the buyer's email, phone and address through a User-Provided Data variable for enhanced conversions. Turn on enhanced conversions in Google Ads, place a test order, and check the tag fired with the customer data.
The video above shows the whole setup on a WooCommerce store in about 7 minutes. This post is the written version: the same steps in order, the exact data layer fields to use, and the WooCommerce plugins that most often make Google Ads count each order twice.
What this setup does, and why enhanced conversions matter
A Google Ads purchase conversion tells Google which ad click led to a sale and what the sale was worth. Google uses that to report your results and to bid for more buyers like the ones you already have. If the value is missing, every sale counts as 0. If the same order is sent twice, your results look better than they are.
Enhanced conversions add the buyer's details to that conversion: email, phone, name and address. Google hashes them in the browser and matches them to signed-in Google accounts, so a sale can still be tied to an ad when the click details alone aren't enough. On WooCommerce, all of these details are already on the order. The job is to get them from the order into the tag.
What you need
- A Google Ads account where you can create conversion actions.
- A Google Tag Manager account with a Web container for your store.
- Admin access to WordPress, to install a data layer plugin.
- A WooCommerce data layer that includes customer data. Any data layer plugin works if its purchase event carries the order total, currency, order number and the buyer's details. The steps below use GTM Kit, the free plugin I use in my newer WooCommerce videos. It adds the container code and pushes WooCommerce events in Google's ecommerce format (GTM Kit on WordPress.org). If your plugin is different, only the variable names change.
Before you start: one source for each conversion
Check what already sends Google Ads purchases from your store. The usual suspect is Google for WooCommerce (it used to be called Google Listings & Ads). When you connect it to Google Ads and create a campaign, it sets up its own Purchases conversion and runs its own Google tag. WooCommerce's FAQ says to turn that tracking off if you track conversions with Google Tag Manager, to avoid double tracking (WooCommerce, Google for WooCommerce FAQ).
Look in Google Ads too. Under Goals → Conversions, if you see two purchase conversion actions set as primary, every order is counted twice. Keep one primary.
Step 1: Create the purchase conversion action in Google Ads
In Google Ads, go to Goals → Conversions → Summary and click Create conversion action.
- Choose Website, enter your store's address, and set up the conversion manually.
- Choose Purchase as the goal and give the action a clear name, such as
Purchase (GTM). - For Value, choose to use different values for each conversion. The tag will send each order's real total.
- For Count, choose Every, so each sale counts.
- Save, and choose Use Google Tag Manager as the setup method.
Google Ads now shows a Conversion ID and a Conversion label. Copy both. If you can't find them later, this guide shows where they are.
Step 2: Start the conversion tag in Google Tag Manager
In Google Tag Manager, go to Tags → New and choose Google Ads → Google Ads Conversion Tracking. Paste the Conversion ID and Conversion label.
Leave the value, transaction ID and currency fields empty for now. They need variables, and those variables need a data layer. That's the next step. Save the tag without a trigger and come back to it in Step 6.
Google Tag Manager may also warn that no Google tag was found. Create one from the warning with the same conversion ID and fire it on all pages. It stores the ad click details on every page, which the purchase conversion is matched to later.
Step 3: Add a WooCommerce data layer to WordPress
The data layer is a small object on each page that holds what the visitor just did. On the order-received page (the thank-you page after checkout), it holds the order.
- In WordPress, go to Plugins → Add New, search for GTM Kit, install it and activate it.
- In the plugin's settings, paste your
GTM-container ID and save. GTM Kit adds the container code for you, so don't paste it into your theme as well. - In GTM Kit's WooCommerce settings, turn on Include customer data. GTM Kit describes it as adding customer data to the data layer on the
purchaseevent. Without it, the order is there but the buyer's details are not, and enhanced conversions have nothing to send.
Then place a test order with GTM Preview open. On the order-received page, click the purchase event and open the Data Layer tab. With GTM Kit you'll see:
ecommerce.value,ecommerce.currencyandecommerce.transaction_id, which is the WooCommerce order number.ecommerce.items, the products in the order.ecommerce.customer, with fields such asbilling_email,billing_phone,billing_first_name,billing_last_name,billing_address_1,billing_city,billing_state,billing_postcodeandbilling_country.
Write down the exact names your data layer uses. Every variable in the next two steps has to match them.
GTM Kit pushes the purchase only once per order, so reloading the thank-you page doesn't send it again. That's good for your data, but it means each new test needs a new order.
Step 4: Create the user data variable for enhanced conversions
First, create a Data Layer Variable for each customer field: email, phone, first name, last name, street, city, state, postcode and country. With GTM Kit, the email variable points at ecommerce.customer.billing_email, the phone at ecommerce.customer.billing_phone, and so on.
Then go to Variables → New and choose User-Provided Data. Pick Manual configuration and put each Data Layer Variable in its field. You don't need to hash anything yourself. Google's documentation says Tag Manager normalizes and hashes the values before they're sent (Google Ads Help, set up enhanced conversions for web using Google Tag Manager).
A few rules from the same page are worth knowing:
- Email is the field that matters most. At least one field is required, and email is the preferred one.
- The address only counts as a set. Google needs first name, last name, postcode and country together. Street, city and region are optional.
- Phone numbers need the country code. Google expects the international format, starting with
+. Many WooCommerce checkouts save the phone exactly as the buyer typed it, so a local number may not match. Email still carries the match. - Leave out fields your checkout doesn't collect. Don't map a variable that's always empty.
GTM Kit also pushes a ready-made user_data object with the email, phone and names already hashed. The manual setup above is simpler to check in Preview, so start there.
Step 5: Create the purchase variables
Create three more Data Layer Variables:
- Value:
ecommerce.value, the order total. - Currency:
ecommerce.currency, a three-letter code such asUSD. - Transaction ID:
ecommerce.transaction_id, the order number.
The transaction ID is what stops double counting. If Google Ads gets two conversions for the same action with the same transaction ID, it counts only the first. Google says the ID must be unique for every order, must come from your store rather than be typed in, and must not contain anything that identifies the customer (Google Ads Help, use a transaction ID to minimize duplicate conversions). The WooCommerce order number meets all three.
GTM Kit has options to leave tax or shipping out of the order value. Choose what you want Google Ads to count as revenue, then keep it the same everywhere you report it.
Step 6: Create the purchase trigger and finish the tag
Go to Triggers → New and choose Custom Event. For the event name, type purchase, exactly as the data layer pushes it. Fire it on all custom events and save.
Now open the Google Ads Conversion Tracking tag from Step 2 and fill in the rest:
- Conversion value: your value variable.
- Transaction ID: your transaction ID variable.
- Currency code: your currency variable.
- Include user-provided data from your website: tick it and pick your User-Provided Data variable.
- Triggering: the
purchasetrigger.
Use the Custom Event trigger, not a page view of the thank-you page. A page view trigger can fire before the order is in the data layer, and then the value, transaction ID and customer data all come through empty.
Step 7: Turn on enhanced conversions in Google Ads
The tag can send customer data, but Google Ads only uses it once enhanced conversions are switched on for the account.
In Google Ads, go to Goals → Conversions → Settings and open Enhanced conversions for web. Tick Turn on enhanced conversions, accept the customer data terms, and choose Google Tag Manager as the method. Google says data sent through a different method than the one you choose may not be processed, and that user-provided data isn't collected until you accept the terms (Google Ads Help).
If Google Ads later marks the conversion as Needs attention, the customer data isn't arriving as it should. This post walks through that fix.
Step 8: Publish and test
In Google Tag Manager, click Submit, name the version, for example "Google Ads purchase with enhanced conversions", and click Publish.
Then test with a real order:
- Open Preview, connect to your store, and place a test order.
- On the order-received page, click the
purchaseevent. Under Tags Fired you should see your Google Ads conversion tag. - Click the tag and check the values it sent: the order total, the currency, the order number, and the customer's details in the user-provided data.
For a second check, Google suggests the browser's developer tools. Open Network, find the request to googleadservices.com/pagead/conversion/, and look for the em parameter. If enhanced conversions work, it starts with tv.1~em followed by a long string of characters. If it's tv.1~em with nothing after it, the email was empty when the tag fired (Google Ads Help).
Back in Google Ads, a new conversion action shows Unverified or Inactive until it records conversions. That's normal. Google says the enhanced conversions diagnostics appear about 48 hours after you set them up, under Diagnostics on the conversion action.
If you came here from Shopify instead, the setup there is different, because Shopify's checkout runs tracking in a sandbox. See Google Ads conversion tracking on Shopify with GTM.
Common mistakes
Two plugins sending the same purchase. Google for WooCommerce, a pixel plugin, or old code in your theme can each send their own Google Ads purchase. Turn the others off, or keep only one conversion action primary.
Customer data not turned on in the plugin. The tag fires and the conversion counts, but enhanced conversions get nothing. In GTM Kit, it's the Include customer data setting.
Variable names that don't match the data layer. A Data Layer Variable with the wrong name returns undefined, and an undefined value is recorded as 0. Copy the names from Preview, not from memory.
A page view trigger on the thank-you page. It can fire before the order data is there. Use the purchase Custom Event.
Enhanced conversions on in the tag but off in Google Ads. Both have to be set. And the method in Google Ads has to be Google Tag Manager.
Testing with the same order twice. GTM Kit sends each order once, so a reloaded thank-you page shows no purchase. Place a new order.
Questions people ask
Can I track Google Ads conversions on WooCommerce without a plugin?
You need something to put the order into the data layer. That can be a plugin like GTM Kit or your own code on the order-received page. What you don't need is a separate Google Ads plugin: the conversion tag lives in Google Tag Manager.
Should I use Google for WooCommerce or Google Tag Manager?
Either can send purchases, but not both for the same conversion. Google for WooCommerce is quicker if you also use it for your product feed and campaigns. Google Tag Manager shows you exactly what each conversion sends, and you can test it in Preview.
Do I need to hash the email and phone myself?
No. With the User-Provided Data variable and manual configuration, Tag Manager normalizes and hashes the values before they leave the browser. If you want to see what a hashed email looks like, the hash generator shows the SHA-256 of any value.
Why is my conversion still Unverified?
Usually because no real order has gone through since you published, or the tag never fired. Place a test order with Preview open and check that the conversion tag is under Tags Fired. If it isn't, compare the trigger's event name with the data layer.
Is this server-side tracking?
No. The tag runs in the shopper's browser. Ad blockers and browser privacy settings can stop some purchases from reaching Google Ads. Server-side tracking sends them from a server as well.
Where KiteTrack fits
KiteTrack sends your WooCommerce purchases to Google Ads from your own tracking server on your store's subdomain, with the order value, currency, order number and the buyer's details for enhanced conversions. Customer data is hashed before it's sent, the same events go to Meta, GA4 and TikTok, and your tracking is checked every 30 minutes, so a broken tag becomes an alert, not something you find weeks later. See how it works for Google Ads enhanced conversions on WooCommerce.
Not sure your Google Ads purchases are being recorded? Start with the free Tracking Check. It looks at your site in about two minutes, no signup. If you'd rather talk it through, book a call with me.
Sources
- Google Ads Help, Set up enhanced conversions for web using Google Tag Manager: https://support.google.com/google-ads/answer/13262500?hl=en
- Google Ads Help, Use a transaction ID to minimize duplicate conversions: https://support.google.com/google-ads/answer/6386790?hl=en
- WooCommerce, Google for WooCommerce FAQ: https://woocommerce.com/document/google-for-woocommerce/faq/
- GTM Kit on WordPress.org: https://wordpress.org/plugins/gtm-kit/
Get tracking tips by email
Short, practical fixes for Meta, Google Ads and GA4, from Abir.
You’re in. First tip lands soon.