Plugins Plugin hub Backup SEO Caching Security Forms WooCommerce Images Best backup plugins
Hosting Hosting directory Shared hosting Managed WordPress Cloud hosting VPS hosting By reader location Hosting finder
Themes & builders Compare Rank Math vs Yoast
Tools All tools Hosting finder Plugin stack builder Cost calculator Salt generator Theme detector Who is hosting this? Speed test Headline analyzer robots.txt generator Redirect generator Uptime calculator Blog name generator
Blog Best backup plugins Deals
Guides All guides Speed up WordPress Choose hosting Back up WordPress
How we test

Setup & site building · Guide

How to Add Bing Ads to WordPress (Step by Step)

How to Add Bing Ads to WordPress (Step by Step)

Short answer

Bing Ads is now Microsoft Advertising, and adding it to WordPress means installing its UET tracking tag. Create a UET tag in your Microsoft Advertising account, then add it with the official UET plugin, a header code plugin such as WPCode, or Google Tag Manager, and confirm it with the UET Tag Helper extension.

Key takeaways

  • Bing Ads is now called Microsoft Advertising.
  • Your WordPress site needs the UET tag for conversion tracking and remarketing.
  • Install the tag with the official plugin, a header code plugin or Google Tag Manager.
  • Add the tag only once to avoid double counting.
  • Connect the tag to cookie consent where visitors' laws require it.

What does adding Bing Ads to WordPress actually mean?

Adding Bing Ads to WordPress usually means installing the Microsoft Advertising UET tag on your site, so your ad campaigns can track conversions, build remarketing lists and optimize bids.

Bing Ads was renamed Microsoft Advertising in 2019. The ads themselves run on Bing, Microsoft's partner sites and other Microsoft properties. You create and pay for them inside your Microsoft Advertising account, not inside WordPress.

What WordPress needs is the tracking code. Microsoft calls it the Universal Event Tracking tag, or UET tag. It is a small JavaScript snippet that records page views and actions such as purchases or form submissions.

Some people searching this phrase want the opposite: to show Microsoft ads on their own site to earn money. That is a different program, covered near the end of this guide.

What do you need before you start?

You need a Microsoft Advertising account, a UET tag created in that account, and admin access to your WordPress site so you can add code or install a plugin.

Check this list first:

  • A Microsoft Advertising account with billing set up
  • Admin access to your WordPress dashboard
  • A clear goal to track, such as a thank-you page, a purchase or a phone click
  • A cookie consent tool if you have visitors in regions that require consent for ad tracking

Take a backup before adding code to theme files. If you use a header and footer plugin, the risk is lower, because the snippet lives in the database rather than the theme.

How do you create a UET tag in Microsoft Advertising?

Sign in to Microsoft Advertising, open the conversion tracking section, create a new UET tag, give it a name, then copy the tag code or tag ID it generates.

Microsoft's help article on how to create a UET tag lists the current steps. Menu names in the Microsoft Advertising interface change from time to time, so follow the help page if your screen looks different.

  1. Sign in to your Microsoft Advertising account
  2. Go to the conversion tracking area and open UET tags
  3. Click to create a new UET tag
  4. Name it after your site, for example the domain name
  5. Save and copy the tracking code or the numeric tag ID

You usually need only one UET tag per website. Multiple conversion goals can use the same tag.

How do you add the UET tag with the official plugin?

Install the Microsoft Advertising Universal Event Tracking (UET) plugin from the WordPress plugin directory, activate it, and enter your UET tag ID in its settings page.

This is the simplest route for most site owners, because you never touch theme files. The plugin is listed on WordPress.org as Microsoft Advertising Universal Event Tracking (UET).

  1. Go to Plugins > Add New in your dashboard
  2. Search for Microsoft Advertising Universal Event Tracking
  3. Click Install Now, then Activate
  4. Open the plugin's settings screen
  5. Paste your UET tag ID and save

Check the plugin page for its current compatibility and settings before installing. Plugin interfaces change, and the listing shows which WordPress version it was last tested with.

How do you add the UET tag with a code snippet plugin?

Install a header and footer code plugin such as WPCode, paste the full UET tag code into the site-wide header section, and save, so it loads on every page.

This method works for any tracking code, so it is useful if you also run Google Ads, Meta Pixel or other tags. Our guide on using the WPCode plugin walks through the interface.

  1. Install and activate WPCode or a similar header and footer plugin
  2. Open the plugin's Header & Footer screen
  3. Paste the complete UET tag code into the Header box
  4. Save the changes
  5. Clear any caching plugin so the new code appears

Microsoft recommends placing the tag in the head section of every page. Its help article on adding a UET tag to your website explains placement in detail.

For other ways to add scripts, see our guide on adding JavaScript to WordPress.

How do you add the UET tag through Google Tag Manager?

If your site already uses Google Tag Manager, add a new tag using the Microsoft Advertising UET template or a custom HTML tag, set it to fire on all pages, and publish the container.

This keeps all tracking in one place, which helps when several people manage marketing tags. You do not need to change WordPress again after the container is installed.

  1. Open your container in Google Tag Manager
  2. Create a new tag and search the template gallery for Microsoft Advertising UET, or use Custom HTML with the tag code
  3. Enter your UET tag ID if using the template
  4. Set the trigger to All Pages
  5. Preview the container, then publish it

If GTM is not on your site yet, follow our guide on adding Google Tag Manager to WordPress first.

Which installation method should you choose?

Use the official plugin for the quickest setup, a header code plugin if you manage several scripts, and Google Tag Manager if a marketing team already runs tags there.

MethodBest forNeeds code?Easy to remove?
Official UET pluginSingle-purpose setupNoYes, deactivate the plugin
Header code pluginSites with several tracking scriptsPaste onlyYes, delete the snippet
Google Tag ManagerTeams managing many tagsNo, template basedYes, pause the tag
Theme header.phpDevelopers using a child themeYesHarder, lost on theme updates without a child theme

Avoid installing the tag twice. If you add it with a plugin and through GTM, page views and conversions can double count.

How do you set up conversion goals for WordPress?

Create a conversion goal in Microsoft Advertising based on a destination URL, such as your thank-you page, or on a custom event, then link it to your UET tag.

A destination URL goal is the easiest choice. If your contact form redirects to a page like /thank-you/, the goal fires when a visitor reaches that URL.

For WooCommerce stores, the order received page works the same way. Revenue tracking needs the purchase value passed through a custom event, which some marketing plugins handle for you. Check each plugin's documentation for Microsoft Advertising support.

Our guide on tracking WooCommerce conversions with GA4 uses similar ideas if you also want analytics data.

How do you check that the UET tag is working?

Install the UET Tag Helper browser extension from Microsoft, visit your site, and confirm it detects your tag ID, then check the tag status in your Microsoft Advertising account.

The tag status in your account can take some time to update after the first visits, so do not panic if it does not show as active straight away.

If the tag is not detected, check these points:

  • Your caching plugin may still serve old pages, so clear it
  • A consent banner may block the tag until a visitor accepts cookies
  • A script optimization plugin may delay or combine the script
  • The snippet may have been pasted into the wrong box, such as the body instead of the header

In many regions, including the EU and UK, ad tracking tags such as UET need visitor consent before they set cookies, so connect the tag to your consent tool.

This is general information, not legal advice. Rules depend on where your visitors are and how you use the data.

Microsoft supports a consent mode for UET, which lets the tag respect a visitor's choice. Many WordPress consent plugins can block scripts until consent is given. The UK regulator's guidance on cookies and similar technologies is a clear overview of the rules.

Can you show Microsoft ads on your WordPress site to earn money?

Microsoft runs a publisher program called pubCenter for showing its ads on websites, but access has been limited, so most WordPress publishers still use AdSense or an ad network instead.

Availability of pubCenter for small publishers has changed over time and by country. Check Microsoft's own pubCenter page for current eligibility before planning around it.

If you are approved, the program provides ad code that you add in the same way as any script, using a header code plugin or ad management plugin. For the more common route, see our guide on getting approved for AdSense with WordPress.

Frequently asked questions

Is Bing Ads the same as Microsoft Advertising?

Yes. Microsoft renamed Bing Ads to Microsoft Advertising in 2019. The platform still serves ads on Bing search results, plus other Microsoft properties and partner sites, and the tracking code is called the UET tag.

Do I need a plugin to add the UET tag?

No. You can paste the tag into a child theme's header file or use Google Tag Manager. A plugin is simply the easiest option for most people because it survives theme updates and needs no code editing.

Can I use one UET tag for several conversion goals?

Yes. One UET tag per website is normal. You create several conversion goals in Microsoft Advertising, such as form leads and purchases, and they all rely on the same tag on your pages.

Why is my UET tag status not active?

The status can take time to update after the first visits. If it stays inactive, clear your cache, check that a consent banner or script optimization plugin is not blocking it, and confirm the tag with the UET Tag Helper extension.

Can I import my Google Ads campaigns into Microsoft Advertising?

Microsoft Advertising offers an import tool for Google Ads campaigns. Conversion tracking does not transfer automatically, though, so you still need to install the UET tag on your WordPress site and set up goals.

Sources

  1. How to create a UET tag Microsoft Advertising Help
  2. How do I add a UET tag to my website? Microsoft Advertising Help
  3. Microsoft Advertising Universal Event Tracking (UET) WordPress.org Plugins
  4. Cookies and similar technologies Information Commissioner's Office
  5. Microsoft pubCenter Wikipedia

Is your product missing, or something out of date?

Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.

About the editors

Written and checked byWPLegible Editorial Team Independent WordPress reviews and guides

Researched from the primary sources listed above and checked against our editorial rules before publishing.