Bing / Microsoft Ads tracking parameters

Microsoft Advertising (still searched as Bing Ads / Bing tracking template) uses ValueTrack-style placeholders — often PascalCase like {CampaignId} and {MatchType}.

Paste-ready string: UTMs → Microsoft Ads. Build or merge in the parameter builder. Platform hub: Microsoft Ads.

Open in builder Microsoft Ads platform hub →
Example template
{lpurl}?utm_source=bing&utm_medium=cpc&utm_campaign={CampaignId}&utm_term={Keyword}&utm_content={AdId}
  • Many tokens are PascalCase ({CampaignId}, {MatchType}) — prefer documented casing.
  • {msclkid} is the Microsoft click ID when auto-tagging is on.

Bing / Microsoft Ads tracking parameters

Parameter reference

Parameter Returns
{keyword} Keyword that triggered ad
{QueryString} Actual search query
{MatchType} Serving match type: be, bp, e, p
{BidMatchType} Bid match type: bb (broad), bp (phrase), be (exact)
{Network} Network: o (owned Bing), s (syndicated), a (audience)
{Device} Device: m (mobile), t (tablet), c (computer)
{DeviceOs} OS of device
{Campaign} Campaign name
{AdGroup} Ad group name
{AdId} Ad ID
{CriterionId} Keyword ID
{OrderItemId} Campaign ID (legacy alias)
{CampaignId} Campaign ID
{Placement} Placement domain
{AdType} Ad format
{ifmobile:x} Returns x if mobile
{ifnotmobile:x} Returns x if not mobile
{ignore} Ignores tracking redirect
{msclkid} Microsoft auto-tag click ID

How to install a Bing tracking template

  1. Open Microsoft Advertising → account or campaign URL options / tracking settings.
  2. Paste a template that starts with {lpurl}? (or put query keys only in Final URL suffix).
  3. Confirm auto-tagging if you need msclkid for conversions.

Google vs Bing tokens

Do not paste a Google HubSpot hsa_* string unchanged — casing and token names differ ({campaignid} vs {CampaignId}). Keep utm_source=bing for GA4 channel rules.

Names vs IDs

Readable reports often use {Campaign} / {AdGroup} / {Keyword}. API joins prefer {CampaignId} / {AdId}.

FAQ

Where do I paste a Bing tracking template?

In Microsoft Advertising URL options: Tracking template for {lpurl} strings, or Final URL suffix for query keys only. Start from the Microsoft UTM recipe.

Is {OrderItemId} the campaign ID?

Historically yes in many Bing templates. Prefer {CampaignId} in new setups for clarity.

Do I need {msclkid} in the template?

Usually no — Microsoft can append it via auto-tagging. Include it only if your docs explicitly require it in the template string.

Need ready-made stacks for this network? Open the platform hub or build a template.