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

Rakuten LinkShare (Rakuten Advertising) conversion tag

Rakuten Advertising · 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;

  const orderRef = checkout.order ? checkout.order.id : checkout.token;
  const items = checkout.lineItems
    .map((i) => (i.variant && i.variant.sku ? i.variant.sku : ''))
    .join(',');
  const qtys = checkout.lineItems.map((i) => i.quantity).join(',');
  const prices = checkout.lineItems
    .map((i) => (i.variant ? i.variant.price.amount : ''))
    .join(',');

  const params = new URLSearchParams({
    mid: 'MERCHANT_ID',
    ord: String(orderRef),
    cur: checkout.totalPrice.currencyCode,
    sku: items,
    qty: qtys,
    cost: prices,
  });

  fetch(`https://track.linksynergy.com/ep?${params.toString()}`, {
    method: 'GET',
    keepalive: true,
    mode: 'no-cors',
  });
});

Legacy pattern detected via: linksynergy\.com|rmp\.linksynergy|ranMID=

What this does NOT cover

What this does NOT cover: Rakuten's SubID/MID multi-advertiser routing for stores running more than one Rakuten Advertising program, or the Rakuten Datafeed product-catalog sync. Confirm program-specific parameter requirements with the Rakuten account manager before treating this snippet as a complete replacement.

Test-event verification checklist

  • ord (order reference) uses checkout.order.id (falls back to checkout.token), unique per order to prevent duplicate commission crediting.
  • sku/qty/cost arrays are index-aligned across the same checkout.lineItems iteration — verify Rakuten's program spec for the expected delimiter (comma assumed here, confirm per advertiser program before going live).
  • mode: 'no-cors' matches the original pixel-beacon fire-and-forget behavior — response is unreadable by design. Fires once per completed order, Thank You page only.
  • Verify live against the platform's own test-event tool: https://rakutenadvertising.com/

Related paste-ready snippets

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