Tracking

WooCommerce conversion tracking: setup and best practices

How WooCommerce conversion tracking works, which events to send, a plugin baseline, why server events from the order matter and how to spot bad tracking.

·6 min read·By the ROASaurus team

Key takeaways
  • Conversion tracking sends shop events (purchase first, then checkout and add to cart) from WooCommerce to Meta, Google Ads, TikTok, Pinterest and GA4, so they can report and optimize.
  • Browser pixels are easy to add but miss purchases when scripts are blocked, consent is declined or the order received page never loads.
  • The most reliable trigger for a purchase is the WooCommerce order itself, sent from the server once it is paid.
  • Keep one source per platform and one event id per order, so browser and server copies count once.
  • Ad platform revenue far below store revenue, weak iPhone numbers and jumpy conversion counts usually mean a data problem, not a creative one.

WooCommerce conversion tracking means sending what shoppers do in your store (above all, purchases) to the ad platforms and analytics tools you use, so they can report which campaigns sell and optimize toward buyers. Most stores start with browser pixels from plugins. That is a fine baseline, but it misses part of your orders. The reliable setup adds server events built from the WooCommerce order itself.

What conversion tracking means for a WooCommerce store

For each ad platform you use, conversion tracking does three jobs:

  • Reporting. Ads Manager, Google Ads and TikTok can only show purchases and ROAS per campaign if purchases reach them.
  • Optimization. Bidding strategies learn from conversion events. Missing purchases mean worse targeting and a longer learning phase.
  • Audiences. Retargeting and lookalike audiences are built from the visitors and buyers the platform knows about.

The question is no longer which events to send. It is where each event starts: in the shopper's browser, or in your store's backend.

Why browser-based WooCommerce tracking breaks

A classic setup works like this: a shopper clicks an ad, browses, checks out, lands on the order received page and a pixel fires a purchase. Every link in that chain can fail:

  • an ad blocker or privacy browser blocks the pixel script;
  • the visitor declines marketing cookies, so the pixel may not run;
  • a caching or script-optimization plugin delays or breaks the pixel;
  • the shopper pays on an external payment page and never comes back to the order received page;
  • the order is paid later, as with bank transfer or cash on delivery.

In each case the sale exists in WooCommerce but not in the ad platform. How large the gap is differs per store; the only way to know yours is to compare the platform's purchases with your orders.

Two kinds of conversion tracking

Browser-based
  • Pixels and tags in the shopper's browser: Meta pixel, Google tag, TikTok pixel, Pinterest Tag
  • Easy to install with a plugin
  • Sees browsing events and sets the platforms' cookies
  • Misses what the browser cannot or may not report
Server-side
  • Events sent from a server to each platform's API
  • Not affected by ad blockers or the thank-you page
  • Can add hashed contact details from the order
  • Still needs the click ids saved during the visit
Most good setups use both: the browser for browsing signals, the server as the foundation for purchases.

The minimum events to track

EventPriorityWhy
PurchaseMust haveReporting, ROAS and purchase optimization all depend on it
Begin checkoutRecommendedCheckout abandoner audiences; optimization signal for small accounts
Add to cartRecommendedCart abandoner audiences, funnel analysis
View productUsefulProduct audiences and catalog ads
Page viewUsefulVisitor audiences
The more revenue depends on an event, the closer to the backend it should start.

A baseline setup with plugins

  1. Pick one plugin per platform

    Meta, Google, TikTok and Pinterest each offer an official WooCommerce plugin, and tracking plugins cover several platforms at once. Choose one route per platform.

  2. Connect the accounts

    Link the plugin to your ad account and pixel, tag or dataset id, and turn on the standard ecommerce events.

  3. Exclude tracking from script optimization

    Tell your caching or optimization plugin not to delay or combine the tracking scripts, and not to cache cart, checkout and order received pages.

  4. Connect your consent banner

    Make sure pixels start after "accept" and stay off after "decline". The WP Consent API lets plugins read the banner's choice.

  5. Place a test order

    Check each platform's event tool (Events Manager, Google tag diagnostics, TikTok Events Manager) for one purchase with the right value and currency.

This gives you a working start, usually at no cost. It still depends on the browser for every purchase. For Meta specifically, our guide to Meta pixel problems on WooCommerce goes through the common faults.

Why the conversion APIs matter, and their catch

Meta, TikTok, Pinterest, Snapchat and others offer server endpoints (the Conversions API, the Events API) and Google Ads accepts conversions from servers too. They let a server send events instead of the browser. The catch: if the server only forwards an event that started in the browser, it cannot recover a purchase the browser never reported. Server delivery is only as complete as its source.

Backend-first: the order as the trigger

The most reliable setup starts the purchase event from the WooCommerce order. When an order is paid (or, for cash on delivery and bank transfer, when it reaches processing or completed), the server sends it to each platform. No thank-you page is needed. What the browser still contributes is the visit: a first-party script saves the click ids (fbclid, gclid, ttclid and others) and a visitor id, which are stored with the order so the server event can carry them.

Best practices

  • Make WooCommerce orders the source of truth. Every platform's purchases should trace back to a real order.
  • Do not stack plugins that all fire Purchase for the same platform.
  • Check each platform's event tools after setup and after every theme, plugin or checkout change.
  • Send refunds and order changes where a platform supports it, so reported revenue stays close to what you keep.
  • Treat tracking as infrastructure, with an owner and a monthly check, not as a one-time install.

Common mistakes

  • Assuming tracking works because some conversions show up.
  • Scaling campaigns on data that is missing a large share of purchases.
  • Looking only at dashboards. Ad platforms optimize on the events they receive at the time, not on a report you build later.
  • Leaving a staging site with the live pixels, so test orders reach the ad accounts.

How to tell your tracking needs fixing

SignalLikely cause
Platform revenue is consistently far below store revenuePurchases lost in the browser
Platform purchases are above your order countDuplicate senders or missing event ids
iPhone traffic seems to convert much worse than AndroidSafari cookie limits and blocked scripts
ROAS drops sharply as soon as you scaleThe platform optimizes on incomplete data
Conversion counts jump around from day to dayA plugin, cache or consent problem that comes and goes
Check the data first; these are rarely creative or targeting problems.

How ROASaurus tracks WooCommerce conversions

  1. Install the ROASaurus plugin

    Install and activate it in WordPress. It works with the classic and the block checkout and with High-Performance Order Storage.

  2. Create an API key

    In ROASaurus, open your store's settings and create an API key under Orders API.

  3. Connect the plugin

    In WordPress, open WooCommerce › ROASaurus and enter the tracking endpoint, store key and API key.

  4. Add your ad platforms

    Under Connections › Tracking & destinations, add Meta, Google Ads, TikTok, Pinterest, Snapchat or any other destination with its ids and tokens.

  5. Place a test order

    Check that it appears in ROASaurus and in Data quality › Deliveries for each platform.

The plugin loads the ROASaurus script on your storefront, sends every paid order to ROASaurus (cash on delivery and bank transfer once processing or completed), and fires the browser pixels on the order confirmation page with the same event id as the server event. It keeps the visitor's ad cookies with the order only when marketing consent allows it, and follows the WP Consent API where available. ROASaurus then sends each order server-side to the platforms you connected.

woo #2318 · processing · €64.90Order received from the plugin
Meta Purchase order-2318 · sentBrowser copy has the same id
TikTok CompletePayment order-2318 · sent
Pinterest checkout order-2318 · sent
woo #2319 · on-hold (bank transfer)Waits until processing
Data quality › Deliveries, example lines: each delivery per platform with its status.
The ROASaurus Mac app showing Tracking health: a card per destination, Purchase accuracy per day for Meta, GA4 and TikTok, and accuracy per payment method. Fictional demo store, simulated data.
The ROASaurus iPhone app showing Tracking health: a card per destination, Purchase accuracy per day for Meta, GA4 and TikTok, and accuracy per payment method. Fictional demo store, simulated data.
Data quality › Overview in the public demo (ROASaurus Demo Store, a fictional store, simulated data): accepted purchases per platform against your orders.

If you used other tracking plugins before, switch off their purchase events for the platforms ROASaurus now sends. The full technical background is in our WooCommerce server-side tracking guide, and the server-side tracking page lists every destination.

Next step

Sources

  1. WooCommerce developer docs: Webhooks
  2. WordPress.org: WP Consent API plugin
  3. Meta for Developers: Conversions API
  4. TikTok For Business: About Events API

In ROASaurus

Keep reading

TrackingMeta pixel problems on WooCommerce and how to fix themMeta pixel missing purchases or firing twice on WooCommerce? How the pixel works on WordPress, the common causes, a step-by-step fix and how to test it.TrackingWooCommerce server-side tracking: a setup guideSet up WooCommerce server-side tracking: send paid orders to Meta and TikTok with the ROASaurus plugin or webhooks, match them to ad clicks and test.Tracking"No recent conversions" in Google Ads: causes and fixesWhat "No recent conversions" (now "Awaiting conversions") means in Google Ads, how to tell a quiet week from a broken tag, and the fix.

FAQ

Questions, answered

More answers in the FAQ and the help center.

How do I set up conversion tracking on WooCommerce?

Start with one plugin per ad platform or a tracking plugin that covers several, turn on the standard ecommerce events, and test an order. Then add server events from the WooCommerce order, with the same event id as the browser pixel, so purchases arrive even when the browser misses them.

What do I need before I start?

Admin access to WordPress and WooCommerce, access to each ad account and its pixel or tag id, a consent banner that passes visitors' choices on, and for server events the platforms' API tokens.

Which events should a WooCommerce store track?

Purchase first, with value, currency and order id. Then begin checkout and add to cart for audiences and optimization, and product views and page views for retargeting.

Why does my ad platform show fewer sales than WooCommerce?

Browser pixels miss purchases when scripts are blocked, consent is declined, a plugin delays the script or the order received page never loads. Sending the purchase from the order on the server closes most of that gap.

How do I check that WooCommerce tracking works?

Place a test order and check it in each platform's event tool, then compare a week of platform purchases with paid orders. Recheck after every theme, plugin or checkout change.

Every sale, traced to the ad that earned it

Server-side tracking, profit and lifetime value in one app. Free plan, no credit card.