Running an AWIN programme in DACH, UK or wider EU? Fire the official sread.img conversion pixel on thank-you with {order_id}, {order_total_products_tax_excluded} and {order_currency_iso_code} — no theme edits.
AWIN (Berlin-based, strong across DACH, UK, France, Spain, Poland and more) pays publishers only when a tracked sale lands on your thank-you page. Without a conversion tag there, clicks from cashback sites, voucher portals and content publishers never become attributable orders - and your affiliate channel looks weaker than it is.
You do not need to fork the theme or hire a developer for a one-off override. With HTML Box Pro you paste AWIN's fall-back conversion pixel into a box limited to order confirmation. Module variables inject the real order reference, net amount and currency at render time.
This tutorial shows a concrete EU affiliate use case: fire the official AWIN sread.img sale pixel on PrestaShop confirmation using {order_id} , {order_total_products_tax_excluded} and {order_currency_iso_code} .
The pixel lives in an HTML Box Pro block. Theme swaps and PrestaShop upgrades do not silently remove your AWIN confirmation tracking.
AWIN expects sale subtotal after discounts, excluding tax and shipping. Map that to {order_total_products_tax_excluded} (or the field your Technical Integration contact confirms).
Visibility rules keep the sale pixel on order confirmation / displayOrderConfirmation - never on product lists, cart or homepage.
Market note: AWIN programmes run across multiple EU locales (DACH, UK, FR, ES, PL and others) with the same tracking endpoints. Replace YOUR_ADVERTISER_ID with the Advertiser ID from your AWIN UI. The fall-back pixel below follows the official www.awin1.com/sread.img pattern. Where AWIN also requires MasterTag / Conversion Tag / S2S, keep those as documented by your integration manager - this article covers the confirmation fall-back you can ship in HTML Box Pro today.
In PrestaShop Back Office open Modules → HTML Box Pro → Boxes and add a block named e.g. AWIN conversion - order confirmation .
Set the position to displayOrderConfirmation and enable Only on order confirmation page when available. Disable homepage / product-only rules so the sale fires once per completed checkout.
Use HTML / source mode in the editor. HTML Box Pro replaces curly-brace variables before the page reaches the browser. Put your Advertiser ID in merchant= and keep parts=DEFAULT: unless AWIN gave you another commission group code.
Start with testmode=1 for QA, clear caches, place a test order, and confirm a request to sread.img in DevTools. When AWIN signs off tracking, switch to testmode=0 .
Official fall-back conversion pixel pattern from AWIN docs. Amount must use a dot decimal separator and no thousands separator - PrestaShop order variables from HTML Box Pro already output that style for paid totals.
Map AWIN amount / parts to net product total (excl. tax & shipping). Confirm the exact field with your AWIN technical contact if your programme uses a different definition.
<!-- AWIN fall-back conversion pixel - HTML Box Pro -->
<img
border="0"
height="0"
width="0"
style="display:none;"
alt=""
src="https://www.awin1.com/sread.img?tt=ns&tv=2&merchant=YOUR_ADVERTISER_ID&amount={order_total_products_tax_excluded}&ch=aw&parts=DEFAULT:{order_total_products_tax_excluded}&ref={order_id}&cr={order_currency_iso_code}&vc=&testmode=1"
/>Advertiser 1001 , order 18402 , net products 129.90 , currency EUR → AWIN receives a unique sale with commission group DEFAULT.
Same endpoint, built in JS. Useful if you later append a voucher code or channel override. Variables are still replaced server-side by HTML Box Pro.
<script>
(function () {
var advertiserId = 'YOUR_ADVERTISER_ID';
var amount = '{order_total_products_tax_excluded}';
var orderRef = '{order_id}';
var currency = '{order_currency_iso_code}';
var voucher = ''; // fill if you pass a code from another integration
var testMode = '1'; // set to '0' when live
if (!orderRef || !amount) {
return;
}
var awPixel = new Image(0, 0);
awPixel.src = 'https://www.awin1.com/sread.img'
+ '?tt=ns'
+ '&tv=2'
+ '&merchant=' + encodeURIComponent(advertiserId)
+ '&amount=' + encodeURIComponent(amount)
+ '&ch=aw'
+ '&parts=DEFAULT:' + encodeURIComponent(amount)
+ '&ref=' + encodeURIComponent(orderRef)
+ '&cr=' + encodeURIComponent(currency)
+ '&vc=' + encodeURIComponent(voucher)
+ '&testmode=' + testMode;
})();
</script> Beyond the fall-back pixel: Many AWIN programmes also require the Advertiser MasterTag ( dwin1.com/{id}.js ) site-wide and a Conversion Tag / server-to-server post-back. You can place MasterTag in a second HTML Box Pro block on displayHeader . Always follow the integration checklist from your AWIN Technical Integration contact - the confirmation pixel alone may not be the full certified setup.
| HTML Box Pro variable | AWIN parameter | When it works |
|---|---|---|
{order_id} | ref - unique order reference | Order confirmation only |
{order_total_products_tax_excluded} | amount and parts=DEFAULT:… (net products) | Order confirmation only |
{order_currency_iso_code} | cr - ISO 4217 currency | Order confirmation only |
{order_total_paid_tax_excl} | Alternative amount if your brief includes paid total excl. tax | Order confirmation only |
Static: YOUR_ADVERTISER_ID | merchant - from AWIN UI | Always (your programme ID) |
If your integration pack includes the Advertiser MasterTag, create another HTML Box Pro block on displayHeader (all pages, or all except checkout if AWIN advises that). Replace the numeric ID with yours:
<script defer="defer" src="https://www.dwin1.com/YOUR_ADVERTISER_ID.js" type="text/javascript"></script>Keep MasterTag and the confirmation fall-back pixel as two separate boxes - different hooks, different visibility rules, easier to debug.
merchant matches the programme in AWIN UI. Commission group in parts is DEFAULT or the code AWIN assigned.
Value excludes tax and shipping unless AWIN told you otherwise. Dot decimals only. Same figure in amount and parts for a single DEFAULT group.
QA with testmode=1 , verify sread.img in Network, then flip to 0 for production. Avoid reloading thank-you with the same ref during certification.
Align the pixel with your CMP / marketing consent. If you also run other affiliate networks, follow AWIN de-duplication guidance so last-click channel ch=aw stays correct.
One HTML Box Pro block on order confirmation, official sread.img fall-back pixel, and {order_id} / {order_total_products_tax_excluded} / {order_currency_iso_code} filled automatically on every real checkout.
Article written byMilosz Myszczuk, PrestaShop expert. CEO and founder of the VEKIA interactive agency. Learn more.
If you like this article, support our work!

Apply conditional order discounts using native cart rules. Create BOGO deals, buy N get M free, spen...
149.00 €

Charge handling, service or packaging fees only when your rules match. Conditional Order Fees adds a...
129.00 €

Sell optional checkout services your customers choose: gift wrapping, shipping insurance, express ha...
149.00 €

Conditional Order Validation lets you block or warn checkout when a cart breaks your rules. Set cond...
129.00 €