We’re upgrading our email infrastructure — for immediate response, email andrewjgaber@gmail.com meanwhile.
Skip to main content
Part of Digital Empire
Affiliate / Other

AWIN pixel (awin.dwid conversion tag)

AWIN · Web Pixels API replacement · confidence: medium

Dies 2026-08-26

Paste-ready snippet
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' }
  );
});

Legacy pattern detected via: awin\.dwid|dwin1\.php|www\.awin1\.com\/cread

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.

Test-event verification checklist

  • ref (order reference) is unique per order — uses checkout.order.id, falling back to checkout.token, matching what AWIN expects as its transaction reference to prevent duplicate-commission dedup issues.
  • amount uses checkout.totalPrice (post-discount, pre... verify AWIN's own dashboard docs on whether they expect a tax-inclusive or tax-exclusive amount for this program before going live — this varies by advertiser program, flagged explicitly since it is not a Shopify/Web-Pixels-API fact).
  • mode: 'no-cors' is required since AWIN's tracking endpoint will not return CORS headers for a cross-origin fetch from the sandbox's fetch implementation — response body is unreadable by design, this call is fire-and-forget like the original <img> beacon. Fires once per completed order.
  • Verify live against the platform's own test-event tool: https://ui.awin.com/

Related paste-ready snippets

Affiliate + Reviews networks · AWIN, ShareASale, Impact, Rakuten, and Yotpo reviews — all post-purchase pixels with identical Aug 26 exposure.