Connecting Medusa to Microsoft Ads
Medusa is a Node commerce engine you extend in your own codebase, which makes the conversion event a piece of application code — and therefore something that can be tested rather than hoped for. 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 Medusa 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
Medusa orders to Microsoft Ads offline conversions at payment capture
Read the MSCLKID from Medusa cart metadata in the payment-captured subscriber, skip orders without one, and upload the paid total, capture time and the order's own currency through the offline conversion API. Never send a time before the click. Choose one bidding goal versus any UET purchase goal, and send refund adjustments if supported.
Medusa suits Microsoft's offline import well, because the upload can run from the same payment-captured subscriber that defines the conversion. Read the MSCLKID from cart metadata, skip the order if there is none, and send the paid total with the capture time through the Microsoft Advertising API's offline conversion operation. Medusa stores timestamps in UTC; send the timezone Microsoft expects, and never a conversion time earlier than the click, which Microsoft rejects.
Unit-test the edge cases, since this is your code: an order with no MSCLKID, a partially captured payment, a multi-currency order. Microsoft offline goals take a currency per conversion; send the order's currency rather than assuming your account default, or a CAD order lands as USD.
Two things inflate numbers on this pair. If the storefront also fires a UET purchase goal on the order confirmation page, the same order counts once in each goal; pick one as the goal used for bidding. And refunds: Medusa emits its own refund event, and Microsoft supports conversion adjustments in some form; check whether retractions or restatements are available in your account, and if they are, send them from the refund subscriber against the original MSCLKID and conversion name. If not, report refund-adjusted revenue outside Microsoft.
Medusa → Microsoft Ads · what breaks
Why this join usually fails — Medusa → Microsoft Ads
- 01
The MSCLKID never reaches Medusa
The storefront is separate from the backend, and the identifier must be attached to the cart before the order is created.
- 02
Firing on order placed rather than payment captured
They are different events and the gap between them contains every failed and pending payment. Order-placed is the easier hook and the wrong one.
- 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.
- 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.
Medusa → Microsoft Ads · the fix
What working looks like — Medusa → 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
Medusa → Microsoft Ads · architecture
How Medusa and Microsoft Ads actually connect
- 1
Medusa holds the truth
Because you own the event handlers, the conversion can fire from the payment-captured event specifically rather than from whatever the frontend happened to render.
- 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
The identifier is the bridge
The MSCLKID, captured at the visit and carried into the Medusa order.
- 4
The event source decides reliability
Send orders at payment capture, at the paid total.
- 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.
Medusa → Microsoft Ads · normal or broken
Working vs. broken, side by side — Medusa → Microsoft Ads
Normal, not a fault
The MSCLKID present on the order
Sent from a Medusa subscriber on order payment capture
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
The storefront is separate from the backend, and the identifier must be attached to the cart before the order is created.
Sent from the browser
They are different events and the gap between them contains every failed and pending payment. Order-placed is the easier hook and the wrong one.
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
Medusa → Microsoft Ads · diagnose
Diagnostic order — Medusa → Microsoft Ads
- 01
Count orders carrying the MSCLKID
- 02
Follow one real conversion end to end
- 03
Check which event your subscriber listens to
One line of code, and it decides whether you are counting orders or counting money.
- 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.
- 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.
Medusa → Microsoft Ads · prove
How it gets proven — Medusa → Microsoft Ads
Source of truth
Medusa orders by payment status, emitted from your own subscriber code.
- The MSCLKID confirmed present on a live order.
- Auto-tagging confirmed on, and the accepted count reconciled against conversions appearing in campaign reporting.
- Payment-captured orders reconciled against imported conversions.
Medusa → Microsoft Ads · free audit
What we check in the free audit
- Count orders carrying the MSCLKID
- Follow one real conversion end to end
- Check which event your subscriber listens to
- Confirm auto-tagging is enabled and check the upload diagnostics
- Read the match rate, not the success message
Checked against
Medusa orders by payment status, emitted from your own subscriber code.
Free30 minutesNo obligation
Medusa → Microsoft Ads · when not to buy
When you don't need this — Medusa → Microsoft Ads
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the MSCLKID.
- If every payment method you accept is instant, the two events nearly coincide and the distinction costs more than it returns.
- 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.
Medusa → Microsoft Ads · what we deliver
What gets built — Medusa → Microsoft Ads
Identifier capture into Medusa
Write the identifier into cart metadata at first touch so it is carried onto the order automatically at completion.
Event source: a Medusa subscriber on order payment capture
Send orders at payment capture, at the paid total.
Dispatch to Microsoft Ads
Offline conversion import through the Microsoft Advertising API or a scheduled upload.
Reversals where they exist
Refunds emit their own event and should reverse.
Written guarantee
95%+ tracking accuracy
Measured against Medusa orders by payment status, emitted from your own subscriber code.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Medusa → Microsoft Ads questions, answered
Store the MSCLKID in cart metadata at first touch, then upload the order from a payment-captured subscriber to an offline conversion goal with the paid total, currency and capture time.
Use one as the bidding goal. Offline import from the subscriber is more accurate; if UET also tracks purchases, keep it out of the conversions used for bidding.
Almost always because the MSCLKID never reached the Medusa order. The storefront is separate from the backend, and the identifier must be attached to the cart before the order is created. Measure coverage before debugging the dispatch.
The MSCLKID, appended to your landing page URL when auto-tagging is enabled in the Microsoft Ads account. Auto-tagging is not on by default in every account, which is the single most common reason a Microsoft offline import finds nothing to match. Microsoft also supports enhanced conversions using hashed customer data as an alternative path.
A Medusa subscriber on order payment capture. Send orders at payment capture, at the paid total.
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.
More on Medusa → Microsoft Ads
- Microsoft · Lead → booked callHow to track lead to booked call for Microsoft Ads
- Microsoft · Booked call → closed wonHow to track booked call to closed won for Microsoft Ads
- Microsoft · Free trial → paidHow to track free trial to paid for Microsoft Ads
RELATED GUIDES
Where Medusa → Microsoft Ads fits in the rest of your tracking
- Microsoft · Jewelry ecommerceMicrosoft Ads conversion tracking for jewelry ecommerce brands
- Microsoft · Furniture ecommerceMicrosoft Ads conversion tracking for furniture ecommerce brands
- Microsoft × Ecommerce OrdersHow to reconcile Microsoft Ads against your store's order table
- Microsoft · Add to cart → purchaseHow to track add to cart to purchase for Microsoft Ads
- Swell → Microsoft AdsConnecting Swell to Microsoft Ads
- Medusa → TikTokConnecting Medusa to TikTok Events API
- Jewelry ecommerceConversion tracking for jewelry ecommerce, measured in settled orders
- Shopify → Microsoft AdsConnecting Shopify to Microsoft Ads
Free · 30 min
Get Medusa and Microsoft Ads joined properly
Free30 minutesNo obligation
