UTM parameters for Facebook and Meta ads
Open the free builder with this page's values prefilled, then enter your own landing page and campaign name. Nothing saved.
Open the prefilled UTM builderCopy the parameter template
utm_source=facebook&utm_medium=paid_social&utm_campaign={{campaign.name}}&utm_content={{ad.name}}&utm_term={{adset.name}}Meta dynamic URL parameters
| Parameter | Value Meta can insert |
|---|---|
| {{campaign.name}} / {{campaign.id}} | Campaign name or ID |
| {{adset.name}} / {{adset.id}} | Ad set name or ID |
| {{ad.name}} / {{ad.id}} | Ad name or ID |
| {{site_source_name}} | Short code for the site where the click happened |
| {{placement}} | Ad placement |
A practical naming convention
- utm_source: use
facebookfor all Meta ads, or{{site_source_name}}when you want Meta's site code in reports. - utm_medium: use
paid_socialfor ads. Keep the platform in source, not medium. - utm_campaign:
{{campaign.name}}if your Ads Manager names are clean; IDs are more stable when names may change. - utm_content and utm_term: ad and ad set names help compare creative and audiences.
Organic posts
For a normal page post, add a static tag such as utm_source=facebook&utm_medium=social&utm_campaign=post_topic. Dynamic parameters are for ads in Ads Manager.
Test the ad URL
Use the ad preview and confirm the final page receives values, not literal curly-brace text. Meta may add its own click identifier as well.
Questions and answers
Where do I add UTMs in Meta Ads Manager?
Use the URL parameters field in the ad's tracking settings. Enter the query string without a leading question mark.
Should utm_medium be facebook?
No. Put facebook in utm_source and the type of link, such as paid_social, in utm_medium.
Why do I see {{campaign.name}} in a report?
The link was used outside a supported Meta ad parameter field, or the parameter was mistyped. Use the URL parameters field and test the preview.
Can I use the same template for Instagram ads?
Yes, for Instagram ads managed in Meta Ads Manager. Use {{site_source_name}} if you want the site code in your source dimension.
Names or IDs?
Names are readable; IDs are stable after renaming. A common compromise is utm_campaign={{campaign.name}} plus utm_id={{campaign.id}}.
Does fbclid replace UTMs?
No. A platform click ID is separate from UTM tags, and other analytics tools may not use it for campaign names.
Sources
Related tools and guides
UTM presets by channel
All free Countnest tools · Plain-text summary for AI assistants
30-day free trial, no card required. Then from $14 a month. Cancel anytime.
Start free for 30 days