AWIN · Web Pixels API replacement · confidence: medium
Dies 2026-08-26
analytics.subscribe('checkout_completed', (event) => {
const { checkout } = event.data;
if (!checkout || !checkout.totalPrice) return;
// AWIN's browser conversion pixel is a tracking <img>/script tag — no DOM
// in the sandbox, so fire it as a network beacon via fetch instead
// (AWIN's server-side pixel accepts a plain GET; fetch with no-op response
// handling reproduces an <img> beacon). Replace MERCHANT_ID and
// CHANNEL with your AWIN advertiser ID and the confirmed channel value.
const orderRef = checkout.order ? checkout.order.id : checkout.token;
const amount = checkout.totalPrice.amount;
const currency = checkout.totalPrice.currencyCode;
fetch(
`https://www.awin1.com/sread.php?tt=ns&tv=2&merchant=MERCHANT_ID&amount=${amount}&ch=aw&cr=${currency}&ref=${encodeURIComponent(orderRef)}`,
{ method: 'GET', keepalive: true, mode: 'no-cors' }
);
});What this does NOT cover
What this does NOT cover: AWIN's server-to-server Postback/API tracking, or SubID and voucher-code capture that some AWIN programs require from Additional Scripts — those are separate integrations. Merchants running multi-advertiser AWIN setups should confirm with their AWIN account manager whether additional parameters beyond dwid/ord are required.
Affiliate + Reviews networks · AWIN, ShareASale, Impact, Rakuten, and Yotpo reviews — all post-purchase pixels with identical Aug 26 exposure.