Facebook and Meta Ads UTM builder

A string for the URL parameters field in Meta Ads Manager, for Facebook and Instagram ads, with Meta filling in the campaign and ad on every click.

Standard parameters
utm_sourceYour own
utm_mediumYour own
utm_campaign
{{campaign.name}}
utm_id
{{campaign.id}}
utm_content
{{ad.name}}
utm_source=facebook&utm_medium=paid_social&utm_campaign={{campaign.name}}&utm_id={{campaign.id}}&utm_content={{ad.name}}

An example click: utm_source=facebook&utm_medium=paid_social&utm_campaign=Spring+Sale&utm_id=120214500871230456&utm_content=Product+demo

What each part does

Each parameter, what it holds, and who fills it in. With these values, GA4 files the clicks as Paid Social.

ParameterWhat it holdsFilled in by
utm_sourceWhere the click came fromYou
utm_mediumThe kind of trafficYou
utm_campaignThe campaign's nameMeta, as {{campaign.name}}
utm_idThe campaign IDMeta, as {{campaign.id}}
utm_contentThe ad's nameMeta, as {{ad.name}}
numbat_groupThe ad set's nameNumbat onlyMeta, as {{adset.name}}
numbat_group_idThe ad set IDNumbat onlyMeta, as {{adset.id}}
numbat_ad_idThe ad IDNumbat onlyMeta, as {{ad.id}}
numbat_placementWhere the ad showedNumbat onlyMeta, as {{placement}}

Checked in November 2026 against Meta Ads's own docs and Google's GA4 channel rules and source list.

Things to know on Meta

Meta keeps URL parameters on each ad. Add the string as you create each ad, or select several ads in Ads Manager and edit them together.

Facebook, Instagram, Messenger and Audience Network ads all use the same string. Every click arrives with utm_source=facebook, whichever app it came from.

Where to paste it

  1. In Ads Manager, open the ad, or create one.
  2. Scroll to the Tracking section.
  3. Paste the string into URL parameters, then publish.
  4. Repeat for each ad.

The full steps, with screenshots, are in the Meta Ads help doc.

Questions

Why facebook and not meta?

GA4 sorts paid traffic by checking the source against Google's list of social sites. facebook is on that list and meta is not, so meta lands in Paid Other instead of Paid Social.

Does this cover Instagram?

Yes. The same string works on every placement. Instagram clicks arrive with utm_source=facebook too, so they stay in Paid Social.

Do I add it to every ad?

Yes. Meta keeps URL parameters on each ad, so add the string as you create or edit each one.

See which clicks were worth paying for

Numbat ranks your campaigns by the visitors who engage deeply with your content, not by the clicks they bring.

Start free trial