LinkedIn · Web Pixels API replacement · confidence: medium
Dies 2026-08-26
analytics.subscribe('checkout_completed', (event) => {
const { checkout } = event.data;
if (!checkout || !checkout.totalPrice) return;
// The LinkedIn Insight Tag is a browser script that sets a first-party
// pixel and reports conversions from the page — no DOM in the sandbox, so
// conversions must be reported via LinkedIn's Conversions API (server-side
// equivalent) instead. Replace CONVERSION_ID and ACCESS_TOKEN (Campaign
// Manager > Conversion Tracking > your conversion > API details).
fetch('https://api.linkedin.com/rest/conversionEvents', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: 'Bearer ACCESS_TOKEN',
'LinkedIn-Version': '202405',
},
keepalive: true,
body: JSON.stringify({
conversion: 'urn:lla:llaPartnerConversion:CONVERSION_ID',
conversionHappenedAt: Date.now(),
conversionValue: {
currencyCode: checkout.totalPrice.currencyCode,
amount: String(checkout.totalPrice.amount),
},
eventId: checkout.token,
}),
});
});What this does NOT cover
What this does NOT cover: LinkedIn's page-level Insight Tag used for retargeting-audience building — that is a separate, onsite script unrelated to checkout events. It also does not handle multi-partner LinkedIn setups where more than one Insight Tag/Conversion ID needs to fire on the same order.
Secondary paid-social pixels · LinkedIn Insight Tag + Twitter/X Pixel — small-share paid social channels pasted alongside Meta Pixel.