Cookie preferences

Choose which optional cookies EndFrame may use on this site. Analytics and advertising tools load only if you allow them, and you can change your mind any time from “Cookie settings” in the footer. Whatever you choose, this tab keeps the campaign labels from the link that brought you, and they are saved with your account if you sign up. Read the Cookie Policy.

Needed for the site to work, such as remembering this choice. Always on.

Lets us load analytics tools through Google Tag Manager, including Google Analytics and Microsoft Clarity session recordings, to understand how the site is used.

Allows advertising tags to measure our ad campaigns. None run on this site today. It also keeps ad click IDs from the page address for this tab, and saves them with your account if you sign up.

Skip to main content

Microsoft Advertising Conversion Tracking: UET Tag, msclkid and Offline Conversions

Microsoft Advertising has its own tag, click ID and import rules, and they differ from Google's in small ways that break imports. This guide explains the UET tag and conversion goals, how msclkid auto-tagging works, how offline conversion imports are structured, and where Microsoft's server-side Conversions API fits.

The EndFrame Team5 min read

Microsoft Advertising often drives cheaper leads than other search channels, but if your conversions are not tracked properly, its bidding has nothing to learn from. The setup looks a lot like Google's, with a tag, a click ID and an offline import, and that similarity causes problems when teams copy their Google process across without checking the differences. This guide covers the UET tag, the msclkid click ID, offline conversion imports and Microsoft's server-side option.

The UET tag and conversion goals

Universal Event Tracking (UET) is Microsoft's site tag. Microsoft's documentation describes it as a prerequisite for conversion tracking and remarketing: you create one UET tag, add it to every page of your site, and then define conversion goals that tell Microsoft which recorded actions count. One tag can serve all your conversion goals and remarketing lists.

Goal typeWhat counts as a conversionTypical use
Destination URLA visit to a specific page, such as a thank-you URLSimple lead forms and checkouts
EventA custom event you push through UET, with category, action, label and valueForm submissions without a page change, button clicks
DurationA visit lasting longer than a set timeContent sites, as a secondary signal
Pages per visitA visit viewing more than a set number of pagesEngagement goals
App installAn app installationApp campaigns
Offline conversionA conversion you import with the msclkidSales and qualified leads from a CRM

Event goals are the most robust choice for modern sites, because many forms submit without loading a new page. Push the UET event from the form's success callback, and include a revenue value where it is meaningful. Destination URL goals still work well for checkouts that end on a dedicated confirmation page, but check that the page cannot be reached by simply reloading or bookmarking it, which would record conversions nobody made.

msclkid: Microsoft's click ID

When auto-tagging of the Microsoft Click ID is enabled for your account, Microsoft appends msclkid to the landing page URL after an ad click. The UET tag reads it so conversions can be tied to the click, and you need the same value for offline imports. Microsoft's Conversions API documentation describes the msclkid as a UUID, recommends keeping the most recent value per user and overwriting it when a newer click arrives, and suggests a retention period of 90 days.

Capture it exactly as you would a gclid: read it on landing, persist it for the visit, write it into a hidden form field, and map that to its own CRM property. Our guide to gclid, gbraid and wbraid covers the capture pattern, and passing UTM parameters to your CRM shows how to keep source fields intact through form tools. Do not reuse the gclid field for msclkid values; you will not be able to tell them apart later.

Offline conversion imports

Offline imports let you report conversions that happen after the click and outside your website: a phone sale, a signed contract, a qualified lead. You create an offline conversion goal, then send Microsoft each conversion with the goal name, the conversion time and the msclkid, plus an optional value and currency. Uploads can be done as files in the Microsoft Advertising interface or through the API's ApplyOfflineConversions operation.

The rules that trip people up

  1. 1Wait two hours after creating a new offline conversion goal before sending any conversions. Microsoft says data sent earlier might not be applied.
  2. 2The conversion name must exactly match an existing goal name, or the conversion is not applied.
  3. 3The conversion time must be within the last 90 days, later than the click, and inside the goal's conversion window. A conversion outside the window uploads but is not counted.
  4. 4Through the API, conversion times must be in UTC. The web interface offers time zone options instead, so the two routes are not interchangeable.
  5. 5Duplicates with the same msclkid and conversion time are ignored; only the first is counted.
  6. 6The goal's count setting matters: All adds every conversion for the same click with different times, Unique counts only the first conversion after a click.
  7. 7The API accepts up to 1,000 offline conversions per request, and Microsoft says it can take up to six hours to see the data in reporting.

Enhanced conversions for offline imports

Microsoft's offline conversion object also accepts a SHA-256 hashed email address and a hashed phone number in E.164 format, for use with enhanced conversions. The documentation states that the msclkid becomes optional when you provide a hashed email or phone. That matters for leads whose click ID was never captured: if the CRM has their email, the conversion can still be matched. Normalise before hashing; Microsoft's Conversions API guide, for example, trims whitespace and lowercases emails and also removes dots and +aliases from the part before the @. Our guide to hashing customer data with SHA-256 explains why small normalisation differences destroy match rates.

Microsoft's server-side Conversions API

Microsoft also documents a Conversions API for UET, a server-to-server endpoint for website, CRM, offline and app events. It recommends running it alongside the UET tag rather than replacing it. Requests go to an endpoint containing your UET tag ID, authenticated with a token you can copy from the UET tag's setup in Microsoft Advertising under Use Conversions API. Each event needs an eventType of pageLoad or custom, an eventTime in UTC seconds within the last 90 days, and a userData object with at least one identifier, such as the msclkid, hashed email or phone, or an anonymous visitor ID.

Two details are specific to Microsoft. For deduplication between UET and the API, use the same UET tag, the same eventId and a compatible eventName in both. And Microsoft recommends a client-side ID Sync pixel, where the visitor ID matches the anonymousId in your server events; it is required for remarketing and recommended for measurement quality. Events can carry an adStorageConsent value of G or D, and events marked denied are not used for advertising purposes. Batches are capped at 1,000 events. For how this compares with other platforms, see conversions APIs compared across ad platforms.

Microsoft and Google side by side

If you already run Google Ads offline conversion import, the main differences are the click ID (msclkid rather than gclid), the time format (UTC through Microsoft's API, versus a time zone offset for Google), Microsoft's two-hour wait after goal creation, and the upload route, since Google now routes imports through Data Manager. Build one capture layer that stores every platform's click ID, then one export per platform.

Where EndFrame fits

EndFrame has no native Microsoft Advertising destination. Its first-party tracker captures msclkid and UTMs on your domain, stores them with the visitor, and attaches them to leads and conversions. A custom webhook can then send those records to your CRM, a warehouse, or a small job that calls Microsoft's offline import or Conversions API.

Frequently asked questions

Can I reuse my Google Ads offline import for Microsoft Advertising?

The workflow is similar but the data is not interchangeable. Microsoft needs its own click ID, the msclkid, captured from Microsoft ad clicks, and its own goal names. Store gclid and msclkid in separate fields and run a separate import for each platform.

Why are my Microsoft offline conversions not showing?

Check that you waited two hours after creating the offline goal before the first upload, that the goal name matches exactly, that conversion times are after the click, within the goal's conversion window and within the last 90 days, and that API times are in UTC. Microsoft says data can take up to six hours to appear.

Is the msclkid the same as the UET tag?

No. The msclkid is the click identifier added to your landing page URL when auto-tagging is on. The UET tag is the script on your site that records visits and conversions, and it uses the msclkid to tie them to the ad click.

Try EndFrame

Add a server-side path for your conversions.

EndFrame collects events first-party and forwards conversions server-side to Meta, GA4, TikTok, and webhooks with event-ID deduplication — then credits each conversion to its campaign, with the visit-to-conversion path you can audit.

No credit card required

Keep reading