Skip to main content
Sitecore → Microsoft AdsIntegration guide

Connecting Sitecore to Microsoft Ads

Sitecore is enterprise digital experience software with its own personalisation and analytics stack, which frequently competes with rather than complements the measurement you are trying to build. 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 Sitecore contact and 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

Sitecore to Microsoft Ads: MSCLKID behind the CDN cache

Capture the MSCLKID at the edge or client-side into a first-party cookie, since Sitecore's cache layers can stop it reaching the application, and check language redirects keep it. Persist it to the commerce order or CRM lead and upload from there to an offline conversion goal, with enhanced conversions as backup. Never import Sitecore goals or double-count UET orders.

Microsoft Ads is a natural channel for enterprise sites on Sitecore: desktop-heavy, work-hours searchers who use Edge and Bing by default. The most common failure is upstream of Microsoft. Enterprise Sitecore sits behind CDN and caching layers, and if the cache key ignores query strings, a cache hit is served without the request ever reaching Sitecore, so an MSCLKID you planned to capture in the application never arrives. Capture it at the edge or client-side into a first-party cookie.

Then persist it to the record that carries money: the commerce order if Sitecore fronts a store, or the CRM lead and opportunity if the site generates B2B leads. Upload from there to an offline conversion goal. Microsoft's enhanced conversions with hashed email can recover matches when the MSCLKID was lost, which on this stack is worth checking.

Two other checks. Sitecore language and site resolution can redirect a landing URL, root to a language path for example, and some redirect configurations drop query strings; click an ad yourself and see whether the MSCLKID survives to the final URL. And do not import Sitecore goals as Microsoft conversions; if a UET goal already fires on the confirmation page, do not upload the same order to a second goal that also counts toward bidding.

Sitecore → Microsoft Ads · what breaks

Why this join usually fails — Sitecore → Microsoft Ads

  1. 01

    The MSCLKID never reaches Sitecore

    Sitecore's personalisation can vary page output per visitor, its analytics identity model is separate from any ad platform's, and enterprise deployments sit behind multiple caching and CDN layers.

  2. 02

    Two analytics systems answering different questions

    Sitecore's experience analytics and your ad platform reporting will never agree because they measure different things. Trying to reconcile them wastes weeks.

  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.

Sitecore → Microsoft Ads · the fix

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

Sitecore → Microsoft Ads · architecture

How Sitecore and Microsoft Ads actually connect

  1. 1

    Sitecore holds the truth

    Sitecore's experience database tracks contacts and interactions for personalisation. It is not a conversion source for ad platforms and its numbers will not match theirs, by design.

  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 Sitecore contact and order.

  4. 4

    The event source decides reliability

    Send from the commerce layer. Sitecore's own goal and event tracking serves personalisation and should not be wired to ad platforms.

  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.

Sitecore → Microsoft Ads · normal or broken

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

Normal, not a fault

  • The MSCLKID present on the order

  • Sent from your commerce system's order event

  • 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

    Sitecore's personalisation can vary page output per visitor, its analytics identity model is separate from any ad platform's, and enterprise deployments sit behind multiple caching and CDN layers.

  • Sent from the browser

    Sitecore's experience analytics and your ad platform reporting will never agree because they measure different things. Trying to reconcile them wastes weeks.

  • 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

Sitecore → Microsoft Ads · diagnose

Diagnostic order — Sitecore → Microsoft Ads

  1. 01

    Count orders carrying the MSCLKID

  2. 02

    Follow one real conversion end to end

  3. 03

    Separate Sitecore's personalisation analytics from conversion measurement

    They are different systems for different purposes. Conflating them is the standard mistake in this stack.

  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.

Sitecore → Microsoft Ads · prove

How it gets proven — Sitecore → Microsoft Ads

Source of truth

Your commerce or CRM system — Sitecore's own analytics database answers a different question.

  • The MSCLKID confirmed present on a live order.
  • Auto-tagging confirmed on, and the accepted count reconciled against conversions appearing in campaign reporting.
  • Conversions confirmed sourced from the commerce system rather than from Sitecore's experience database.

Sitecore → Microsoft Ads · free audit

What we check in the free audit

  • Count orders carrying the MSCLKID
  • Follow one real conversion end to end
  • Separate Sitecore's personalisation analytics from conversion measurement
  • Confirm auto-tagging is enabled and check the upload diagnostics
  • Read the match rate, not the success message

Checked against

Your commerce or CRM system — Sitecore's own analytics database answers a different question.

Get my free conversion tracking audit

Free30 minutesNo obligation

Sitecore → Microsoft Ads · when not to buy

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

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the MSCLKID.
  • If your Sitecore implementation is content-only with commerce elsewhere, work at the commerce layer entirely.
  • 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.

Sitecore → Microsoft Ads · what we deliver

What gets built — Sitecore → Microsoft Ads

  • Identifier capture into Sitecore

    Capture the identifier server-side in the application and persist it to the commerce order, keeping it separate from Sitecore's own contact identity model.

  • Event source: your commerce system's order event

    Send from the commerce layer. Sitecore's own goal and event tracking serves personalisation and should not be wired to ad platforms.

  • Dispatch to Microsoft Ads

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

  • Reversals where they exist

    Handled at the commerce layer.

Written guarantee

95%+ tracking accuracy

Measured against Your commerce or CRM system — Sitecore's own analytics database answers a different question.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Sitecore → Microsoft Ads questions, answered

Most often the CDN cache key ignores query strings, so cached responses never reach the application, or a language redirect drops the parameter. Capture it client-side or at the edge, and test the redirect path.

Free · 30 min

Get Sitecore and Microsoft Ads joined properly

Free30 minutesNo obligation