Connecting Umbraco to Microsoft Ads
Umbraco is a .NET CMS common in mid-market and enterprise European organisations, which means IT governance is usually the binding constraint rather than technology. 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 Umbraco Commerce 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
Umbraco Commerce orders to Microsoft Ads via the .NET SDK
Capture msclkid client-side into a first-party cookie, copy it onto the Umbraco Commerce order in the order-finalized handler, and upload offline conversions with total and currency through Microsoft's .NET Advertising API SDK from a scheduled job. Send refunds as adjustments where supported, and alert on failed runs or zero-row days caused by expired tokens.
This is the most natural ad-platform pair for an Umbraco team: Microsoft publishes a .NET SDK for the Microsoft Advertising API, so offline conversion uploads can be written by the same developers in the same codebase. Capture the msclkid client-side on landing, because pages are usually cached, store it in a first-party cookie, and copy it onto the order's properties in the order-finalized handler.
Upload from a scheduled job rather than inline in the handler, so an API outage never slows checkout, and send rows with order total and currency to an offline conversion goal. Refunds and cancellations recorded as order state changes can go up as adjustments where your account supports them.
The failure specific to this pair isn't code. The Advertising API needs a developer token and OAuth credentials that refresh, and in an organization with change control, an expired token or a secret rotated by IT stops uploads silently until someone notices conversions falling. Alert on failed upload runs and on any day that uploads zero rows while orders were placed.
Umbraco → Microsoft Ads · what breaks
Why this join usually fails — Umbraco → Microsoft Ads
- 01
The MSCLKID never reaches Umbraco
Output caching and CDN layers sit in front of most Umbraco deployments, and the deployment process itself frequently prevents quick iteration, which means getting the capture right the first time matters more here.
- 02
Change control, not technology
The build is straightforward and the release cycle is not. Scope the deployment process before committing to a timeline, because in this segment it is the schedule.
- 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.
Umbraco → Microsoft Ads · the fix
What working looks like — Umbraco → 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
Umbraco → Microsoft Ads · architecture
How Umbraco and Microsoft Ads actually connect
- 1
Umbraco holds the truth
You own the database. What you may not own is the release process — Umbraco sites in this segment often sit behind change control that adds weeks to any modification.
- 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 Umbraco Commerce order.
- 4
The event source decides reliability
Fire from the .NET notification handler rather than a view, which may be cached at the edge.
- 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.
Umbraco → Microsoft Ads · normal or broken
Working vs. broken, side by side — Umbraco → Microsoft Ads
Normal, not a fault
The MSCLKID present on the order
Sent from the Umbraco Commerce order-finalised notification
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
Output caching and CDN layers sit in front of most Umbraco deployments, and the deployment process itself frequently prevents quick iteration, which means getting the capture right the first time matters more here.
Sent from the browser
The build is straightforward and the release cycle is not. Scope the deployment process before committing to a timeline, because in this segment it is the schedule.
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
Umbraco → Microsoft Ads · diagnose
Diagnostic order — Umbraco → Microsoft Ads
- 01
Count orders carrying the MSCLKID
- 02
Follow one real conversion end to end
- 03
Establish the deployment and change-control process first
It determines the timeline more than any technical question here.
- 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.
Umbraco → Microsoft Ads · prove
How it gets proven — Umbraco → Microsoft Ads
Source of truth
Umbraco Commerce's order records in your own database, at agreed order states.
- The MSCLKID confirmed present on a live order.
- Auto-tagging confirmed on, and the accepted count reconciled against conversions appearing in campaign reporting.
- Order data confirmed populated on an order placed through the CDN as an anonymous visitor.
Umbraco → Microsoft Ads · free audit
What we check in the free audit
- Count orders carrying the MSCLKID
- Follow one real conversion end to end
- Establish the deployment and change-control process first
- Confirm auto-tagging is enabled and check the upload diagnostics
- Read the match rate, not the success message
Checked against
Umbraco Commerce's order records in your own database, at agreed order states.
Free30 minutesNo obligation
Umbraco → Microsoft Ads · when not to buy
When you don't need this — Umbraco → Microsoft Ads
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the MSCLKID.
- If the site is maintained by an internal IT team on a quarterly release cycle, plan the engagement around that rather than around the code.
- 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.
Umbraco → Microsoft Ads · what we deliver
What gets built — Umbraco → Microsoft Ads
Identifier capture into Umbraco
Capture the identifier and persist it to the order through a server-side notification handler in the application.
Event source: the Umbraco Commerce order-finalised notification
Fire from the .NET notification handler rather than a view, which may be cached at the edge.
Dispatch to Microsoft Ads
Offline conversion import through the Microsoft Advertising API or a scheduled upload.
Reversals where they exist
Order state changes to refunded or cancelled are recorded.
Written guarantee
95%+ tracking accuracy
Measured against Umbraco Commerce's order records in your own database, at agreed order states.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Umbraco → Microsoft Ads questions, answered
Yes. Store the msclkid on the Umbraco Commerce order and upload orders from a scheduled .NET job using the Microsoft Advertising API or a file upload.
In this setup it's usually expired API credentials or a rotated secret. Monitor the upload job for errors and zero-row runs.
Almost always because the MSCLKID never reached the Umbraco Commerce order. Output caching and CDN layers sit in front of most Umbraco deployments, and the deployment process itself frequently prevents quick iteration, which means getting the capture right the first time matters more here. 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.
The Umbraco Commerce order-finalised notification. Fire from the .NET notification handler rather than a view, which may be cached at the edge.
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 Umbraco → 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 Umbraco → Microsoft Ads fits in the rest of your tracking
- Microsoft · Local servicesMicrosoft Ads conversion tracking for local service businesses
- Microsoft · B2BMicrosoft Ads conversion tracking for B2B companies
- Microsoft × CRM DealsHow to reconcile Microsoft Ads against your CRM's closed-won deals
- Microsoft · Comparison page → demoHow to track comparison page visit to demo request for Microsoft Ads
- AEM → Microsoft AdsConnecting Adobe Experience Manager to Microsoft Ads
- Umbraco → TikTokConnecting Umbraco to TikTok Events API
- Local servicesConversion tracking for local businesses, where most conversions bypass the website
- Sanity → Microsoft AdsConnecting Sanity to Microsoft Ads
Free · 30 min
Get Umbraco and Microsoft Ads joined properly
Free30 minutesNo obligation
