Skip to main content
Contentful → Microsoft AdsIntegration guide

Connecting Contentful to Microsoft Ads

Contentful is headless content only — it has no checkout, no orders and no customers, which is the single most important thing to establish before anyone quotes for work. 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 front-end conversion, not a Contentful record 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

Contentful sites to Microsoft Ads: UET and MSCLKID live in the app

On a Contentful site, read the MSCLKID on first load into a first-party cookie before client-side routing rewrites the URL, and confirm UET registers route changes. For leads, carry it through a hidden field to the CRM and upload qualified leads to an offline conversion goal; for commerce, attach it to the order. Load UET only on production hostnames.

UET and the MSCLKID are front-end concerns on a Contentful site, and both suffer from the same headless habit: one full page load followed by client-side navigation. Check whether your UET setup registers route changes as page views; if it does not, remarketing lists and page-based conversion goals see only the landing page. Read the MSCLKID on that first load and persist it in a first-party cookie before the router rewrites the URL, or it is gone by the time the visitor reaches your form three routes later.

For lead-generation sites, the reliable path is offline: a hidden form field populated from the cookie, stored on the lead in your CRM, and uploaded to a Microsoft offline conversion goal when the lead qualifies. For sites selling through a commerce backend, attach the MSCLKID to the cart or order there. Either way the upload comes from the system holding the outcome, not from Contentful.

One Contentful-specific leak: preview and staging front ends that render draft content through the Preview API often ship the same tag configuration as production. Editors testing a landing page fire UET page views and, worse, test form submissions that count as conversions. Load UET only on production hostnames and exclude internal traffic in the conversion goal.

Contentful → Microsoft Ads · what breaks

Why this join usually fails — Contentful → Microsoft Ads

  1. 01

    The MSCLKID never reaches Contentful

    Because Contentful is headless, the front end is a separate application — usually Next.js, Nuxt or similar — and that application is where client-side routing, caching and identifier capture all actually happen. Attributing a tracking problem to Contentful is nearly always a misdiagnosis.

  2. 02

    Blaming the CMS for a front-end problem

    Headless setups fail at the front end — client-side routing that fires one pageview per session, an identifier lost on a route change — and the CMS gets blamed. Contentful is not in that path at all.

  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.

Contentful → Microsoft Ads · the fix

What working looks like — Contentful → Microsoft Ads

  • The MSCLKID on every conversion

  • 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

Contentful → Microsoft Ads · architecture

How Contentful and Microsoft Ads actually connect

  1. 1

    Contentful holds the truth

    Contentful stores content and serves it via API. The commercial record lives in your commerce platform, your CRM or your billing system, and that is where measurement belongs.

  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 front-end conversion, not a Contentful record.

  4. 4

    The event source decides reliability

    Send from the system that holds the money. Contentful contributes the content layer and nothing to the conversion.

  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.

Contentful → Microsoft Ads · normal or broken

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

Normal, not a fault

  • The MSCLKID present on the conversion

  • Sent from your commerce, CRM or billing system

  • 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

    Because Contentful is headless, the front end is a separate application — usually Next.js, Nuxt or similar — and that application is where client-side routing, caching and identifier capture all actually happen. Attributing a tracking problem to Contentful is nearly always a misdiagnosis.

  • Sent from the browser

    Headless setups fail at the front end — client-side routing that fires one pageview per session, an identifier lost on a route change — and the CMS gets blamed. Contentful is not in that path at all.

  • 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

Contentful → Microsoft Ads · diagnose

Diagnostic order — Contentful → Microsoft Ads

  1. 01

    Count conversions carrying the MSCLKID

  2. 02

    Follow one real conversion end to end

  3. 03

    Establish which system holds the conversion before anything else

    In a headless stack it is never the CMS, and starting there wastes the engagement.

  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.

Contentful → Microsoft Ads · prove

How it gets proven — Contentful → Microsoft Ads

Source of truth

Whatever system takes the money — Contentful holds none of it.

  • The MSCLKID confirmed present on a live conversion.
  • Auto-tagging confirmed on, and the accepted count reconciled against conversions appearing in campaign reporting.
  • The conversion confirmed sourced from the commerce or CRM system rather than from anything in the content layer.

Contentful → Microsoft Ads · free audit

What we check in the free audit

  • Count conversions carrying the MSCLKID
  • Follow one real conversion end to end
  • Establish which system holds the conversion before anything else
  • Confirm auto-tagging is enabled and check the upload diagnostics
  • Read the match rate, not the success message

Checked against

Whatever system takes the money — Contentful holds none of it.

Get my free conversion tracking audit

Free30 minutesNo obligation

Contentful → Microsoft Ads · when not to buy

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

  • Measure identifier coverage yourself first — pull your last hundred conversions and count how many carry the MSCLKID.
  • There is no Contentful-specific tracking build. The work is in your front-end framework and your commerce system, and we would say so rather than bill for the CMS.
  • 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.

Contentful → Microsoft Ads · what we deliver

What gets built — Contentful → Microsoft Ads

  • Identifier capture into Contentful

    Capture and persist the identifier in the front-end application, server-side, and carry it into whichever system records the conversion.

  • Event source: your commerce, CRM or billing system

    Send from the system that holds the money. Contentful contributes the content layer and nothing to the conversion.

  • Dispatch to Microsoft Ads

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

  • Reversals where they exist

    Handled wherever the money lives.

Written guarantee

95%+ tracking accuracy

Measured against Whatever system takes the money — Contentful holds none of it.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Contentful → Microsoft Ads questions, answered

UET runs in your front end, not in Contentful. On a single-page app, confirm route changes register as page views and that the MSCLKID is stored on the first load.

Free · 30 min

Get Contentful and Microsoft Ads joined properly

Free30 minutesNo obligation