Put Facebook UTM parameters in the ad’s URL parameters field, not in the website URL, and fill them with Meta’s dynamic macros so every ad tags itself. Use a social source, a medium that starts with "paid" so GA4 files the traffic under Paid Social, and campaign, ad set and ad names or IDs. Set them before publishing: name macros freeze at first publish, and changing tags later can send ads back into review and learning.
- URL parameters sit under Tracking at ad level and override duplicate keys in the website URL.
- Meta’s macros: campaign, ad set and ad names and IDs, placement, site source name and media type.
- GA4 Paid Social needs a social source and a medium matching cp, ppc, retargeting or paid-anything.
- A copyable template is below; paste it once per ad, or set it in your builder.
Where Facebook UTM parameters go
Add UTM parameters to a Meta ad
Meta’s URL parameters field, at ad level, in Ads Manager.
- 01
Open the ad
Create a new ad or open a draft, and complete the steps until you reach the Tracking section.
- 02
Find URL parameters
Under Tracking, use the URL parameters field, or click Build a URL parameter to add keys one by one.
- 03
Paste the template
Enter key=value pairs separated by &. Parameters here are appended to the website URL, and win over any duplicate key already in it.
- 04
Check the preview URL
Confirm the final URL shows every key once and the macros in double curly brackets.
- 05
Publish
Publish the ad. Name-based values are captured at this moment.
Two details from Meta’s help pages are easy to miss. Parameters added in Ads Manager override ones set elsewhere, such as Instagram’s default URL parameters. And they only apply to the first page the click lands on; if someone leaves and comes back later on their own, the tags are gone.
Every dynamic macro Meta supports
Meta dynamic URL parameters
| Returns | Use it for | |
|---|---|---|
| {{campaign.name}} | The campaign name at first publish | utm_campaign |
| {{adset.name}} | The ad set name at first publish | utm_term (audience or market) |
| {{ad.name}} | The ad name at first publish | utm_content (creative) |
| {{campaign.id}} | The campaign ID | utm_id, for joins that survive renames |
| {{adset.id}} and {{ad.id}} | Ad set and ad IDs | Custom keys for ad-level joins |
| {{placement}} | The placement the click came from | A custom key such as placement |
| {{site_source_name}} | fb, ig, msg (Messenger), an (Audience Network) or th (Threads) | utm_source or a custom key |
| {{media_type}} | The media type, Advantage+ catalogue ads only | Catalogue reporting |
Meta stores name values in a snapshot when the ad is first published. You can rename the campaign later, but the URL keeps the original name; to change the value you have to publish a new campaign, ad set or ad. Dynamic parameters are available across Meta’s objectives, with conditions on some performance goals; app campaigns put them on the deferred deep link instead, and they aren’t supported for collection ads on Instagram placements.
The copyable UTM template
Paste this into the URL parameters field. It keeps one source for Facebook and Instagram so GA4 reports stay tidy:
utm_source=facebook&utm_medium=paid_social&utm_campaign={{campaign.name}}&utm_term={{adset.name}}&utm_content={{ad.name}}&utm_id={{campaign.id}}
If you need Facebook and Instagram split in GA4, use the site source macro instead:
utm_source={{site_source_name}}&utm_medium=paid_social&utm_campaign={{campaign.name}}&utm_term={{adset.name}}&utm_content={{ad.name}}&utm_id={{campaign.id}}
What each key does
| Value | Why | |
|---|---|---|
| utm_source | facebook, or {{site_source_name}} | Must be on GA4’s social sites list for Paid Social |
| utm_medium | paid_social | Matches GA4’s paid pattern; never plain "social" |
| utm_campaign | {{campaign.name}} | Readable in GA4 campaign reports |
| utm_term | {{adset.name}} | Audience or market from your ad set name |
| utm_content | {{ad.name}} | Creative, language and version from your ad name |
| utm_id | {{campaign.id}} | Stable join key when names change |
Template B has one trade-off: GA4’s list of social sources includes fb and ig, but not msg, an or th, so Messenger, Audience Network and Threads clicks fall into Paid Other. If those placements matter to the client, use Template A and read the platform split from Ads Manager. If you set no UTMs at all, Meta says it may add a source of Facebook or Instagram, a medium of "paid" and the IDs automatically, but never your names. The Snapchat equivalent is in Snapchat UTM parameters.
Make GA4 call it Paid Social
GA4’s default channel group puts a session in Paid Social when the source matches its list of social sites and the medium matches the pattern cp, ppc, retargeting or anything starting with "paid". It puts it in Organic Social when the source is social or the medium is social, social-network, social-media, sm or similar. So the medium decides most of it:
utm_medium values and the GA4 channel they land in (source = facebook)
| GA4 channel | Verdict | |
|---|---|---|
| paid_social | Paid Social | Use it |
| paid | Paid Social | Fine; same as Meta’s automatic value |
| cpc | Paid Social | Works, but reads like search |
| social | Organic Social | Wrong: paid traffic counted as organic |
| social_paid | Organic Social | Wrong: doesn’t start with "paid" |
| facebook_ads | Organic Social | Wrong: no paid pattern |
GA4’s channel rules ignore case, but report values don’t: "facebook" and "Facebook" are two rows. Keep every value lowercase. If the traffic still lands in Unassigned, the cause is usually upstream of UTMs; see why GA4 shows paid social as Unassigned.
Changing tags on live ads
Meta lets you change URL parameters after publishing, but its own help page warns this may cause the ad set to re-enter the learning phase. Any change to an ad’s creative, including links, also triggers a new ad review, and once an edit is published Meta can’t separate the metrics from before and after it. In practice, a URL change on a live ad is treated like a new version of the creative.
- Batch it. Change every ad that needs it in one go, early in the week, not on a peak day.
- Expect review. Ads sit in review again; Meta says most ads are reviewed within 24 hours, sometimes longer.
- Renames don’t fix UTMs. Name macros keep the original names. If the names were wrong, new ads are the only fix in the URL.
- Sometimes fix it in GA4 instead. If only the labels are messy, a custom channel group or a lookup in your report is cheaper than re-tagging 80 live ads.
Where this goes wrong
- UTMs in both places. Half the ads have tags in the website URL, half in the field, with different values. Use the field only.
- utm_medium=social. The most common reason paid Meta traffic shows up as Organic Social.
- Spaces in names. Meta encodes them as %20 in the URL. Use underscores in campaign, ad set and ad names.
- Lead forms with no tracking. Instant forms have their own tracking parameters that pass campaign details to your CRM. See Facebook lead ads to CRM.
- Nobody checks the live URL. Click one ad per campaign from the preview and read the landing URL in the browser before launch, as part of your paid media tracking QA.
Do it faster with Whathead
Whathead is our product. Two jobs take longest with UTMs: finding the ads that are wrong, and fixing them without a day of clicking. The Whathead Google Sheets add-on has creative fields for each ad’s URL tags, with the UTM source, medium, campaign, content and term already parsed into columns, so one query across every account shows which ads break the template. With the Whathead MCP server connected to Claude or ChatGPT:
- "List every active ad in this Meta ad account whose URL tags are missing utm_medium, or use a medium GA4 won’t classify as Paid Social. Group them by campaign."
- "For those ads, set the URL parameters to our template, but show me the dry run and don’t publish."
The first prompt only reads. For the second, Whathead shows a dry-run preview with the exact change per ad before anything is sent; after you confirm, Meta reviews the edited ads as usual. In the Whathead builder, bulk edit can also point many ads at a new website URL in one change.
Facebook UTM parameters: common questions
How do I add UTM parameters to Facebook ads?
In Ads Manager, open the ad, go to Tracking and paste your parameters into the URL parameters field, or use Build a URL parameter. They are appended to the website URL when the ad is clicked.
What are Facebook dynamic URL parameters?
Macros in double curly brackets, such as {{campaign.name}}, {{adset.name}}, {{ad.name}}, the matching IDs, {{placement}} and {{site_source_name}}, that Meta fills in for each click.
What should utm_medium be for Facebook ads?
Something GA4 matches as paid, such as paid_social or paid, with a social source such as facebook. Avoid "social" on its own, which GA4 classifies as Organic Social.
Why is my Facebook ad traffic showing as Organic Social in GA4?
Usually because utm_medium is "social" or another value that doesn’t match GA4’s paid pattern. Change the medium to one starting with "paid" on new ads.
What is fbclid?
A click ID Meta adds to the URL when someone clicks an ad on Facebook or Instagram. It helps Meta match conversions to clicks; it is not a UTM and GA4 doesn’t use it for channels.
Sources
- Meta Business Help Centre: Add URL parameters to your ads, Dynamic URL parameters, About ads in review, Edit ads
- Google Analytics Help: Default channel group, Collect campaign data with custom URLs
- All checked 19 November 2026.
Written by Ahmed Shahin, founder of Whathead. Last reviewed 19 November 2026.
Audit every ad’s UTMs in one sheet
Pull URL tags and parsed UTM fields for every Meta ad into Google Sheets, then fix the ones that break your template.



