virling Pricing Self-host Demo Changelog Agencies GitHub Start free trial
blog / 2026-11-24

Microsoft Ads revenue tracking: which campaign brings customers

By Devendra Variya, co-founder of Virling. Published 2026-11-24, updated 2026-11-30.

Microsoft Ads revenue tracking means joining each payment on your site to the Microsoft Advertising click that brought the buyer. Add utm_source=bing, utm_medium=cpc and a utm_campaign to the final URL of your ads, add the Virling script to your site, and pass the visitor ID into checkout. Virling counts the click as Paid instead of organic Bing and credits the payment to it, so the Campaign tab shows revenue per campaign.

Start free trial

This post is about paid clicks. For free clicks from Bing results, see Bing revenue tracking.

What the msclkid is, and what auto-tagging does

Microsoft’s documentation describes the MSCLKID as “a 32-character GUID that is unique for each ad click”. When auto-tagging of it is enabled, it is appended to the landing page URL on the click, as in www.contoso.com/?msclkid={msclkid}. The setting is on by default when a new account is created, and you can turn it off. Adding or updating a conversion goal of one of the types the page lists, such as a destination URL or an event goal, turns it on again (source: Microsoft, AccountProperty). For how a click ID differs from a tag, see msclkid and other click IDs vs UTM tags.

The ID is there for Microsoft’s own conversion tracking. It does not name your campaign in a form you can read, and Virling’s channel rules do not use it. Leave it on for Microsoft and add UTM tags for Virling. The two sit side by side in the same URL.

Tag the final URL

Put the tags on the final URL of each ad, or in the final URL suffix so every ad below that level gets them:

utm_source=bing&utm_medium=cpc&utm_campaign={CampaignID}

Microsoft says the suffix holds parameters that are appended to the end of your landing page URL, that it cannot start with ?, & or #, and that a suffix on a lower level, such as an ad, overrides one set higher up, such as a campaign. Its example tracking template uses the {CampaignID} parameter (source: Microsoft, URL tracking with Upgraded URLs). A typed name such as brand-search is easier to read in a report. Pick one style and keep it, because a campaign tagged two ways becomes two rows. The free UTM builder makes the tagged URLs for you, and the Microsoft Ads tracking template and UTM builder writes the suffix.

Check Microsoft’s automatic UTM tags

Separately from the msclkid, Microsoft Advertising can add UTM tags by itself. The account setting has three states: off, add tags and keep the ones you wrote, or add tags and replace the ones you wrote (source: Microsoft, AutoTagType). If you write your own tags, keep it off or on the keep option. If you rely on the automatic ones, click a live ad of each campaign type and read utm_medium in the address bar, because only the values in the next section count as Paid.

Why utm_medium=cpc decides the channel

Every session gets one channel from its first pageview, and the first matching rule wins:

  1. The medium. cpc, ppc, paid, paidsearch, paid_social or paidsocial, in any case, is Paid.
  2. The referrer. bing.com is a known search host, so a click from it without a paid or email medium is Organic search.
  3. The source tag, when there is no referrer. utm_source=bing alone is also Organic search.

So an ad click that arrives from bing.com with no tags is counted with your free Bing traffic, and adding only utm_source=bing does not move it. utm_medium=cpc does, because the medium is checked before the referrer. Other mediums, such as cpm, are not on the list. See how channels are decided.

Link checkout to the visit

The click is half of the join. Your payment provider must also receive the visitor ID, so the payment can be matched to the visit. The steps differ per provider; see link checkout to visits, or find yours under integrations.

Under the default model the whole payment is credited to the latest visit in the last 90 days that was not Direct. A buyer who clicks your ad on Monday and types your address on Thursday is still credited to the ad. A buyer who comes back on Thursday through a tagged newsletter is credited to Email. See the attribution model.

Read payments per campaign

  1. On the Channels card, click Paid. The page filters to visits with a paid medium, from Microsoft Ads and any other platform you tag the same way.
  2. Open the Campaign tab. Each utm_campaign is a row with visitors, revenue and revenue per visitor. Starting typed names with bing- keeps them apart from your other ads.
  3. Open a payment from the Payments page to see the visits before it, with the credited one marked.
  4. Check Time to pay before you pause a campaign, since buyers often pay days after the click.

An example: four campaigns, one month

Example data, made up to show the method: an imaginary scheduling app sells one $180 yearly plan and runs four Microsoft Ads campaigns, each built around one group of keywords. Spend is read from Microsoft Advertising; paying customers and revenue come from the payments Virling credited to each utm_campaign.

CampaignSpendPaying customersRevenueCost per customer
bing-brand$3609$1,620$40
bing-scheduling-software$1,4004$720$350
bing-appointment-booking-app$9107$1,260$130
bing-free-scheduling-tool$6301$180$630
All four$3,30021$3,780about $157

Cut the free scheduling tool campaign first: it spent $630 to win one $180 customer, as people searching for free rarely pay. The scheduling software campaign is next in line, returning $720 on $1,400, so move part of its budget to the appointment booking app campaign, which brought 7 customers at $130 each. Brand search looks best at $40 a customer, but many of those buyers already knew the name. Work out your own cost per customer with the CAC calculator, and tag every campaign the same way with the Microsoft Ads tracking template and UTM builder.

If you run the same ads on Google, tag them with utm_source=google and compare the two by revenue per visitor. Google Ads revenue tracking has that setup.

What to check if the numbers look off

  • Ad revenue shows as Organic search. The landing URL has no utm_medium=cpc. Click your own ad and read the address bar.
  • Ad revenue shows as Direct. A redirect dropped the tags before your page; see UTM parameters lost after redirect.
  • Your campaign names are missing. Automatic UTM tagging is set to replace, or a suffix on a lower level overrides yours.
  • Revenue shows as Unattributed. The visitor ID did not reach checkout. See Unattributed revenue.

Frequently asked questions

How do I track revenue from Microsoft Ads?

Add utm_source=bing, utm_medium=cpc and a utm_campaign to the final URL of your ads, add the tracking script to your site and pass the visitor ID into checkout. Each payment is then credited to a visit, and the Campaign tab shows revenue per campaign.

What is the msclkid?

It is the Microsoft Click ID. Microsoft’s documentation describes it as a 32-character GUID that is unique for each ad click, appended to the landing page URL when auto-tagging of the MSCLKID is enabled.

Does Virling read the msclkid?

No. The channel rules use utm_medium, the referrer, utm_source and ref. Leave auto-tagging on for Microsoft’s own conversion tracking, and add UTM tags so the visit is counted as Paid with a campaign name.

Why do my Microsoft Ads clicks show as Organic search?

The landing URL has no paid utm_medium, so the click is sorted by its referrer, and bing.com is a known search host. Add utm_medium=cpc to the final URL or the final URL suffix. The medium is checked before the referrer, so the next click counts as Paid.

Should I use Microsoft’s automatic UTM tags or my own?

Either works if the click lands with utm_medium=cpc and a utm_campaign you recognise. If you use your own, make sure automatic tagging is off or set to keep existing tags, because the replace option overwrites the UTM tags on your final URL.

Do I need to connect my Microsoft Ads account?

No. The setup in this post uses the tags on the landing URL and your payment provider. Read what each campaign cost in Microsoft Advertising and compare it with the revenue per campaign.

See which Microsoft Ads campaign pays

Virling is open source under AGPL. Self-host it free, or use the hosted version with a 14-day free trial. It connects to Stripe, Paddle, Shopify, WooCommerce, Polar, LemonSqueezy, Dodo, Creem and RevenueCat.

Start free trial See the demo