Skip to content
🚀 Find us on Product Hunt

Microsoft Advertising (UET) Tracking Setup for GoHighLevel

Quick answer: Use the free container builder wizard to select Microsoft Advertising (UET) and your events, enter your tracking ID, then import the generated file into Google Tag Manager - no manual tag setup needed for any of the 5 events below.

Universal Event Tracking base tag and standard events, generated as Custom HTML. This platform does not have a native GTM tag type, so the container wraps its base code in a Custom HTML tag.

Build my Microsoft Advertising (UET) container →

Events you can track

conversion events

engagement events

By Humayun Kabir Naim — Last updated: 9 November 2026

Quick answer

This hub serves one slice of GoHighLevel users: agencies sending Microsoft Ads (Bing) traffic to GHL funnels. If none of your funnel traffic comes from Microsoft Ads, you do not need a UET tag, and this page stays short. If some does: install GTM once per funnel or website — Sites → Funnels (or Websites) → Settings, head snippet in Head tracking code, body snippet in Body tracking code — load the UET base tag through GTM on every page, and fire UET event tags on the small Custom HTML "bridge" tags that hear each form, survey and calendar announce success. Then build goals on those events in Microsoft Ads — the tag sends, the goal counts. Two warnings run through everything below: Clarity is not UET, and the usual install trap — tag at funnel level and page level doubles every event.

What gets tracked

Five events — the same small surface as every GoHighLevel hub. The last column is where counting happens: Microsoft Ads goals.

GoHighLevel actionHow GTM sees itMicrosoft Ads use
Page ViewGTM's own Page View trigger — no bridge neededUET base tag page load — audiences, and the signal every goal depends on
Form SubmissionBridge tag listening for the form's native success messageUET event → custom-event goal (your lead conversion)
Survey CompletedBridge tag listening for the survey's completion messageUET event → goal, separate if surveys mean "qualified" in your pipeline
Calendar BookingBridge tag listening for the booking widget's completion messageUET event → goal (booked call)
Thank-You Page ViewPage View trigger limited to the thank-you stepFallback route only — read the warning below

Four of the five need a bridge: forms, surveys and calendars run inside embedded widgets the parent page cannot see into. The widget announces success to the parent page; the bridge turns that into a dataLayer.push, and a UET event tag fires on it, pushing the event into the uetq queue. Page View needs no bridge — the base tag's page-load signal handles it.

The thank-you row is an alternative to the form event, never an addition: run both routes and every lead reaches Microsoft twice, and a goal counting both is a doubled conversion your bids optimise on. Scope, plainly: no ecommerce here — no revenue values worth passing. Lead events feeding lead goals. The free tier covers up to 3 events per container; the full container carries all five. See all options on the GoHighLevel hub.

The Clarity trap, before anything else

Microsoft gives away two products with two different scripts, and GoHighLevel users mix them up constantly. Clarity is the free heatmap and session-recording tool. UET is the Microsoft Ads conversion tag — the only one that talks to your ad account. A funnel with Clarity and no UET tag sends Microsoft Ads nothing — no audiences, no conversions — while the owner believes "Microsoft tracking" is handled because recordings are flowing. If that is you, nothing else on this page matters until the base tag below is live. They can coexist; they are not substitutes.

Microsoft Clarity script and UET tag side by side, labelled as different tools

Before you start

  1. A Microsoft Ads account with a UET tag created in it. Creating the tag (under the account's conversion tracking settings) gives you the numeric Tag ID every step below needs. One tag per ad account — if a client's ads run from their own account, it is their tag.
  2. Install per location. Funnels and their Settings tabs live inside each GoHighLevel sub-account (location). A container in one location's funnel does nothing for another's — repeat per client, with that client's container and Tag ID.
  3. Consent signals, if your traffic includes the EEA, UK or Switzerland. Microsoft requires UET to carry the visitor's ad-storage consent state there: denied until granted, then updated — uetq.push('consent', 'update', { ad_storage: 'granted' }) is the shape of the update call. Skipping this does not stop events arriving; it leaves them non-compliant and, increasingly, unusable for bidding there.
  4. Access to the funnel Settings tab, plus a test submission and booking you can delete afterwards.
  5. Check what Microsoft code is already there. Search the tracking fields for an existing UET snippet and for a Clarity script (the trap above). Know which you are starting from.

Route 1: Use the free TagManagerBuilder container

Open the GTM Container Builder, choose GoHighLevel, then Microsoft Advertising (UET), tick the events, enter your Tag ID, and download the JSON. In GTM, use Admin → Import Container with Merge → Overwrite conflicting tags, triggers, and variables. The container holds the UET base tag (Custom HTML), the bridge tags, their triggers, and one UET event tag per event. You still install GTM on the funnel (Step 1), create the goals (Step 5), and test before publishing.

Route 2: Build it manually in GTM

Step 1 — Install GTM once, at funnel level

In GoHighLevel: Sites → Funnels (or Websites) → open the funnel → Settings tab. Paste GTM's <head> snippet into Head tracking code and the <body> snippet into Body tracking code, then Save. The per-page Tracking Code fields are for single-step scripts — never both levels, or the container loads twice and every UET event doubles. GHL injects scripts dynamically, so GTM usually won't appear in View Page Source; judge the install in GTM Preview and the UET Tag Helper.

GoHighLevel funnel Settings with GTM code in the Head and Body tracking code fields

Step 2 — The UET base tag

Tags → New → Custom HTML, Tag ID in the snippet (dummy 12345678 here):

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

Trigger: All Pages. This tag creates the uetq queue and sends the page-load signal everything else builds on. If consent defaults apply to your traffic (step 3 above), the denied default must be pushed before this tag's signals are used for ads — handle consent ordering in your banner setup, not as an afterthought.

Microsoft UET base tag in a GTM Custom HTML tag for a GoHighLevel funnel

Step 3 — The bridge tags

One Custom HTML tag per conversion type, each listening for the widget's success message and pushing a named event:

<script>
  window.addEventListener('message', function(e) {
    var origin = e.origin || '';
    if (origin.indexOf('forms.gohighlevel.com') === -1 &&
        origin.indexOf('forms.msgsndr.com') === -1) { return; }
    window.dataLayer = window.dataLayer || [];
    window.dataLayer.push({ event: 'goHighLevelFormSubmission' });
  });
</script>

Name it for what it hears (GHL — Form Bridge), trigger All Pages or only the form steps. The survey and calendar bridges follow the same shape. Honest sourcing, as on the other GHL hubs: this listener is a practitioner-community technique, not an official GoHighLevel API — the widgets' messages are not a documented contract, which is why the listener checks origins and testing below is not optional.

Step 4 — UET event tags on the bridge events

For each bridge event, a Custom Event trigger matching the pushed name exactly, then a small Custom HTML tag that pushes the event into the queue:

<script>
  window.uetq = window.uetq || [];
  uetq.push('event', 'ghl_form_submission', {});
</script>

Give each event a clear, stable name — ghl_form_submission, ghl_survey_completed, ghl_calendar_booking — because Step 5's goals match on exactly these strings. Rename one in GTM but not in Microsoft Ads and the goal silently counts nothing. The thank-you fallback, if a funnel needs it: one event tag on a Page View trigger limited to the thank-you step, with that funnel's form event tag paused — alternatives, never layers.

UET event tag in GTM firing on the GoHighLevel form bridge event

Step 5 — Build the goals in Microsoft Ads

The tags only send; goals are what Microsoft Ads counts and bids on. Create a custom event goal for each event that matters, its rule matching the event name your tag pushes (form event for leads, booking event for calls), set to count in conversions. A goal with no matching name shows zero forever — a naming problem, not a traffic problem.

Microsoft Ads custom event goal matched to the GoHighLevel form event

Test it

GTM Preview showing the UET event tag fired on the form bridge event
  1. Install the UET Tag Helper extension — the ground truth for this platform, as GTM Preview is for triggers.
  2. Click Preview in GTM, connect to the funnel, submit the test form. The bridge event appears in the timeline with the UET event tag under Tags Fired — once.
  3. With the Tag Helper open, repeat the submission: it should record the page load and your named event. An event the helper never sees, Microsoft never received.
  4. Complete a test booking and confirm its event the same way.
  5. In Microsoft Ads, check the tag's status shows data arriving, and that each goal's event name matches one the helper recorded — compare character for character.
  6. Publish (Submit), then delete the test contacts.
UET Tag Helper showing the base tag and form event on a GoHighLevel funnel

GoHighLevel-specific troubleshooting

We have Clarity recordings, so Microsoft tracking works — but no conversions. The trap from the top of this page: Clarity and UET are different scripts. Recordings prove Clarity is installed; they say nothing about UET. Install the base tag (Step 2).

The goal shows zero while the Tag Helper shows the event. A naming mismatch between Step 4 and Step 5: the goal's event name differs from the pushed name by a character, a plural or an old rename. Goals count strings, not intentions — align them exactly.

Bookings never appear, forms work fine. The calendar is a separate widget with its own completion message — the form bridge cannot hear it. It needs its own bridge, and if the calendar is embedded on an outside page (a WordPress site, say), bridge and container must live on that host page.

Next: the same bridge pushes already feed GoHighLevel + GA4 and GoHighLevel + Meta — build those too, so every platform reports the same leads.

Frequently asked questions

Is Microsoft Clarity the same as the UET tag?

No — separate Microsoft products, separate scripts. Clarity records sessions and heatmaps for your benefit; UET is the Microsoft Ads tag that builds audiences and reports conversions. Having Clarity on a funnel tells Microsoft Ads nothing — many GHL users install it and believe ads tracking is done; it is not, until the UET base tag is live.

Do I need UET if I only advertise on Google and Meta?

No. UET only serves Microsoft Ads: no Microsoft Ads traffic, no audiences, no goals — the tag is pure page weight. Add it when Microsoft Ads spend starts; the setup takes under an hour once GTM and the bridges exist.

Where do the conversions actually get counted — GTM or Microsoft Ads?

Microsoft Ads. GTM's tags send the base signal and named events; a conversion exists only when a goal in Microsoft Ads matches an event and counts it. Forgetting Step 5 is the commonest reason a perfect tag setup reports zero conversions.

Does UET need consent signals on GoHighLevel funnels?

If your funnel receives visitors from the EEA, the UK or Switzerland, yes: Microsoft requires UET to carry the visitor's ad-storage consent state there. In practice the setup pushes a denied default and an update when the visitor accepts your banner. Elsewhere it is good practice rather than a requirement.

My agency runs several clients' funnels. One UET tag for all of them?

No. Each client's funnels live in their own GoHighLevel location, their Microsoft Ads in their own account with its own Tag ID. Install per location — a shared tag would pool every client's leads into one account's goals.

Can UET events carry lead values like a shop's purchase events?

They can carry parameters, but on a lead funnel there is rarely an honest value to send — a submission is not revenue. Leave values off unless your pipeline assigns a defensible value per lead stage.

Share with