On this page
What this issue is
The UET tag is a small piece of JavaScript from Microsoft Advertising. It loads from bat.bing.com, sends a page view each time someone loads a page, and stores a click ID (msclkid) so a later sale or lead can be tied back to the ad. Conversion goals in Microsoft Advertising depend on it.
Why it costs you leads or sales
Without the tag, Microsoft Advertising sees clicks but no conversions. Smart bidding has nothing to learn from, remarketing audiences stop filling, and reports show spend with no return. You may pause campaigns that were working, or keep paying for ones you cannot judge.
- Ad clickVisitor clicks a Microsoft ad
- Landing pageUET tag is not on the page
- Form or checkoutVisitor converts, nothing is sent
- Microsoft Ads reportShows clicks, zero conversions
With no UET tag, everything after the landing page goes unrecorded in Microsoft Advertising.
Example: 40 real leads in a month from Microsoft ads, but only the ones tracked appear in the report.
How to check if your site has it
Use the UET Tag Helper
Install Microsoft's UET Tag Helper extension for Chrome, open your landing page and click the icon. It shows whether a tag was found and its ID.
Look in the network tab
Open DevTools, go to Network, reload the page and filter for
bat.bing. You should see a request tobat.bing.com/action/0orbat.bing.com/p/action/. No request means no tag.Search the page source
View source and search for
bat.bing.comanduetq. Check your landing page, a product or service page and the thank-you page.Check Microsoft Advertising
In Microsoft Advertising go to Tools > UET tag. The status shows Active or Unverified, and a tag with no recent activity is a warning sign.
How to fix it
First get your tag from Microsoft Advertising: Tools > UET tag > Create (or open your existing tag) > View tag. Copy the tag ID, a number of about 8 or 9 digits. Then add it using the route that fits your site. Use only one route, or the tag will fire twice.
Create the tag
In your container choose Tags > New > Microsoft Advertising Universal Event Tracking (available in the tag type list). Enter your UET tag ID and set Event Type to Page view.
Set the trigger
Use the All Pages trigger, or Initialization - All Pages.
Preview and publish
Test in Preview mode, then click Submit to publish. An unpublished container is a common reason the tag is missing.
Pick one method
Use a header and footer scripts plugin, your tag manager plugin, or your theme's custom code area. The exact menu depends on the plugin or theme.
Paste the snippet in the head
Paste the full UET snippet from Microsoft so it loads on every page.
Clear caches
Purge page and CDN caches so the new code is served.
Add it in Customer events
Go to Settings > Customer events > Add custom pixel, paste the UET code and connect it. This is the supported route for the checkout and thank-you pages.
Or use theme.liquid
For storefront pages only, paste the snippet before the closing head tag in theme.liquid. Do not use both routes.
Add to custom code
Go to Project settings > Custom code > Head code, paste the snippet, save and publish the site.
Add a custom tracking tag
Go to Settings > Custom code (or Tracking & analytics), choose Add custom code, paste the snippet, set it to All pages and place it in the Head.
Use code injection
Go to Settings > Advanced > Code injection and paste the snippet in the Header box. Code injection may need a plan that allows it.
Add tracking code
For funnels and websites, open Settings and paste the snippet in the Head tracking code. Repeat for each funnel or site you run ads to.
Add the snippet to your template
Place the UET snippet in the head of your shared layout so every page includes it. Replace the ID with your own.
<script>
(function(w,d,t,r,u){
var f,n,i;
w[u]=w[u]||[],f=function(){
var o={ti:"12345678",enableAutoSpaTracking:true};
o.q=w[u],w[u]=new UET(o),w[u].push("pageLoad")
},
n=d.createElement(t),n.src=r,n.async=1,
n.onload=n.onreadystatechange=function(){
var s=this.readyState;
s&&s!=="loaded"&&s!=="complete"||(f(),n.onload=n.onreadystatechange=null)
},
i=d.getElementsByTagName(t)[0],i.parentNode.insertBefore(n,i)
})(window,document,"script","//bat.bing.com/bat.js","uetq");
</script>How to confirm it's fixed
- UET Tag Helper shows a tag with your correct ID on the landing page
- A request to bat.bing.com appears in the Network tab on every key page
- Only one UET request fires per page load
- The tag status in Microsoft Advertising (Tools > UET tag) changes to Active after a few hours
- A test conversion shows up against your goal
- The tag is also present on the thank-you or order confirmation page
How to prevent it happening again
The tag usually vanishes after a change: a theme update, a redesign, a new funnel built from a template, or a tag manager edit that was never published. Keep one documented place where the tag lives. Re-check after every release and every time you launch a new landing page for Microsoft ads.
Day 1
Theme is replaced and the pasted UET snippet is lost
Day 3
Ads still run, clicks still arrive, nobody sees a problem
Day 14
Reports show zero conversions and bids are cut
Day 15
Tag is reinstalled and verified
How FunnelGuard handles this
FunnelGuard detects this issue today. A robot visitor runs your real customer journeys on a schedule and checks the tracking hits sent to ad platforms, including Microsoft (Bing). If the expected UET request is not sent on a step, the failure is re-checked from a second region, then you get one alert by email, Slack, Teams, WhatsApp, webhook or PagerDuty with a screenshot and a likely cause.
Tag missing
- No request to bat.bing.com
- Microsoft Ads shows clicks but no conversions
- Bidding and remarketing have no data
Tag installed
- One UET request per page
- Tag status shows Active
- Conversions and audiences record
Questions people ask
Why is my Microsoft UET tag not showing up?
The snippet is usually not on the page. Typical reasons are a theme change, an unpublished Google Tag Manager container, a deactivated plugin, or a cookie banner that blocks it until consent. Check with the UET Tag Helper and the Network tab filtered for bat.bing.
How do I add the Microsoft UET tag to my website?
In Microsoft Advertising go to Tools > UET tag and copy your tag ID or snippet. Add it to every page using Google Tag Manager, your CMS's header code area or your site template. Use one method only, so it does not fire twice.
Where do I find my UET tag ID?
Open Microsoft Advertising, go to Tools > UET tag and select your tag. The tag ID is the number shown with it, and it also appears in the snippet as the ti value.
How can I check if the UET tag is installed?
Use Microsoft's UET Tag Helper Chrome extension on your page, or look for requests to bat.bing.com in the browser's Network tab. You can also view the page source and search for uetq.
Does the UET tag work without Google Tag Manager?
Yes. You can paste the snippet directly into the head of your site or use your platform's custom code area. GTM is only one way of loading it.
Why does Microsoft Advertising show no conversions?
Either the UET tag is missing, the tag ID is wrong, or no conversion goal fires on your thank-you page. Check that the base tag loads on all pages first, then check the goal.
Can I fix a missing UET tag without a developer?
Often yes. Tag Manager, Shopify custom pixels, Webflow, Wix and Squarespace all let you paste the tag without editing code files. A custom-built site may need a developer to edit the template.