Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Microsoft UET tag missing: how to find and fix it

TRK-214High impactDetectedBy FunnelGuardPublished Updated
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.

Where the tracking chain breaks
  1. Ad clickVisitor clicks a Microsoft ad
  2. Landing pageUET tag is not on the page
  3. Form or checkoutVisitor converts, nothing is sent
  4. Microsoft Ads reportShows clicks, zero conversions

With no UET tag, everything after the landing page goes unrecorded in Microsoft Advertising.

Conversions reported vs realExample numbers
Conversions reported vs real (example)Real leads: 40 conversions; Reported with tag: 38 conversions; Reported without tag: 0 conversions0153140380Real leadsReported with tagReported without tagconversions

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

Check for the UET tag
  1. 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.

  2. Look in the network tab

    Open DevTools, go to Network, reload the page and filter for bat.bing. You should see a request to bat.bing.com/action/0 or bat.bing.com/p/action/. No request means no tag.

  3. Search the page source

    View source and search for bat.bing.com and uetq. Check your landing page, a product or service page and the thank-you page.

  4. 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.

Install the UET tag by platform
  1. 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.

  2. Set the trigger

    Use the All Pages trigger, or Initialization - All Pages.

  3. Preview and publish

    Test in Preview mode, then click Submit to publish. An unpublished container is a common reason the tag is missing.

UET base tag (replace 12345678 with your tag ID)html
<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

Confirmation checks
  • 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.

How a missing tag usually goes unnoticed
  1. Day 1

    Theme is replaced and the pasted UET snippet is lost

  2. Day 3

    Ads still run, clicks still arrive, nobody sees a problem

  3. Day 14

    Reports show zero conversions and bids are cut

  4. 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.

Before and after the fix

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.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.