Using the JavaScript UET tag tracking code

Using the JavaScript UET tag tracking code

After you create a UET tag, the next step is to add the UET tag tracking code to your website.

Before you can track conversions or target audiences using a remarketing list, you need to create a UET tag in Bing Ads and then add the UET tag tracking code to every page of your website. We strongly recommend that you use JavaScript to ensure accurate conversion tracking.

What are the advantages of using JavaScript?

The tag updates automatically when we receive any changes to the UET tag tracking code.

What does the JavaScript tag look like?

A JavaScript tracking code allows Bing Ads to collect richer activity data that improves conversion tracking and remarketing in paid search. The only time you shouldn't use this is if your website has rules that prohibit JavaScript from being installed on it.

Single-page application (SPA) websites

If your website is built as single-page application (SPA), additional changes are required to ensure UET is working on pages where the content is loaded dynamically without a traditional full-page load. Please refer to this site for detailed instructions and to view code samples in action.