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

ShareASale conversion tracking (SSCID + order-confirmation pixel)

ShareASale · 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;

  browser.cookie.get('sscid').then((sscid) => {
    const orderRef = checkout.order ? checkout.order.id : checkout.token;
    const amount = checkout.totalPrice.amount;
    const params = new URLSearchParams({
      merchantID: 'MERCHANT_ID',
      amount: String(amount),
      transID: String(orderRef),
      ...(sscid ? { sscid } : {}),
    });
    fetch(`https://www.shareasale.com/sale.cfm?${params.toString()}`, {
      method: 'GET',
      keepalive: true,
      mode: 'no-cors',
    });
  });
});

Legacy pattern detected via: shareasale\.com\/sale\.cfm|sscid=|static\.shareasale\.com

What this does NOT cover

What this does NOT cover: ShareASale's server-to-server Postback API, which is a separate, more reliable integration path some merchants prefer over the browser pixel — recommend that path if available for the merchant's account tier.

Test-event verification checklist

  • sscid (ShareASale click ID) is read via browser.cookie.get, awaited via the returned Promise before firing the conversion call — if the affiliate click cookie was set by a pre-checkout landing-page script (outside this pixel's scope), verify that earlier capture point independently.
  • transID uses checkout.order.id (falls back to checkout.token) as a unique-per-order transaction reference to prevent ShareASale from crediting duplicate commissions on retries.
  • mode: 'no-cors' matches the original pixel-beacon behavior — response is unreadable, this is fire-and-forget by design.
  • Verify live against the platform's own test-event tool: https://www.shareasale.com/shareasale.cfm?merchantID=MERCHANT_ID

Related paste-ready snippets

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