Home › Guides › Facebook UTM parameters
Facebook UTM parameters: setup, template and GA4 checks
Facebook UTM parameters go in the URL parameters field under Tracking on each ad in Ads Manager. Use Meta's dynamic values so campaign and ad names fill in by themselves, and set utm_medium=paid so GA4 files the clicks as Paid Social. For Instant Forms, add tracking parameters in the form's settings instead.
Facebook UTM parameters are the short tags on the end of your ad's link that tell Google Analytics which campaign and which ad sent a visitor. Without your own tags, GA4 cannot show you by name which campaign or ad sent a visit, so you cannot tell the ad that brought qualified leads from the one that brought nothing.
Below: where the tags go, a template to paste, how GA4 decides the channel, and what most guides skip for lead-gen accounts: Instant Forms, WhatsApp and your CRM. The platform details come from Meta's and Google's own help pages.
Where Facebook UTM parameters go in Ads Manager
Meta's help page on how to add URL parameters to your Meta ads puts them at the ad level, in the Tracking section of ad creation. The steps:
- Open the ad in a new campaign or a saved draft, and scroll to Tracking.
- Add the parameters. Type them into the URL parameters field, or click Build a URL parameter to add them one key at a time.
- Write them as key=value pairs joined with &. Meta's own example is
background=blue; it appends whatever you enter to the end of your Website URL. - Click Apply and check that the string shows in the field.
Three rules from the same page matter. If a key is in both the Website URL and the URL parameters field, only the URL parameters value reaches the final link. Never leave a value empty (background= with nothing after it). And on ads that promote an existing post, the parameters apply only to clicks on the ad, not to people who see the post organically.
The dynamic parameters Meta fills in for you
Facebook dynamic UTM parameters are placeholders in double curly brackets that Meta replaces with real values when someone clicks. Meta's page on specifications for dynamic URL parameters lists these:
- IDs:
{{campaign.id}},{{adset.id}}and{{ad.id}}. - Names:
{{campaign.name}},{{adset.name}}and{{ad.name}}. - Where the ad ran:
{{placement}}(values such asfacebook_feed,instagram_storiesorthreads_stream) and{{site_source_name}}(more on that below). - Catalogue ads only:
{{media_type}}, for Advantage+ catalog ads.
Two details catch people out. Name-based values are frozen at the name the campaign, ad set or ad had when it was first published, so renaming it later does not change what reaches GA4. And Meta warns that changing URL parameters after you publish may send the ad set back into the learning phase. Name things properly and set the tags before you publish, not after the ads are running.
Dynamic parameters do not work on collection-format ads in Instagram placements, and spaces in names arrive as %20, so short hyphenated names read better in reports.
A Facebook UTM parameters example you can paste
Google's page on URL builders says to always use utm_source, utm_medium and utm_campaign, and strongly recommends utm_id as well. This string covers those and adds the ad set and ad:
utm_source=facebook&utm_medium=paid&utm_campaign={{campaign.name}}&utm_id={{campaign.id}}&utm_term={{adset.name}}&utm_content={{ad.name}}
| Key | Value | What it gives you in GA4 |
|---|---|---|
| utm_source | The source GA4 checks against its list of social sites | |
| utm_medium | paid | The medium that puts the session in Paid Social |
| utm_campaign | {{campaign.name}} | Your campaign name as Session campaign |
| utm_id | {{campaign.id}} | The campaign ID, which survives a rename |
| utm_term | {{adset.name}} | The ad set, usually your audience |
| utm_content | {{ad.name}} | The individual ad or creative |
A caveat: Google describes utm_term as the paid keyword. Meta ads have no keywords, so putting the ad set there is a convention, not Google's definition. Drop that pair if you prefer; the rest still works.
Keep the static values in lower case and spell them the same way in every ad. Google's page says parameter values are case sensitive, so "Facebook" and "facebook" show as two separate sources.
Why utm_medium decides your GA4 channel
GA4 sorts tagged traffic into channels using fixed rules on source and medium, and Google's default channel group page spells them out. For manually tagged links, Paid Social needs both of these:
- A social source. The source must match Google's list of social sites, which includes facebook, fb, instagram, ig and messenger.
- A paid medium. The medium must match the pattern
^(.*cp.*|ppc|retargeting|paid.*)$: anything containing "cp" (such as cpc), ppc, retargeting, or anything starting with "paid".
That is why utm_medium=paid, paid_social and cpc all work. The common mistake is utm_medium=social. It fits Google's Organic Social rule (medium is one of social, social-network, social-media, sm) and fails the Paid Social one, so your ad spend ends up reported next to your unpaid Instagram posts.
The site_source_name trap
Many templates set utm_source={{site_source_name}} so GA4 shows which app the click came from. Meta's specification lists the values it returns: fb for Facebook, ig for Instagram, msg for Messenger, th for Threads and an for Audience Network.
Here is the catch. Google's list of social sources (linked from its channel group page, which I checked on 13 November 2026) includes fb and ig, but not msg, th or an. A click from Messenger, Threads or Audience Network tagged this way fails the Paid Social rule. With a paid medium it usually falls to Google's Paid Other rule instead, so part of your Meta spend quietly drops out of your Paid Social numbers.
My decision rule:
- Ads run only on Facebook and Instagram placements:
{{site_source_name}}is fine and gives you the platform split in GA4. - Ads can run on Messenger, Threads or Audience Network: use the static
utm_source=facebookand read the platform split in Ads Manager's breakdowns. Or keep the dynamic source and build a custom channel group in GA4 that counts msg, th and an as Paid Social.
What Meta adds on its own
Meta's help page says some parameters "may" be added to your ad traffic automatically: campaign source (Facebook or Instagram), campaign medium (paid), plus the ad ID, campaign ID, ad set ID and a campaign tracking group ID. Parameters you add in Ads Manager override those set elsewhere, such as Instagram's defaults.
That is not a reason to skip your own tags. Meta's defaults carry IDs, not your campaign and ad names, and if their source is not spelled exactly like yours, GA4 shows two separate sources. One template on every ad keeps one line per source.
UTMs for Instant Forms, WhatsApp and your CRM
UTM parameters only work when the click lands on your website, and in the UAE lead-gen accounts I run, much of the budget goes to ads that never send anyone there. Instant Forms keep people inside Facebook or Instagram, and click-to-WhatsApp ads open a chat.
- Instant Forms: use tracking parameters. Meta's page on tracking parameters for lead ads puts them in the form itself: in the Create form box, open Settings, then Tracking parameters, and add a name and value such as utm_source and facebook. People filling in the form do not see them; they appear in your leads download and pass to your connected CRM. Names and values cannot be empty and cannot clash with the names of your form fields. You can check them first with Meta's Lead Ads Testing Tool. More on the form itself in my guide to Facebook Instant Forms.
- Website forms: carry the UTMs into the CRM. GA4 tells you which ad brought the visit; your CRM tells you whether the lead was worth anything. Capture the utm values from the landing page address into hidden form fields so every lead record keeps its campaign and ad. Meta notes that a parameter only applies to the first page the ad opens, so if your form sits on a second page, your site has to store the values when the visitor lands.
- Click-to-WhatsApp: UTMs cannot follow a chat. The click opens WhatsApp, not your site, so there is no page for a UTM to land on and GA4 never sees the conversation. Judge these campaigns in Ads Manager and in the chat labels your team applies, as covered in click-to-WhatsApp ads vs Instant Forms.
What I see in UAE accounts: UTMs are often on some ads and missing from others, often the ones duplicated in a hurry for a launch. The bigger gap is the CRM. GA4 shows a tidy Paid Social line, but nobody can say which campaign produced the leads that booked a viewing or a consultation, because the source never reached the lead record. Fixing that is worth more than any extra parameter. In my Shopify app Meta Ads attribution audit, every ID reached the landing page and was dropped at the button that sent visitors on to the Shopify App Store.
How to check your tags work
A typo in one bracket breaks the tag, so check the live result, not the template.
- Click a live ad. Open it from the Facebook or Instagram app and look at the address on the landing page. The brackets should be gone and real names should be in their place.
- Check GA4 the next day. In Reports, open Acquisition, then Traffic acquisition, switch the dimension to Session source/medium and look for facebook / paid in the Paid Social channel. Anything under Paid Other or Organic Social points back to the source or medium.
- Test the CRM end. Submit one test lead from a tagged link, or a test Instant Form lead, and confirm the campaign and ad arrive on the record.
The set-up order
- Agree a naming convention before anything is published, because names freeze at launch.
- Pick your utm_source rule from the site_source_name section above.
- Paste one template, with
utm_medium=paid, into every website ad. - Add tracking parameters to every Instant Form.
- Capture UTMs in hidden fields so they reach the CRM.
- Click, check and test one lead end to end before you raise the budget.
UTMs are the reporting layer, not the conversion layer: they tell GA4 where a visit came from, not which leads closed. That takes the Pixel, the Conversions API and your CRM working together, so fix your ad tracking first before judging any campaign.
Frequently asked questions
Where do I add UTM parameters to Facebook ads?+
What utm_medium should I use for Facebook ads?+
Do UTM parameters work with Facebook Instant Forms?+
Will changing UTM parameters reset the learning phase?+
Related
Not sure which ads bring the leads that close?
Message me on WhatsApp or request a free campaign audit. I'll check your UTMs, your Instant Form parameters and whether the source of each lead reaches your CRM, and show you what to fix first.