Connecting WooCommerce to Awin
WooCommerce keeps the order in your own database, which is both the advantage and the reason nobody has wired it properly. Awin is a traditional last-click affiliate network, and last-click is the whole problem: whoever touched the customer most recently takes the commission, which is a structural invitation for voucher-code sites to intercept sales you had already won. The join between them succeeds or fails on one thing: whether the Awin click reference, awc reaches the WooCommerce order before the conversion happens, because Awin can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
WooCommerce to Awin: commission groups, coupons and deduplication
Check Awin's WooCommerce plugin first. Save the awc value as order meta at checkout and report from the payment hook, not the thank-you page, so on-hold orders wait. Map commission groups to product categories, send value net of shipping and tax with the coupon code, and consider hiding the coupon field. Validate past your return window.
Awin offers a WooCommerce advertiser tracking plugin; check the current version and whether it posts server-side or relies only on the browser tag before building your own. Whatever route you use, the awc value must be saved as order meta at checkout, because the browser cookie is exactly what caching and consent plugins on WooCommerce lose.
Map Awin commission groups to WooCommerce product categories rather than one store-wide rate, so a discounted clearance sale and a high-margin sale pay differently. Send the order value net of shipping and tax, and include the coupon code, because publishers query it and your voucher rules depend on knowing which code closed the sale. Fire from the payment hook, not the thank-you page, so on-hold bank-transfer orders are not reported before they are paid.
This pair's typical leak is the store's own coupon field. A customer from paid search sees the coupon box at checkout, leaves to search for a code, clicks a voucher site and returns. Consider hiding the field unless a code is pre-applied, and use Awin's channel deduplication so a sale last touched by your paid media is not also commissioned. Decline or amend refunded and cancelled orders during validation, and set the validation period longer than your WooCommerce return window.
WooCommerce → Awin · what breaks
Why this join usually fails — WooCommerce → Awin
- 01
The Awin click reference, awc never reaches WooCommerce
WooCommerce sites are usually the most heavily plugged-in of any platform. Caching plugins serve a static page to the visitor, optimization plugins defer or strip scripts, and consent plugins block them entirely. Any of the three will stop an identifier being captured, and they fail silently.
- 02
Caching and optimization plugins eat the tracking
The page the customer sees is not the page your code assumed. This is the most common cause of WooCommerce tracking that worked at launch and silently stopped after a plugin update.
- 03
Voucher-code publishers intercepting sales at the checkout
A customer arrives from a paid ad, reaches the basket, opens a new tab to search for a discount code, clicks a voucher site's link and returns to complete the order. Under last-click the voucher site earns the commission on a sale your advertising produced. This is not a fringe case; on many programmes it is the largest single publisher category.
- 04
Nothing reconciles afterwards
Awin's reporting shows the sale, the publisher and the commission group. Read the publisher type and the time between click and sale — a click seconds before the order tells you what happened.
WooCommerce → Awin · the fix
What working looks like — WooCommerce → Awin
The Awin click reference, awc on every order
Conversions arriving in Awin
The sale appears as pending, publishers see it in their reporting, and it validates after your approval period.
Reconciled against the source
WooCommerce → Awin · architecture
How WooCommerce and Awin actually connect
- 1
WooCommerce holds the truth
You own the database, so the truth is exactly as good as the query you write against it. Pin the status set first — whether processing, completed, or both count as a conversion changes the number by a lot and is the source of most arguments.
- 2
Awin needs a click to match
Awin needs the click reference, a unique order reference, the order value and the commission group. Missing the click reference means the sale is untracked and the publisher will query it.
- 3
The identifier is the bridge
The Awin click reference, awc, captured at the visit and carried into the WooCommerce order.
- 4
The event source decides reliability
Fire server-side from the PHP hook rather than from the thank-you page template. Page caching means the thank-you page cannot be relied on to execute anything, and on many stores it is served from cache to a paying customer.
- 5
Deduplication at the destination
Awin deduplicates on your order reference. It also supports a dedup flag so you can decline to commission sales that another channel already claimed — which is the feature most advertisers do not know exists and should be using.
WooCommerce → Awin · normal or broken
Working vs. broken, side by side — WooCommerce → Awin
Normal, not a fault
The Awin click reference, awc present on the order
Sent from the woocommerce_payment_complete hook
Deduplicated correctly
Awin deduplicates on your order reference. It also supports a dedup flag so you can decline to commission sales that another channel already claimed — which is the feature most advertisers do not know exists and should be using.
Reconciles with the source
Actually broken
The Awin click reference, awc missing on most records
WooCommerce sites are usually the most heavily plugged-in of any platform. Caching plugins serve a static page to the visitor, optimization plugins defer or strip scripts, and consent plugins block them entirely. Any of the three will stop an identifier being captured, and they fail silently.
Sent from the browser
The page the customer sees is not the page your code assumed. This is the most common cause of WooCommerce tracking that worked at launch and silently stopped after a plugin update.
Counted twice, or not at all
A customer arrives from a paid ad, reaches the basket, opens a new tab to search for a discount code, clicks a voucher site's link and returns to complete the order. Under last-click the voucher site earns the commission on a sale your advertising produced. This is not a fringe case; on many programmes it is the largest single publisher category.
Nobody has reconciled it
WooCommerce → Awin · diagnose
Diagnostic order — WooCommerce → Awin
- 01
Count orders carrying the Awin click reference, awc
- 02
Follow one real conversion end to end
- 03
Check order meta on ten recent orders
Directly in the database or with a meta viewer. Then disable page caching for the checkout path and see whether coverage changes — if it does, caching is your cause.
- 04
Segment publishers by type and check where the click happened in the journey
Voucher and cashback clicks that occur within seconds of an order are interception, not acquisition. Use the deduplication flag rather than paying for both.
- 05
Read the match rate, not the success message
Awin's reporting shows the sale, the publisher and the commission group. Read the publisher type and the time between click and sale — a click seconds before the order tells you what happened.
WooCommerce → Awin · prove
How it gets proven — WooCommerce → Awin
Source of truth
WooCommerce → Orders (or the wp_wc_order_stats table), for the same window and status set.
- The Awin click reference, awc confirmed present on a live order.
- Validated sales reconciled per order reference against your own records, with voucher-sourced sales identified and the paid-media overlap stated.
- Order meta confirmed present on orders placed while full page caching was active.
WooCommerce → Awin · free audit
What we check in the free audit
- Count orders carrying the Awin click reference, awc
- Follow one real conversion end to end
- Check order meta on ten recent orders
- Segment publishers by type and check where the click happened in the journey
- Read the match rate, not the success message
Checked against
WooCommerce → Orders (or the wp_wc_order_stats table), for the same window and status set.
Free30 minutesNo obligation
WooCommerce → Awin · when not to buy
When you don't need this — WooCommerce → Awin
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the Awin click reference, awc.
- If you run a small store with no caching layer and a single free plugin already reporting accurately, leave it alone.
- If you run no affiliate programme this is irrelevant. If you do, the commission structure by publisher type will change your economics more than the tracking accuracy will.
WooCommerce → Awin · what we deliver
What gets built — WooCommerce → Awin
Identifier capture into WooCommerce
Capture the click identifier and persist it as order meta on the order object with a small snippet in the theme's functions or a purpose-built plugin. Order meta lives in your own database, so it survives caching, plugin conflicts and the customer's browser.
Event source: the woocommerce_payment_complete hook
Fire server-side from the PHP hook rather than from the thank-you page template. Page caching means the thank-you page cannot be relied on to execute anything, and on many stores it is served from cache to a paying customer.
Dispatch to Awin
Server-to-server conversion posting from your order system, or the tracking pixel where server posting is not available.
Reversals where they exist
The refund hooks carry the order ID, so reversals are straightforward once the identifier is on the order.
Written guarantee
95%+ tracking accuracy
Measured against WooCommerce → Orders (or the wp_wc_order_stats table), for the same window and status set.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
WooCommerce → Awin questions, answered
Awin offers one for advertiser tracking; check the current version and whether it posts server-side. Either way, save the awc click reference on the order.
Decline or amend the transaction in Awin during validation, matched on the order reference. Make the validation period longer than your return window so refunds land before commission is approved.
Almost always because the Awin click reference, awc never reached the WooCommerce order. WooCommerce sites are usually the most heavily plugged-in of any platform. Caching plugins serve a static page to the visitor, optimization plugins defer or strip scripts, and consent plugins block them entirely. Any of the three will stop an identifier being captured, and they fail silently. Measure coverage before debugging the dispatch.
Awin sets the awc parameter on the landing URL and stores it in a cookie for the attribution window. Because attribution is last-click, that cookie being overwritten late in the journey transfers the commission — which is exactly what a voucher-code extension does at the checkout page.
The woocommerce_payment_complete hook. Fire server-side from the PHP hook rather than from the thank-you page template. Page caching means the thank-you page cannot be relied on to execute anything, and on many stores it is served from cache to a paying customer.
Awin's reporting shows the sale, the publisher and the commission group. Read the publisher type and the time between click and sale — a click seconds before the order tells you what happened.
More on WooCommerce → Awin
- WooCommerce Subscriptions → AwinConnecting WooCommerce Subscriptions to Awin
- WooCommerce → HubSpotConnecting WooCommerce to HubSpot
- WooCommerce → TikTokConnecting WooCommerce to TikTok Events API
RELATED GUIDES
Where WooCommerce → Awin fits in the rest of your tracking
- Shopify POS → AwinConnecting Shopify POS to Awin
- Wix → AwinConnecting Wix Stores to Awin
- Squarespace → AwinConnecting Squarespace Commerce to Awin
- WooCommerce → ImpactConnecting WooCommerce to Impact.com
- WooCommerce → PartnerStackConnecting WooCommerce to PartnerStack
- Furniture ecommerceConversion tracking for furniture ecommerce, measured after delivery
- nopCommerce → AwinConnecting nopCommerce to Awin
- Shopify → AwinConnecting Shopify to Awin
Free · 30 min
Get WooCommerce and Awin joined properly
Free30 minutesNo obligation
