Skip to content

Google AdsPublished 12 min read

WooCommerce Conversion Tracking for GA4, Google Ads, Meta

How to send one clean purchase per order from WooCommerce to GA4, Google Ads and Meta, and how to stop the plugin overlaps, reloads and gateway redirects that break the numbers.

Muhammad Qitmeer, founder of Augere Labs
Muhammad Qitmeer
Co-founder and CEO, Augere Labs
Share

Good WooCommerce conversion tracking comes down to one rule: each paid order sends exactly one purchase to each platform, with the real order ID, the right value and the currency. You can get there with the official plugins, with Google Tag Manager and a data layer plugin, or with a server-side setup. Most broken WooCommerce stores have two of those running at once.

This guide is for agency owners, PPC managers and media buyers who inherit WooCommerce stores in client accounts. It covers the main setup options, what the purchase event and data layer should look like, the common causes of duplicate or missing purchases, enhanced conversions, Meta Conversions API deduplication, what changes with the block-based checkout, and how to test with a real order.

Pick one source of truth per platform

Before touching any tags, list everything on the store that can send a purchase. On a typical client site that means checking:

  • Plugins. Google for WooCommerce, Google Analytics for WooCommerce, Meta for WooCommerce (formerly Facebook for WooCommerce), and any third-party pixel or tracking plugin.
  • Google Tag Manager. Every tag that fires on a purchase event or on the order received page.
  • Hardcoded snippets. Theme files, a header and footer plugin, or code a previous developer pasted into the thank-you template.
  • Platform settings. Google Ads conversion actions imported from GA4, and Meta pixels connected through more than one integration.

Then decide which source owns each platform. Mixing is fine: the Meta plugin can own Meta while GTM owns GA4 and Google Ads. Two sources sending the same purchase to one platform is not.

Your four setup options

OptionWhat it coversGood fitWatch out for
Google for WooCommerceGoogle Ads conversion tag and Merchant Center product syncStores running Shopping or Performance Max with little custom trackingOverlaps with any existing Google Ads purchase tag in GTM
Google Analytics for WooCommerceGA4 ecommerce events through gtagSimple GA4 setups with no GTMDouble GA4 tags if GTM also loads a GA4 config
Meta for WooCommerceMeta Pixel, Conversions API and catalogMost stores that want CAPI without custom workA second pixel added through GTM or another plugin
GTM plus a data layer plugin (such as GTM4WP)Whatever tags you build in GTM, fed by a WooCommerce ecommerce data layerAgencies that want control, custom parameters and one place to auditNeeds someone who maintains the container

Server-side tracking can sit on top of any of these. More on that below.

Google for WooCommerce

Google's own help center points WooCommerce stores with a Google Ads tag to the Google for WooCommerce extension, set up from Plugins, then Add New, then through the setup flow that connects WordPress, the Google account, the Google Ads account and Merchant Center. Google's WooCommerce Google tag article also advises against custom GTM triggers or DOM scraping for checkout conversions, and says to set any older purchase conversion actions to secondary once the extension's purchase action is active, keeping one primary purchase action.

For agency accounts that already run GTM, the risk is overlap: if the extension's purchase action and a GTM purchase tag are both primary, every order counts twice. Our guide to Google Ads counting conversions twice covers how to find and fix that in the account.

Google Analytics for WooCommerce

This extension adds GA4 through gtag. Its settings live under WooCommerce > Settings > Integration > Google Analytics, where you enter the measurement ID and choose which events to track, including purchase transactions, add to cart and checkout started. Its documentation says purchase tracking needs a payment gateway that returns the customer to the order received page. If GTM on the same site also loads a GA4 configuration with the same measurement ID, you get duplicate page views and often duplicate purchases.

Meta for WooCommerce

The official Meta plugin installs the Meta Pixel, syncs the catalog and sends server events through the Conversions API. Because it generates both events, it can give them a shared event ID. Problems start when someone adds the same pixel again through GTM or a second plugin, with different IDs or none.

GTM with a data layer plugin

GTM4WP (Google Tag Manager for WordPress) is the common choice here. With its WooCommerce integration turned on, it pushes GA4-style ecommerce events into the data layer, including view_item, add_to_cart, begin_checkout and purchase. You then build GA4, Google Ads and Meta tags in GTM that read from that data. Its plugin page lists support for the Cart, Checkout and Mini-Cart blocks, not only the classic shortcode pages, and an option to add customer data to the purchase event for enhanced conversions.

What the purchase event should contain

Whichever source you use, the purchase that reaches each platform needs the same core fields. In GA4 terms, the purchase event carries an ecommerce object with:

  • transaction_id. The WooCommerce order number. This is the field that makes deduplication possible.
  • value. The order value. Agree with the client whether it includes tax and shipping, then use the same definition everywhere.
  • currency. The ISO currency code, such as USD. Missing currency is a common reason GA4 reports revenue as zero.
  • tax and shipping. Optional, but useful for reconciling with WooCommerce reports.
  • items. An array with item_id, item_name, price and quantity for each product.

In GTM, the setup for a GTM4WP-style data layer looks like this:

  1. Trigger. A Custom Event trigger with the event name purchase.
  2. Variables. Data Layer Variables for ecommerce.transaction_id, ecommerce.value and ecommerce.currency.
  3. GA4 tag. A GA4 Event tag with the event name purchase, set to send ecommerce data from the data layer.
  4. Google Ads tag. A Google Ads Conversion Tracking tag with the conversion value, currency and Transaction ID fields mapped to those variables.
  5. Meta tag. A Meta Pixel Purchase event with value, currency and an event ID, if Meta runs through GTM.

Do not fire purchase tags on a Page View trigger that matches the order received URL. It fires on every load of that page.

Why WooCommerce double counts purchases

Two sources sending the same purchase

The most common case. If GTM4WP and Google for WooCommerce both produce a purchase event, a GTM trigger listening for purchase can catch both. Pick one source and turn off purchase tracking in the other.

Thank-you page reloads and revisits

Customers refresh the order received page, bookmark it or reopen it from history. If nothing remembers the order was tracked, each load sends another purchase.

Good plugins guard against this. GTM4WP, for example, flags an order as tracked once its purchase event has been printed, so a reload does not send it again. Its settings include an option not to flag orders as tracked; leave that off unless you have a specific reason. Hardcoded thank-you page snippets usually have no such guard at all.

The platforms also help, but only if you pass the order ID. Google Ads treats a second conversion with the same transaction ID for the same conversion action as a duplicate, per Google's transaction ID documentation. GA4 can drop some repeated transaction_id values, but do not rely on it as your only protection. Our guide on GA4 duplicate transactions shows how to find them in reports.

Caching

Page caching and script delay features can serve a stale order received page or break the data layer. Exclude cart, checkout and order received pages from caching and script delay.

Order status changes

Some status-based senders fire again when an order moves from processing to completed. Decide which status counts as the purchase and send each order once.

Payment gateways that do or do not return the customer

Browser-based purchase tracking depends on the customer landing on the order received page. Payment gateways that redirect off-site break that assumption in two ways.

  • The customer never comes back. With some off-site gateways, the customer pays and closes the tab before the redirect to your site. No order received page, no purchase event. For PayPal, GTM4WP's documentation recommends turning on auto-return in the PayPal account so customers are sent back to the store.
  • The customer comes back before payment clears. The order received page loads while the order is still pending. Depending on your settings, the purchase fires for an order that never gets paid, or is skipped because the order is not yet in a tracked status.
  • The gateway becomes the referrer. When customers return from a payment page, GA4 can credit the session to the gateway domain instead of the original ad. Add the gateway domains to the unwanted referrals list in GA4. Our guide to GA4 cross-domain tracking and self-referrals covers the steps.

The fix for missed purchases is a server-side signal. GTM4WP can catch paid orders that were never tracked on a later page view. Other tools send the purchase from the server when the order reaches a paid status, with no browser needed.

Server-side options

There are two common ways to move purchase tracking off the browser.

  • Server-side GTM. The browser still sends events, but to your own tagging server, which forwards them to GA4, Google Ads and Meta. This improves data quality and control but still needs the browser event to happen. See our server-side GTM setup guide.
  • Order-based server events. A plugin or custom code sends the purchase from WordPress when the order is paid. This catches customers who never return from the gateway. For Meta, it should reuse the same event ID as the browser event, or Meta will count both.

Orders confirmed later, such as phone or invoice orders, can go to Google Ads as offline conversions. Since June 15, 2026, new import integrations use the Data Manager API instead of the Google Ads API.

Enhanced conversions for Google Ads

Enhanced conversions send hashed customer data, such as email and phone, with the conversion so Google can match more of them to ad clicks. WooCommerce is a good fit because the order received page has the billing details for the order.

  1. Turn it on in Google Ads. Under Goals, open Settings, expand Enhanced conversions, turn it on, accept the customer data terms and choose your setup method.
  2. Get the data into the event. With GTM4WP, enable the option that adds customer data to the data layer on the purchase event. Google for WooCommerce supports enhanced conversions within its own tag.
  3. Map it in GTM. Use a User-Provided Data variable that reads email, phone and address from the data layer, and attach it to the Google tag or the Google Ads conversion tag.
  4. Check consent. Enhanced conversions follow the store's consent setup. If consent is denied, less data is sent.

Our enhanced conversions setup guide goes through the full process, including how to read the Diagnostics report.

Meta Conversions API and event_id

Meta deduplicates a browser Pixel event and a server event when both have the same event name and the Pixel's eventID matches the server event's event_id. Meta's deduplication documentation says this works within 48 hours of the first event with that ID.

On WooCommerce, the cleanest pattern is to build the event ID from the order, such as purchase_ plus the order number. Then the browser event and the server event share it no matter which one arrives first. If you use the Meta plugin for both, let it handle the ID and do not add a second Purchase tag in GTM. If you use GTM for the Pixel and something else for CAPI, both sides need the same ID logic.

For the full checklist, see our Meta CAPI deduplication guide and, if Events Manager already shows doubled purchases, the Meta duplicate events fix. Send hashed email, phone and external_id with server events too.

Block checkout vs classic checkout

WooCommerce now offers a block-based Checkout alongside the classic shortcode checkout, and many newer stores use the block version. The two use different code paths. Classic checkout hooks that many older tracking snippets relied on do not run on the block checkout.

What this means in practice:

  • Custom checkout scripts may stop working. Code that hooks into the classic checkout form, or watches classic form fields, can fail silently after a switch to the block checkout.
  • Check plugin support, not just the plugin. Confirm each tracking plugin states support for the Cart and Checkout blocks, and keep it updated. Recent changelogs for both Google for WooCommerce and GTM4WP include block-related fixes.
  • begin_checkout and checkout step events are the first to break. The purchase event on the order received page is usually less affected, but test it anyway.
  • Retest after any checkout change. A theme switch or a move to block checkout means a new test order.

To tell which one a store uses, edit the checkout page in WordPress. A Checkout block means block checkout.

Testing with a real test order

Preview modes catch tag errors, but only a real order through the real gateway proves the setup, since redirects, caching and the consent banner behave differently. Use a low-value purchase you refund afterward.

  1. Start GTM Preview. Open Tag Assistant from GTM Preview and connect to the store.
  2. Open GA4 DebugView. In GA4, go to Admin, then DebugView, so you can see events arrive from your test device.
  3. Open Meta Test Events. In Meta Events Manager, select the dataset and open the Test events tab, so you see browser and server events.
  4. Place the order. Use the client's live payment method, including the off-site gateway if they use one.
  5. Check the purchase event. In Tag Assistant, confirm one purchase event, the correct transaction_id, value and currency, and that each purchase tag fired once.
  6. Reload the order received page. Confirm no purchase tags fire again.
  7. Check Meta. In Test Events, confirm the browser and server Purchase events show as deduplicated.
  8. Check the Google Ads tag request. In the browser's network tab, confirm the conversion request includes hashed user data for enhanced conversions.
  9. Check again later. After a day or two, match the order ID in GA4, Google Ads and WooCommerce, and look at the conversion action's Diagnostics in Google Ads.

Note the order number and what each platform showed. That is the evidence you send the client.

Where agencies trip up

  • Installing the official plugin on a store that already has GTM. Two purchase sources for Google Ads, and both set as primary.
  • Firing purchase tags on the thank-you page URL. Every reload and revisit becomes a new conversion.
  • No transaction ID in the Google Ads tag. Google cannot remove repeats it cannot identify.
  • Random event IDs for Meta. Browser and server events never match, so Meta counts both.
  • Ignoring the gateway referral. Purchases credited to the payment provider instead of the campaign.
  • Not reconciling with WooCommerce. Compare weekly order counts in WooCommerce against GA4 and the ad platforms. Some gap is normal; a sudden change is not.

Getting it fixed for a client

If a client's WooCommerce numbers do not match their orders, list every source that can send a purchase, then run one real test order. If you would rather have us check it, start with a free tracking check and we will tell you what is double counting, what is missing and what to change.

Just one quick fix, not a whole account? Our founder takes small fixed-price jobs on Fiverr: Google Ads conversion tracking fix

Frequently asked questions

Should I use the Google for WooCommerce plugin or GTM for Google Ads purchase tracking?

Use one, not both. The plugin is simpler for stores with no existing tracking. GTM with a data layer plugin gives agencies more control and one place to audit. If both are installed, make sure only one purchase conversion action is primary.

Why does WooCommerce send the same purchase twice?

Usually because two sources send it, such as a plugin and a GTM tag, or because the purchase tag fires on every load of the order received page. Pass the order number as the transaction ID and use a setup that flags orders once they are tracked.

Why are PayPal orders missing from my tracking?

Browser tracking needs the customer to return to the order received page. If the customer closes the tab before the redirect, nothing fires. Turn on auto-return in PayPal and add a server-side or status-based purchase signal to catch the rest.

How do I stop Meta counting WooCommerce purchases twice?

Send the browser Pixel event and the Conversions API event with the same event name and the same event ID, ideally built from the order number. Do not add a second Purchase tag through GTM if the Meta plugin already sends both.

Does the block checkout break conversion tracking?

It can. Older scripts that rely on classic checkout hooks do not run on the block checkout. Use tracking plugins that state support for the Cart and Checkout blocks and run a real test order after any checkout change.

Muhammad Qitmeer

Written by

Muhammad Qitmeer, founder of Augere Labs

Augere Labs is the white-label tracking partner behind marketing agencies. If a client account has numbers you don't trust, I'm happy to look at it with you and tell you straight what's wrong.

Connect on LinkedIn