ShareASale · Web Pixels API replacement · confidence: medium
Dies 2026-08-26
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',
});
});
});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.
Affiliate + Reviews networks · AWIN, ShareASale, Impact, Rakuten, and Yotpo reviews — all post-purchase pixels with identical Aug 26 exposure.