Free tool

Meta Ads UTM parameters

One string for every Facebook and Instagram ad. Meta's dynamic parameters fill in the campaign, ad set and ad on each click, so no ad is tagged by hand.

Values

utm_source

Names read well in reports but are fixed when the ad is published; IDs never change. With names, utm_id carries the campaign ID as well. Per placement, utm_source becomes fb, ig, an or msg, so Instagram stays separate from Facebook.

URL parameters to paste

utm_source={{site_source_name}}&utm_medium=paid&utm_campaign={{campaign.name}}&utm_term={{adset.name}}&utm_content={{ad.name}}&utm_id={{campaign.id}}

Where to paste it

  1. In Ads Manager, open the ad (not the campaign or ad set).
  2. In the Tracking section, paste the string into URL parameters.
  3. Publish. To tag existing ads, select them and edit URL parameters in one go.

What a click looks like (sample values)

https://yourstore.com/products/example?utm_source=ig&utm_medium=paid&utm_campaign=spring-sale&utm_term=lookalike-us&utm_content=video-a&utm_id=120210000000000001

See which ad drove each order

Zalify Attribution reads these tags on every visit, joins them to your Shopify orders and drills down from channel to campaign, ad set and ad, with Meta, Google, TikTok and email in one report.

See Zalify Attribution

What each parameter does

utm_source={{site_source_name}}

Becomes fb, ig, an (Audience Network) or msg (Messenger), so Instagram and Facebook stay separate. Choose facebook to keep one source.

utm_medium=paid

Marks the visit as paid. GA4's default channel rules put paid traffic from a social source in Paid Social.

utm_campaign · utm_term · utm_content

Campaign, ad set and ad, in that order on every platform, so the levels line up when you compare Meta with TikTok or Google.

utm_id={{campaign.id}}

Meta fills in names when the ad is published and doesn't update them after a rename. The ID keeps the campaign identifiable.

Questions

Where do I add UTM parameters in Facebook Ads Manager?

At the ad level, in the URL parameters field of the Tracking section. Campaigns and ad sets have no URL field; the ad's parameters are added to its website URL on every click.

Do Meta's dynamic parameters work on Instagram ads?

Yes. The same string works on every placement, and {{site_source_name}} says which one the click came from: fb, ig, an or msg.

Why do my Meta ads still show as direct or referral?

Usually the ad has no URL parameters, often after duplicating an old ad, or a redirect on the landing page drops the query string. Click the ad's link and check the address bar on arrival.