Skip to main content
Shopify → Microsoft AdsIntegration guide

Connecting Shopify to Microsoft Ads

Shopify is the system of record for the order, and its admin numbers are the ones the business runs on. 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 Shopify 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

Shopify to Microsoft Ads: msclkid on the order, not the checkout

Microsoft's Shopify app sends browser events; for an offline route, capture msclkid on the storefront, write it to a cart attribute, read it from orders/paid, and upload the order to an offline conversion goal with the paid time and a value, usually subtotal net of discounts. Let one purchase goal feed bidding, and check express-checkout orders.

Microsoft offers a Shopify channel app for UET and Merchant Center product feeds; check what your installed version adds and whether it records purchases through Shopify's customer events. Either way it's a browser event. Where Microsoft spend matters, add an offline route: capture the msclkid on the storefront landing page, write it to a cart attribute, and read it back as a note attribute from the orders/paid webhook.

Then upload the paid order to an offline conversion goal with the msclkid, a value in the currency you report and the time Shopify marked it paid. Choose the value deliberately: Shopify's total includes shipping and tax, while Shopping campaigns are built on feed prices, so subtotal net of discounts usually compares better. Let only one purchase goal feed bidding, offline or UET, or every order counts twice.

The Shopify-specific break is partial capture. The cart attribute is written by a storefront script, and visitors who land on a page without it, use an express checkout button that may skip the cart, or come back on another device reach checkout with no msclkid. Check ten recent paid orders from Microsoft traffic for the note attribute. If the account was imported from Google, confirm auto-tagging is on before anything else.

Shopify → Microsoft Ads · what breaks

Why this join usually fails — Shopify → Microsoft Ads

  1. 01

    The MSCLKID never reaches Shopify

    Shopify's checkout is locked down. Custom scripts on the checkout steps are not permitted on standard plans, and the old additional-scripts route is gone, so the identifier has to be captured on the storefront and carried into the order through cart or order attributes rather than read at the checkout itself.

  2. 02

    Checkout extensibility hides what you need

    Shopify deliberately restricts what runs during checkout. Setups that assumed free rein there broke when the platform moved to Checkout Extensibility, and many stores have been quietly under-reporting since.

  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.

Shopify → Microsoft Ads · the fix

What working looks like — Shopify → 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

Shopify → Microsoft Ads · architecture

How Shopify and Microsoft Ads actually connect

  1. 1

    Shopify holds the truth

    The order carries line items, discounts, shipping, tax, currency and the customer. Note which figure you intend to report — total, subtotal, or net of shipping and tax — because most mismatches between Shopify and an ad platform turn out to be two people comparing two different numbers.

  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 Shopify order.

  4. 4

    The event source decides reliability

    Send when Shopify says the order is paid, from your server. This also covers draft orders, POS, and the customer who closes the tab on the thank-you page — none of which a pixel on the order-status page will ever see.

  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.

Shopify → Microsoft Ads · normal or broken

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

Normal, not a fault

  • The MSCLKID present on the order

  • Sent from the orders/paid 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

    Shopify's checkout is locked down. Custom scripts on the checkout steps are not permitted on standard plans, and the old additional-scripts route is gone, so the identifier has to be captured on the storefront and carried into the order through cart or order attributes rather than read at the checkout itself.

  • Sent from the browser

    Shopify deliberately restricts what runs during checkout. Setups that assumed free rein there broke when the platform moved to Checkout Extensibility, and many stores have been quietly under-reporting since.

  • 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

Shopify → Microsoft Ads · diagnose

Diagnostic order — Shopify → Microsoft Ads

  1. 01

    Count orders carrying the MSCLKID

  2. 02

    Follow one real conversion end to end

  3. 03

    Open a recent paid order and read its note attributes

    If the identifier is not on the order, nothing downstream can attribute it. Check ten orders, not one — partial coverage is the normal failure, not total absence.

  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.

Shopify → Microsoft Ads · prove

How it gets proven — Shopify → Microsoft Ads

Source of truth

Shopify Admin → Orders, for the same window, in the same currency and on the same timezone.

  • The MSCLKID confirmed present on a live order.
  • Auto-tagging confirmed on, and the accepted count reconciled against conversions appearing in campaign reporting.
  • Order totals in Shopify Admin reconciled per order, not on the summed total, over a closed window.

Shopify → Microsoft Ads · free audit

What we check in the free audit

  • Count orders carrying the MSCLKID
  • Follow one real conversion end to end
  • Open a recent paid order and read its note attributes
  • Confirm auto-tagging is enabled and check the upload diagnostics
  • Read the match rate, not the success message

Checked against

Shopify Admin → Orders, for the same window, in the same currency and on the same timezone.

Get my free conversion tracking audit

Free30 minutesNo obligation

Shopify → Microsoft Ads · when not to buy

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

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the MSCLKID.
  • Shopify's own native channel integrations already cover simple single-currency stores adequately. If your admin numbers and platform numbers already agree, you do not need this.
  • 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.

Shopify → Microsoft Ads · what we deliver

What gets built — Shopify → Microsoft Ads

  • Identifier capture into Shopify

    Capture the click identifier on the storefront, write it to a cart attribute so it becomes an order note attribute, and read it back server-side from the order. That path survives the checkout domain hop that breaks cookie-based approaches.

  • Event source: the orders/paid webhook

    Send when Shopify says the order is paid, from your server. This also covers draft orders, POS, and the customer who closes the tab on the thank-you page — none of which a pixel on the order-status page will ever see.

  • Dispatch to Microsoft Ads

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

  • Reversals where they exist

    refunds/create fires with the original order reference, so refunds and cancellations can be reversed at the destination.

Written guarantee

95%+ tracking accuracy

Measured against Shopify Admin → Orders, for the same window, in the same currency and on the same timezone.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Shopify → Microsoft Ads questions, answered

In a cart attribute set on the storefront, which becomes a note attribute on the order. Shopify's checkout won't run your script to read it there.

Free · 30 min

Get Shopify and Microsoft Ads joined properly

Free30 minutesNo obligation