Meta Ads

Facebook UTM Parameters: Dynamic Macros, a GA4-Safe Template and Live-Ad Rules

Where Facebook UTM parameters go, every dynamic macro Meta supports, a copyable template that GA4 classifies as Paid Social, and what changing tags on live ads really costs.

Cover: Tags that land in Paid Social. An Ads Manager URL parameters field with curly-brace macros expanding into a clean GA4 row labelled Paid Social.

Where Facebook UTM parameters go

How to

Add UTM parameters to a Meta ad

Meta’s URL parameters field, at ad level, in Ads Manager.

  1. 01

    Open the ad

    Create a new ad or open a draft, and complete the steps until you reach the Tracking section.

  2. 02

    Find URL parameters

    Under Tracking, use the URL parameters field, or click Build a URL parameter to add keys one by one.

  3. 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.

  4. 04

    Check the preview URL

    Confirm the final URL shows every key once and the macros in double curly brackets.

  5. 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

Checked 19 Nov 2026

Meta dynamic URL parameters

 ReturnsUse it for
{{campaign.name}}The campaign name at first publishutm_campaign
{{adset.name}}The ad set name at first publishutm_term (audience or market)
{{ad.name}}The ad name at first publishutm_content (creative)
{{campaign.id}}The campaign IDutm_id, for joins that survive renames
{{adset.id}} and {{ad.id}}Ad set and ad IDsCustom keys for ad-level joins
{{placement}}The placement the click came fromA 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 onlyCatalogue 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:

If you need Facebook and Instagram split in GA4, use the site source macro instead:

Template

What each key does

 ValueWhy
utm_sourcefacebook, or {{site_source_name}}Must be on GA4’s social sites list for Paid Social
utm_mediumpaid_socialMatches 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:

Checked 19 Nov 2026

utm_medium values and the GA4 channel they land in (source = facebook)

 GA4 channelVerdict
paid_socialPaid SocialUse it
paidPaid SocialFine; same as Meta’s automatic value
cpcPaid SocialWorks, but reads like search
socialOrganic SocialWrong: paid traffic counted as organic
social_paidOrganic SocialWrong: doesn’t start with "paid"
facebook_adsOrganic SocialWrong: 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

Written by Ahmed Shahin, founder of Whathead. Last reviewed 19 November 2026.