# Install Microsoft UET and define a conversion goal Deploy the account UET tag once, send a custom event only on confirmed orders, and match the goal rules against UET Tag Helper output. - Canonical: https://satracking.net/guides/instalar-microsoft-uet/ - Language: en - Category: platforms - Level: intermediate - Published: 2026-11-10 - Updated: 2026-11-10 --- ## Before you start Deploy the account UET tag once, send a custom event only on confirmed orders, and match the goal rules against UET Tag Helper output. Test a completed action, not only a button click. ## 1. Install the account-generated UET base Microsoft generates UET code with your tag ID. This current loader pattern uses a placeholder. For a live site, copy the full current snippet from your account and replace nothing except what Microsoft marks for replacement. Do not add a second base if GTM or a site integration already installs one. ~~~html ~~~ Auto SPA tracking can be inappropriate if your app already manages page-load events; use the exact configuration generated for your account. See Microsoft's [UET overview](https://learn.microsoft.com/en-us/advertising/guides/universal-event-tracking?view=bingads-13). The account-generated snippet remains the source of truth for the current tag ID and options. ## 2. Send a real UET custom event Create a Custom Event goal in Microsoft Advertising and make its action/category/label rules match the values sent by the page. After the base is available, send this only when an order is confirmed: ~~~js window.uetq = window.uetq || []; window.uetq.push('event', 'purchase_complete', { event_category: 'commerce', event_label: 'confirmed_order', event_value: '79.99', revenue_value: 79.99, currency: 'USD' }); ~~~ The strings are examples. Map actual order values and configure the conversion goal to match. This uetq event call uses Microsoft's browser queue. A generic dataLayer.push is only a GTM message; it will not send a Microsoft event unless a UET tag, trigger, and variable mapping forward it. ## 3. Verify Use UET Tag Helper to check tag ID, pageLoad, and the custom event; then review conversion-goal diagnostics in Microsoft Advertising. Helper detection proves local tag execution, not that a goal was counted or attributed. Reporting may lag. Avoid firing on both click and success. A unique confirmation URL can be measured with a URL goal. Make the confirmation state safe to refresh so one order is not counted twice. Use the [dashboard](/audit/) to inspect browser-visible values, then verify the event with UET Tag Helper and Microsoft Advertising diagnostics. ## Official references - Universal Event Tracking overview — https://learn.microsoft.com/en-us/advertising/guides/universal-event-tracking?view=bingads-13 (verified 2026-11-10) - UET Tag Helper — https://learn.microsoft.com/en-us/advertising/guides/uet-tag-helper?view=bingads-13 (verified 2026-11-10) - UET JavaScript tag setup — https://help.ads.microsoft.com/apex/index/3/en/56688 (verified 2026-11-10) - UET JavaScript events and browser/CAPI deduplication — https://learn.microsoft.com/en-us/advertising/guides/uet-conversion-api-integration?view=bingads-13 (verified 2026-11-10)