Products SEO & GEO Agent Paid Ads Agent Website Agent Conversion Agent
How it works Pricing FAQ Blog Book a call

Facebook ads UTM parameters: see which ad brought each lead

Updated · 6 min read

Short answer In Meta Ads Manager, open the ad's Tracking section and paste into URL parameters: utm_source=facebook&utm_medium=paid&utm_campaign={{campaign.name}}&utm_content={{ad.name}}. Meta fills in the real names automatically, so Google Analytics shows which campaign and ad brought each visit. Instant Form leads never reach your site; their lead file already lists the ad name.

Want help applying this to your business? Talk it through on a free 30-minute call.

Book a call

The UTM string to paste into every Facebook and Instagram ad

UTM parameters are labels at the end of your ad's link. Your analytics reads them and files each visit under the campaign and ad that sent it. You add them per ad.

StepIn Meta Ads Manager
1Create a new ad, or open a draft
2Go through the setup until you reach Tracking
3Paste into the URL parameters field, or click Build a URL parameter
4Click Apply

A string that works for most small businesses:

utm_source=facebook&utm_medium=paid&utm_campaign={{campaign.name}}&utm_content={{ad.name}}

PartValueWhat Google Analytics shows
utm_sourcefacebookWhere the visit came from
utm_mediumpaidThe kind of traffic; "paid" matches the value Meta adds on its own
utm_campaign{{campaign.name}}Your campaign's name, filled in by Meta
utm_content{{ad.name}}Your ad's name, filled in by Meta

Google says "you should always use utm_source, utm_medium, and utm_campaign," and that "Parameter values are case sensitive" (Analytics Help: Collect campaign data with custom URLs). So pick lowercase and stick to it: "Facebook" and "facebook" become two sources.

Which dynamic parameters does Meta offer?

Nine placeholders in double curly brackets that Meta swaps for real values (Meta Business Help: Specifications for dynamic URL parameters):

PlaceholderFills in
{{campaign.name}}, {{adset.name}}, {{ad.name}}The names, as they were at first publish
{{campaign.id}}, {{adset.id}}, {{ad.id}}The ID numbers
{{placement}}Where it showed, such as instagram_stories or facebook_feed
{{site_source_name}}The app: fb, ig, msg (Messenger), an (Audience Network), th (Threads)
{{media_type}}Advantage+ catalog ads only

Limits Meta lists: dynamic parameters don't work for collection-format ads on Instagram placements. For App promotion campaigns there is no URL parameters field; you add them to the end of the deferred deep link.

Why does Google Analytics still show my old ad name?

Because Meta freezes names when the ad first goes live:

"Campaign, ad set or ad names can still be changed, but the parameters will refer to the original names." (Meta Business Help: Specifications for dynamic URL parameters)

For a new value, Meta says to publish a new campaign, ad set or ad. Editing the URL parameters on a live ad is allowed, but "this may cause your ad set to re-enter the learning phase" (same page). So name ads well before you publish.

How to name ads so the report reads itself

With utm_content={{ad.name}}, your ad names become your report. "Ad 3 copy" tells you nothing; a name like spring-tuneup_video_v2 tells you the offer, the format and the version.

  • Lowercase, hyphens, no spaces. Google Analytics counts "Video" and "video" as two values, and Meta sends spaces as %20: "Prospecting 2026" becomes Prospecting%202026 in the link (Meta's own example).
  • One name per ad. Two ads named the same merge into one row.
  • Duplicating? Rename the copy before it publishes, or it carries the old name for life. See how to duplicate a Facebook ad.

UTM parameters for Instagram ads

Same field, same string. One Meta ad often runs on Facebook and Instagram at once, so a fixed utm_source=facebook hides the split. To see it, use utm_source={{site_source_name}}, which arrives as fb or ig.

This still works with Google Analytics' Meta cost import. It takes one source for all Meta traffic or one per platform, typed into its Facebook source, Instagram source and other fields, and those values must "align with the utm_source and utm_medium parameter values" in your links (Analytics Help: Import campaign data from Meta Ads). With {{site_source_name}}, enter fb, ig, an, msg and th.

Lead ads with an Instant Form collect details "without requiring them to leave Facebook or Instagram" (Meta Business Help: About lead ads with instant form). No visit reaches your site, so UTM parameters never fire.

You don't need them. The lead file you download from Ads Manager or Meta Business Suite includes ad_name, adset_name, campaign_name, form_name, is_organic and platform for every lead (Meta Business Help: Information included when you download your leads data). Three catches:

  • Download from Ads Manager or the Instant forms page. Leads Center's CSV is limited to date, name, email, phone, stage, source and owner.
  • Leads expire. Meta keeps lead information for 90 days.
  • Blank ad columns mean an organic lead, an ad preview, or that you lack advertiser access on the ad account (Meta Business Help: Download or retrieve your leads data).

If leads flow into a CRM, add tracking parameters in the form's Settings, such as utm_source with the value Facebook. People filling in the form don't see them (Meta Business Help: Set up tracking parameters).

Adding UTM parameters to many existing ads at once

Use the spreadsheet. Export the ads, fill the URL Tags column (format Key1=value1&key2=value2, per Meta Business Help: Columns in the import/export template), then import. Keep the Ad ID column filled; Meta requires it to edit an ad rather than create one. The steps are in Meta Ads bulk upload; editing in Ads Manager itself is in Facebook ads bulk edit. Each edited ad set may restart learning, so do it once, not weekly.

Where to see it in Google Analytics

Open Reports, Acquisition, Traffic acquisition (Analytics Help: Traffic acquisition report). Switch the main column to Session campaign, then click the + next to it and add Session manual ad content as a second column; that dimension holds utm_content (Analytics Help: Traffic-source dimensions). Add your lead or booking key event as a column.

To see cost next to results, link Meta under Admin, Product links, then create the import under Data collection and modification, Data import. It needs the Editor role. Reading the paths to a lead: GA4 attribution reports.

Example

Sample cases: the numbers are made up to show how it works.

A heating company (US dollars)

It runs a furnace tune-up campaign at $30 a day with three ads: tuneup_video_v1, tuneup_photo_v1, tuneup_reviews_v1. After a month, Session manual ad content shows 9 booked calls from the video, 2 from the photo, none from reviews. It pauses the reviews ad and makes tuneup_video_v2.

A dental clinic using Instant Forms (Canadian dollars)

It spends C$600 a month on a lead ad and gets 40 leads. The Ads Manager lead file's ad_name column shows 30 from the cleaning-offer ad and 10 from the whitening ad. Its CRM records which became patients. No UTM needed.

An online plant shop (US dollars)

It uses utm_source={{site_source_name}}. From one $1,000 ad, Google Analytics shows ig with twice the sales of fb, so the next creative is made for Instagram first.

FAQ

Does Meta add UTM parameters automatically?

Sometimes. Since January 1, 2024, Meta says it may add source (Facebook or Instagram), medium (paid), and the ad, ad set and campaign IDs. Not names, so add your own string to read reports by ad name.

Why does Google Analytics show (not set) for my campaign?

Google says "Missing UTM parameters will result in (not set) values being present in reporting." Check that the ad has utm_campaign and that the parameter field wasn't left empty.

Do UTM parameters work on a boosted or existing post?

Yes, on the ad. Meta says they apply only to clicks on the ad, not to clicks from people who see the post organically.

What if the visitor comes back later?

The tag covers that first visit only. Meta notes that if someone leaves and returns to your page organically later, the URL parameter is lost.

Different for you?

Keep learning

NextFacebook learning phase reset: which edits restart itWhich Facebook ad edits reset the learning phase, per Meta's significant-edit list: targeting, creative, new ads, long pauses, big budgets. And what's safe.

Ask us one question

One line is enough. We reply by email.

Sources

  1. Meta Business Help: Add URL parameters to your Meta ads in Meta Ads Manager
  2. Meta Business Help: Specifications for dynamic URL parameters in Meta Ads Manager
  3. Meta Business Help: About lead ads with instant form
  4. Meta Business Help: Information included when you download your leads data
  5. Meta Business Help: Download or retrieve your leads data from Meta
  6. Meta Business Help: Set up tracking parameters for your lead ads with instant form
  7. Meta Business Help: Columns in the import/export template in Meta Ads Manager
  8. Analytics Help: URL builders: Collect campaign data with custom URLs
  9. Analytics Help: Traffic-source dimensions, manual tagging, and auto-tagging
  10. Analytics Help: Traffic acquisition report
  11. Analytics Help: Import campaign data from Meta Ads