Server-Side Conversion Tracking for WooCommerce: Your Options and How to Set It Up
WooCommerce gives you full control of your server, which makes server-side conversion tracking both easier and easier to get wrong. This guide compares the main options, explains which order event to send, and lists the details that decide whether the data is usable.
In short
WooCommerce can send conversions server-side in four ways: an ad platform's own extension, such as Meta for WooCommerce, which includes the Conversions API; custom code on WooCommerce order hooks; WooCommerce webhooks to an external service; or a server-side tag manager or tracking service. Whichever you choose, capture click IDs at landing and share an event ID with the browser.
You run a WooCommerce store and your ad platforms report fewer sales than WooCommerce does. Some of the gap is ad blockers and browser privacy features stopping the Pixel; some of it is customers paying through an off-site gateway and never returning to the thank-you page where your tags fire. Server-side tracking fixes both by sending the conversion from the place that definitely knows about it: your server. The good news on WooCommerce is that you own that server. The less good news is that there is no single built-in feature that does it for every platform. This guide sets out the options. For the general concept, see our server-side conversion tracking guide.
Why the thank-you page is not enough
Most WooCommerce tracking fires a purchase event in the browser on the order received page. That fails whenever the customer never sees the page: they close the tab after paying on a gateway's own site, the gateway's return redirect fails, or the page loads with the Pixel blocked. Off-site gateways cause a second problem in analytics, appearing as referrals that steal credit from your campaigns; our guide to payment gateway referrals in GA4 covers that fix. The order itself, though, is always created in WooCommerce, which is why server-side sending is more reliable.
Option 1: the ad platform's own extension
The quickest route for Meta is Meta for WooCommerce, formerly Facebook for WooCommerce. Its documentation says the Conversions API is built in and set up automatically once the extension is connected, with Pixel and server events deduplicated using a unique event ID. The setup wizard asks you to connect a Meta business account, a Facebook Page, an ad account and a Pixel. At the time of writing, the documentation page on WooCommerce.com says the product is no longer available there and the documentation is no longer updated, while the extension continues to be distributed through the WordPress.org plugin directory, so check its listing there before you rely on specific behaviour. Other ad platforms offer their own WooCommerce extensions with varying server-side support.
The trade-off is that you get one plugin per platform, each with its own settings, its own idea of which events to send, and its own update cycle. That is manageable for one or two platforms and tiring beyond that.
Option 2: custom code on order hooks
WooCommerce exposes actions you can hook into when an order changes state, such as woocommerce_payment_complete when payment is recorded and woocommerce_order_status_processing or woocommerce_order_status_completed when the status changes. A developer can attach a function that builds the conversion and sends it to Meta's Conversions API, GA4's Measurement Protocol or TikTok's Events API. This gives full control over values, identifiers and which event counts, but the requests run on your web server, so they should be queued rather than sent while the customer waits, and someone has to maintain the code. Our guide to the GA4 Measurement Protocol covers one of the receiving ends in detail.
Option 3: WooCommerce webhooks
WooCommerce has built-in webhooks under WooCommerce, then Settings, then Advanced, then Webhooks. You choose a topic, such as an order event, and a delivery URL, and WooCommerce posts the data there whenever it happens. If you set a secret, WooCommerce adds a hash of each delivery to the request headers so the receiver can verify it. Deliveries that fail more than five times in a row cause WooCommerce to disable the webhook automatically, and delivery logs are under WooCommerce, then Status, then Logs. Webhooks keep the work off your web server and suit sending orders to a separate service, a server-side tag manager or a CRM.
Option 4: server-side GTM or a tracking service
A server-side tag manager container or a first-party tracking service can receive events from your site and fan them out to several platforms at once. This centralises the logic in one place instead of one plugin per platform, at the cost of hosting or a subscription. Our comparison of server-side GTM and a conversions API platform weighs the two.
The options compared
| Option | Platforms covered | Effort | Control | Main risk |
|---|---|---|---|---|
| Platform extension | One per extension | Low | Low | Plugin sprawl and overlapping events |
| Order hooks | Any you code | High | Full | Unmaintained code, slow checkout if not queued |
| Webhooks | Any the receiver supports | Medium | High | Webhook silently disabled after failures |
| Server-side GTM or service | Several from one place | Medium | High | Hosting or subscription cost |
Details that decide whether the data is usable
- 1Capture click IDs at landing. fbclid, gclid and ttclid are only in the URL on the first page. Store them, with UTM parameters, against the session and copy them onto the order, or the server has nothing to attribute the purchase to. Our explainer on fbclid, _fbc and _fbp shows the format Meta expects.
- 2Keep the visitor's IP address and user agent from the checkout request, not from your server, since Meta requires the user agent for website events.
- 3Share an event ID between browser and server. Using the order number for both the Pixel's Purchase and the server's Purchase lets Meta deduplicate them.
- 4Choose one order state to send, typically payment confirmed, and guard against sending the same order twice when its status changes again.
- 5Send within the window each platform accepts. Meta rejects website events more than seven days old.
- 6Respect consent. Store the visitor's choice with the order and only forward identifiers you are allowed to use.
Testing before you trust it
Test with real payment flows, not only with a manual order created in the admin, because the gateway redirect is where most problems hide. Place a test order through each payment method you offer, including at least one that leaves your site, and close the tab on the gateway page for one of them to simulate a customer who never returns.
- For Meta, send server events with the test_event_code from Events Manager's Test Events tab and confirm each order appears once, deduplicated against the Pixel's copy.
- For GA4, use the Measurement Protocol validation endpoint while building, then confirm the purchase reaches the property with the right transaction ID and value.
- For webhooks, read the delivery log under WooCommerce, Status, Logs and confirm each test order produced one successful delivery.
- Check the order's stored click IDs and UTM values, since an empty field there means attribution will fail no matter how well the sending works.
Repeat the same orders after every plugin, theme or gateway update. WooCommerce stores change often, and server-side tracking breaks just as quietly as browser tracking when nobody checks it.
Where EndFrame fits
EndFrame has no WooCommerce plugin. It works as a first-party script you add to the site like any other: it captures visits, UTM parameters, click IDs, form submissions and conversions, stores them against the visitor, and forwards conversions server-side to the Meta Conversions API, GA4 and TikTok, with hashed identifiers and a shared event ID, plus a custom webhook for anything else.
Frequently asked questions
Does Meta for WooCommerce include the Conversions API?
Yes. The extension's documentation says the Conversions API is built in and set up automatically once the extension is configured, with events from the Pixel and the Conversions API deduplicated using a unique event ID. At the time of writing, WooCommerce.com marks that documentation as no longer updated, while the extension itself is distributed and updated through the WordPress.org plugin directory, so check its listing there for changes.
Should I send the purchase when the order is processing or completed?
For most stores, send it when payment is confirmed, which for many gateways is when the order moves to processing. Completed often means shipped, which can be days later and push the event outside an ad platform's accepted window. Whatever you choose, send each order once.
Do caching plugins affect WooCommerce tracking?
They can. Page and script optimisation plugins that combine, delay or defer JavaScript can stop Pixel events firing in the browser. The Meta for WooCommerce documentation mentions disabling JavaScript grouping as a fix. Server-side events are not affected by this, which is one of the reasons to send them.
Sources
Try EndFrame
Add a server-side path for your conversions.
EndFrame collects events first-party and forwards conversions server-side to Meta, GA4, TikTok, and webhooks with event-ID deduplication — then credits each conversion to its campaign, with the visit-to-conversion path you can audit.
No credit card required