Connecting Magento to Awin
Magento is self-hosted and endlessly customisable, which means every installation is different and full-page caching is always in the way. 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 Magento 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
Magento to Awin: use the coupon code to spot interception
Capture the awc value from the landing URL into the Magento quote, persist it to the order in the placement observer, and post to Awin server-side with the increment ID, mapped commission group and subtotal after discount. Compare the order's coupon code with codes issued per publisher to judge voucher sites. Decline or amend credit memos before validation ends.
Magento records the coupon code on every order, which makes it the best tool you have for Awin's central problem. When a voucher publisher takes last click, the order nearly always carries a code, and comparing that code with the codes you issued to each publisher shows whether the voucher site created the sale or just supplied a code to someone already at checkout. Pull it from the order record, not the cart page, which may be cached.
Capture the awc value from the landing URL into the quote, persist it to the order in the placement observer, and post the conversion server-side with the increment ID as order reference, the commission group mapped from product categories, and the commissionable value: usually subtotal after discount, not Magento's grand total with tax and shipping. Check whether Awin's Magento plugin fits your build; plugins that depend on the success page template inherit Magento's cache and customization problems.
Use Awin's deduplication flag for orders a paid channel also claims, and handle credit memos before the validation period ends, so a refunded order is declined in Awin rather than commissioned. Magento allows partial credit memos, so amend the value instead of declining when only part of an order comes back. Orders created in the admin for phone customers should normally be excluded.
Magento → Awin · what breaks
Why this join usually fails — Magento → Awin
- 01
The Awin click reference, awc never reaches Magento
Magento's full-page cache serves a stored render to the visitor, which means anything relying on dynamically rendered values can silently fail — and in Magento this has historically included serving one customer's cached block to another, which is a data problem as well as a tracking one.
- 02
Full-page cache between the visitor and your code
The page the customer saw is not the page your code assumed. This is the defining Magento tracking failure and it produces intermittent, hard-to-reproduce loss.
- 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.
Magento → Awin · the fix
What working looks like — Magento → 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
Magento → Awin · architecture
How Magento and Awin actually connect
- 1
Magento holds the truth
You own the database, so the truth is as good as the query. Pin down which order statuses count as revenue — processing, complete, or both — because that choice moves the number substantially.
- 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 Magento order.
- 4
The event source decides reliability
Fire server-side from the observer rather than from the success page template, which is cached and may not execute anything.
- 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.
Magento → Awin · normal or broken
Working vs. broken, side by side — Magento → Awin
Normal, not a fault
The Awin click reference, awc present on the order
Sent from the Magento order placement observer
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
Magento's full-page cache serves a stored render to the visitor, which means anything relying on dynamically rendered values can silently fail — and in Magento this has historically included serving one customer's cached block to another, which is a data problem as well as a tracking one.
Sent from the browser
The page the customer saw is not the page your code assumed. This is the defining Magento tracking failure and it produces intermittent, hard-to-reproduce loss.
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
Magento → Awin · diagnose
Diagnostic order — Magento → Awin
- 01
Count orders carrying the Awin click reference, awc
- 02
Follow one real conversion end to end
- 03
Place a test order as an anonymous visitor through cache
Not as an admin, which bypasses it. If the order data is missing on the cached path, 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.
Magento → Awin · prove
How it gets proven — Magento → Awin
Source of truth
Magento's sales order records in your own database, for the same window and order 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 data confirmed populated on an order placed through a fully warmed cache.
Magento → 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
- Place a test order as an anonymous visitor through cache
- Segment publishers by type and check where the click happened in the journey
- Read the match rate, not the success message
Checked against
Magento's sales order records in your own database, for the same window and order status set.
Free30 minutesNo obligation
Magento → Awin · when not to buy
When you don't need this — Magento → Awin
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the Awin click reference, awc.
- If your Magento build has heavy customisation by another team, scope their availability first — the build is usually blocked there.
- 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.
Magento → Awin · what we deliver
What gets built — Magento → Awin
Identifier capture into Magento
Capture the identifier and persist it as order data through an observer on order placement, server-side, so it never depends on what the cache served.
Event source: the Magento order placement observer
Fire server-side from the observer rather than from the success page template, which is cached and may not execute anything.
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
Credit memos are recorded against the original order and should reduce the reported figure.
Written guarantee
95%+ tracking accuracy
Measured against Magento's sales order records in your own database, for the same window and order status set.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Magento → Awin questions, answered
Compare each order's coupon code and click timing against the publisher, and use Awin's deduplication flag for sales other channels already claimed.
Decline fully refunded orders and amend partially refunded ones in Awin before the validation period closes.
Almost always because the Awin click reference, awc never reached the Magento order. Magento's full-page cache serves a stored render to the visitor, which means anything relying on dynamically rendered values can silently fail — and in Magento this has historically included serving one customer's cached block to another, which is a data problem as well as a tracking one. 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 Magento order placement observer. Fire server-side from the observer rather than from the success page template, which is cached and may not execute anything.
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 Magento → Awin
- Magento → Google AdsConnecting Magento to Google Ads
- Magento → MetaConnecting Magento to Meta Conversions API
- Magento → GA4Connecting Magento to GA4
RELATED GUIDES
Where Magento → Awin fits in the rest of your tracking
- SureCart → AwinConnecting SureCart to Awin
- Checkout Extensibility → AwinConnecting Shopify Checkout Extensibility to Awin
- Shopify POS → AwinConnecting Shopify POS to Awin
- Magento → PartnerStackConnecting Magento to PartnerStack
- Magento → ImpactConnecting Magento to Impact.com
- Furniture ecommerceConversion tracking for furniture ecommerce, measured after delivery
- Wix → AwinConnecting Wix Stores to Awin
- PrestaShop → AwinConnecting PrestaShop to Awin
Free · 30 min
Get Magento and Awin joined properly
Free30 minutesNo obligation
