Developer 21.07.2026 awin, conversion, tracking

AWIN Tracking with HTML Box Pro

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.

HTML Box Pro: Add AWIN Affiliate Conversion Tracking on Order Confirmation

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} .

Why This Works for AWIN Advertisers

No theme edits

The pixel lives in an HTML Box Pro block. Theme swaps and PrestaShop upgrades do not silently remove your AWIN confirmation tracking.

Amounts AWIN accepts

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).

Confirmation only

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.

Step-by-step: AWIN Pixel with HTML Box Pro

1

Create a new box

In PrestaShop Back Office open Modules → HTML Box Pro → Boxes and add a block named e.g. AWIN conversion - order confirmation .

2

Hook it to 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.

3

Paste the fall-back pixel with variables

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.

4

Test, then go live

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 .

The Code to Paste

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.

Option A - Image pixel (fastest)

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"
/>

Example after replacement

Advertiser 1001 , order 18402 , net products 129.90 , currency EUR → AWIN receives a unique sale with commission group DEFAULT.

Option B - JavaScript Image object

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.

Variables Used in This Tutorial

HTML Box Pro variableAWIN parameterWhen it works
{order_id} ref - unique order referenceOrder confirmation only
{order_total_products_tax_excluded} amount and parts=DEFAULT:… (net products)Order confirmation only
{order_currency_iso_code} cr - ISO 4217 currencyOrder confirmation only
{order_total_paid_tax_excl} Alternative amount if your brief includes paid total excl. taxOrder confirmation only
Static: YOUR_ADVERTISER_ID merchant - from AWIN UIAlways (your programme ID)

Optional: AWIN MasterTag in a second box

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.

Go-live Checklist

Advertiser ID

merchant matches the programme in AWIN UI. Commission group in parts is DEFAULT or the code AWIN assigned.

Amount rules

Value excludes tax and shipping unless AWIN told you otherwise. Dot decimals only. Same figure in amount and parts for a single DEFAULT group.

Test mode

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.

Consent & de-duplication

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.

Affiliate · EU programmes · PrestaShop

AWIN sales tracked. Theme untouched.

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.

Get HTML Box Pro
Zdjęcie autora: Milosz Myszczuk

Article written byMilosz Myszczuk, PrestaShop expert. CEO and founder of the VEKIA interactive agency. Learn more.

If you like this article, support our work!

Comments