Skip to main content
AfterSell → Microsoft AdsIntegration guide

Connecting AfterSell to Microsoft Ads

AfterSell works through checkout extensions and post-purchase pages, which puts its offers inside Shopify's sandboxed surfaces where your own scripts cannot reach. Microsoft Ads reaches an older, higher-income, more desktop-weighted audience than Google, and it is routinely the cheapest qualified traffic a B2B advertiser can buy. The join between them succeeds or fails on one thing: whether the MSCLKID reaches the AfterSell upsell order before the conversion happens, because Microsoft Ads can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

AfterSell orders to Microsoft Ads at the final, post-upsell total

UET purchases can miss the AfterSell upsell. Capture msclkid on landing into a cart attribute, read it from the order webhook, and upload one offline conversion row per order at the final value with the original order time, never base and upsell rows separately. Keep either the UET goal or the offline goal primary, excluding the other from bidding.

Shopify stores on Microsoft Ads usually run Shopping campaigns with the UET tag, often installed through Microsoft's Shopify channel app; check whether yours is installed and which purchase value it reports. Browser purchase events on Shopify can fire before the post-purchase offer is resolved, so the value UET records may be the checkout total without the AfterSell upsell. Compare a test order. If the upsell is missing, Microsoft's Shopping ROAS understates every order where the offer was taken.

The fix is an offline conversion goal fed from the order after the upsell lands. Capture the msclkid on landing, write it to a cart attribute, and read it from the order webhook. Send one row per order at the final value, using the original order time. Uploading the base order and the upsell as two rows against the same goal counts as two conversions, because the timestamps differ.

Then decide which goal Microsoft bids on. Running the UET purchase and the offline goal side by side, both counting toward conversions, doubles every order. Keep one primary and set the other so it is excluded from bidding; confirm the option name in your account. Shopping bids trained on the final total will value products that tend to pull an upsell more highly, which is the point of doing this at all.

AfterSell → Microsoft Ads · what breaks

Why this join usually fails — AfterSell → Microsoft Ads

  1. 01

    The MSCLKID never reaches AfterSell

    Extension surfaces are isolated by design. Attempting to instrument them client-side does not work and is not supported.

  2. 02

    Trying to instrument a sandbox

    Time gets spent attempting to observe checkout extension behaviour from the storefront. It cannot be done, by design, and every hour spent on it is an hour not spent on the server-side path that works.

  3. 03

    Auto-tagging switched off

    Microsoft auto-tagging is frequently disabled in accounts that were set up quickly or imported from Google, and without it no MSCLKID arrives at all — so the entire offline import has nothing to match against and fails silently.

  4. 04

    Nothing reconciles afterwards

    Microsoft Ads reports offline conversion uploads with rows accepted and rejected. A successful upload is not a matched conversion — check that conversions actually appear against campaigns afterwards.

AfterSell → Microsoft Ads · the fix

What working looks like — AfterSell → Microsoft Ads

  • The MSCLKID on every order

  • Conversions arriving in Microsoft Ads

    Conversions appear against the campaign, ad group and keyword that produced the click, with the value you sent, and become usable for automated bidding.

  • Reconciled against the source

AfterSell → Microsoft Ads · architecture

How AfterSell and Microsoft Ads actually connect

  1. 1

    AfterSell holds the truth

    Checkout UI extensions run sandboxed. Nothing you write can observe them, so the only reliable view of what the customer accepted is the order itself.

  2. 2

    Microsoft Ads needs a click to match

    Microsoft matches uploaded conversions to clicks using the MSCLKID, and the conversion goal must be created as an offline conversion type. The click has to fall inside Microsoft's import window — verify the current limit in your account rather than assuming it matches Google's.

  3. 3

    The identifier is the bridge

    The MSCLKID, captured at the visit and carried into the AfterSell upsell order.

  4. 4

    The event source decides reliability

    Send the final order total from the webhook, with upsell line items identified.

  5. 5

    Deduplication at the destination

    Microsoft deduplicates on the combination of click identifier, conversion name and conversion time. Uploading the same click against a second conversion goal counts twice, which is the usual cause of inflated numbers here.

AfterSell → Microsoft Ads · normal or broken

Working vs. broken, side by side — AfterSell → Microsoft Ads

Normal, not a fault

  • The MSCLKID present on the order

  • Sent from the Shopify order webhook

  • Deduplicated correctly

    Microsoft deduplicates on the combination of click identifier, conversion name and conversion time. Uploading the same click against a second conversion goal counts twice, which is the usual cause of inflated numbers here.

  • Reconciles with the source

Actually broken

  • The MSCLKID missing on most records

    Extension surfaces are isolated by design. Attempting to instrument them client-side does not work and is not supported.

  • Sent from the browser

    Time gets spent attempting to observe checkout extension behaviour from the storefront. It cannot be done, by design, and every hour spent on it is an hour not spent on the server-side path that works.

  • Counted twice, or not at all

    Microsoft auto-tagging is frequently disabled in accounts that were set up quickly or imported from Google, and without it no MSCLKID arrives at all — so the entire offline import has nothing to match against and fails silently.

  • Nobody has reconciled it

AfterSell → Microsoft Ads · diagnose

Diagnostic order — AfterSell → Microsoft Ads

  1. 01

    Count orders carrying the MSCLKID

  2. 02

    Follow one real conversion end to end

  3. 03

    Confirm the conversion is sourced from the order, not from a page

    On modern Shopify checkout there is no supported page-based option left, so this is the only correct architecture.

  4. 04

    Confirm auto-tagging is enabled and check the upload diagnostics

    One account setting decides whether any of this works. Then read the per-row errors on the upload rather than the success count.

  5. 05

    Read the match rate, not the success message

    Microsoft Ads reports offline conversion uploads with rows accepted and rejected. A successful upload is not a matched conversion — check that conversions actually appear against campaigns afterwards.

AfterSell → Microsoft Ads · prove

How it gets proven — AfterSell → Microsoft Ads

Source of truth

The final Shopify order total, read from the order record.

  • The MSCLKID confirmed present on a live order.
  • Auto-tagging confirmed on, and the accepted count reconciled against conversions appearing in campaign reporting.
  • Final order totals reconciled from the webhook against imported conversions.

AfterSell → Microsoft Ads · free audit

What we check in the free audit

  • Count orders carrying the MSCLKID
  • Follow one real conversion end to end
  • Confirm the conversion is sourced from the order, not from a page
  • Confirm auto-tagging is enabled and check the upload diagnostics
  • Read the match rate, not the success message

Checked against

The final Shopify order total, read from the order record.

Get my free conversion tracking audit

Free30 minutesNo obligation

AfterSell → Microsoft Ads · when not to buy

When you don't need this — AfterSell → Microsoft Ads

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the MSCLKID.
  • If your conversions already come from the order webhook, checkout extensions change nothing for you.
  • If you are not running Microsoft Ads at meaningful spend, skip it — though for B2B the traffic is often cheaper and better qualified than people expect, which is worth testing before dismissing.

AfterSell → Microsoft Ads · what we deliver

What gets built — AfterSell → Microsoft Ads

  • Identifier capture into AfterSell

    Do not try to instrument the checkout surface. Read the order server-side, which is the supported and more reliable path anyway.

  • Event source: the Shopify order webhook

    Send the final order total from the webhook, with upsell line items identified.

  • Dispatch to Microsoft Ads

    Offline conversion import through the Microsoft Advertising API or a scheduled upload.

  • Reversals where they exist

    Refunds reverse.

Written guarantee

95%+ tracking accuracy

Measured against The final Shopify order total, read from the order record.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

AfterSell → Microsoft Ads questions, answered

The UET purchase can record the checkout total before the post-purchase offer is accepted. An offline import from the final order closes the gap.

Free · 30 min

Get AfterSell and Microsoft Ads joined properly

Free30 minutesNo obligation