Microsoft Ads UET Tag with Enhanced Conversions & Offline CRM Imports: The Complete Enterprise Setup Guide
Microsoft Advertising (formerly Bing Ads) represents one of the most lucrative and under-optimized paid search channels for e-commerce, B2B SaaS, healthcare, and financial services. Powered by default search integrations across Windows 11, Microsoft Edge, and Microsoft Copilot AI search, the Microsoft Advertising network commands an older, higher-income desktop audience with significant buying power.
However, many brands treat Microsoft Ads as an afterthought, simply importing campaigns from Google Ads without properly configuring the Universal Event Tracking (UET) tag, Enhanced Conversions, or offline CRM imports. As a result, campaigns bid on fragmented conversion data, and desktop purchase revenue goes unattributed.
I am Jobair Mahmud, an independent conversion tracking specialist. In this guide, I share the technical protocol for deploying the Microsoft Ads UET tag with Enhanced Conversions and setting up MSCLKID offline CRM synchronization.
Key Takeaways: Microsoft Ads UET Protocol
- UET Tag Foundation: The UET tag must fire on all pages via Google Tag Manager to establish first-party cookies (
_uetmsclkid,_uetsid,_uetvid) and record session activity. - Enhanced Conversions in Microsoft Ads: Similar to Google Ads, Microsoft Ads allows advertisers to transmit hashed first-party customer parameters (email, phone, name, address) alongside the conversion event to match users who convert across devices.
- The MSCLKID Handshake: Microsoft appends an
msclkidparameter to the destination URL when an ad click occurs. Your website forms must capture and persist this parameter into your CRM. - Variable Revenue Tracking: For e-commerce stores, ensure the UET tag transmits dynamic transaction values (
gv: value) and currency codes (gc: currency) aligned with net order subtotal. - If you need expert measurement engineering for your search campaigns, review my Microsoft Ads Conversion Tracking service.
Step 1: Deploying the UET Tag via Google Tag Manager
In your Web GTM Container:
- Add the official Microsoft Advertising Universal Event Tracking tag template.
- Enter your Microsoft UET Tag ID (found in Microsoft Advertising -> Tools -> UET Tag).
- Set the trigger to All Pages (Page View).
- Enable Automatic Enhanced Conversions if supported, or configure manual Enhanced Conversions for complete control over user data hashing.
Step 2: Implementing Enhanced Conversions for Microsoft Ads
Enhanced Conversions matches conversion payloads against Microsoft consumer and enterprise account profiles (Outlook, Office 365, Windows logins).
Add a Custom HTML Tag or custom parameter configuration inside GTM to fire on your conversion event (purchase or generate_lead):
// Microsoft Ads UET Enhanced Conversions Event Payload
window.uetq = window.uetq || [];
window.uetq.push('set', {
'pid': {
'em': '{{dlv - user.hashed_email}}', // Normalized SHA-256 hashed email
'ph': '{{dlv - user.hashed_phone}}', // Normalized E.164 SHA-256 hashed phone
'fn': '{{dlv - user.first_name}}',
'ln': '{{dlv - user.last_name}}'
}
});
// Push the specific conversion event
window.uetq.push('event', 'purchase', {
'event_category': 'ecommerce',
'event_label': 'Shopify Checkout',
'event_value': {{dlv - ecommerce.value}},
'revenue_value': {{dlv - ecommerce.value}},
'currency': '{{dlv - ecommerce.currency}}'
});
Step 3: Capturing the msclkid for Offline CRM Imports
For B2B lead generation, insurance, and legal practices, conversion value is realized days or weeks after the initial inquiry.
Capturing the MSCLKID in Form Hidden Fields:
Ensure your web forms contain a hidden input named msclkid:
<input type="hidden" name="msclkid" id="msclkid" value="" />
Use this GTM script to parse msclkid from the URL or the _uetmsclkid cookie and inject it into your form fields:
(function() {
function getQueryParam(p) {
var match = RegExp('[?&]' + p + '=([^&]*)').exec(window.location.search);
return match && decodeURIComponent(match[1].replace(/\+/g, ' '));
}
function getCookie(name) {
var value = "; " + document.cookie;
var parts = value.split("; " + name + "=");
if (parts.length === 2) return parts.pop().split(";").shift();
}
var msclkid = getQueryParam('msclkid') || getCookie('_uetmsclkid') || '';
if (msclkid) {
var inputs = document.querySelectorAll('input[name="msclkid"], input[id="msclkid"]');
inputs.forEach(function(el) {
if (!el.value) el.value = msclkid;
});
}
})();
Step 4: Scheduled Offline Uploads to Microsoft Advertising
In Microsoft Advertising:
- Navigate to Tools -> Conversion Goals -> Create Conversion Goal.
- Select Offline Conversions. Name it:
CRM Closed-Won Deals. - Set your conversion window (e.g., 90 days).
- Upload offline deals via Scheduled CSV Feeds (SFTP / Google Drive) or programmatically via the Microsoft Advertising REST API:
MSCLKID,ConversionName,ConversionTime,ConversionValue,ConversionCurrency
9b3a4f6e-1234-5678-abcd-ef0123456789,CRM Closed-Won Deals,11/01/2026 14:30:00,14500.00,USD
Scaling Microsoft Ads with Trusted Conversion Signals
When Microsoft’s bidding algorithms receive accurate Enhanced Conversion signals and offline deal revenues:
- Target CPA campaigns bid aggressively on high-intent desktop queries.
- Automated bidding identifies users with verified commercial purchasing patterns.
- Cross-device conversion modeling bridges users who research on mobile Edge and buy on desktop Windows.
Through our Microsoft Ads Conversion Tracking service, we engineer:
- Full UET tag and Enhanced Conversions instrumentation.
- Form hidden field integration and CRM mapping for
msclkid. - Automated offline upload schedules with verified error logging.
- Cross-platform revenue reconciliation against Google Ads and GA4.
Book your Microsoft Ads tracking setup → or check our complete list of Platform Services.
Need this implemented, audited, or white-labeled?
Whether you are an eCommerce brand owner fixing signal loss or a digital marketing agency needing a senior analytics engineer under strict NDA, I deliver 24–48h SLA turnaround with 8.5+ EMQ match rates.

