UTM Parameters for Meta Ads: Template, Naming and Checks
Rafael Moreira
资深效果营销专家
UTM parameters for Meta ads are the short tags you add to every ad's destination URL so Google Analytics, your shop or your CRM can tell which campaign, ad set and ad sent each visitor. Meta has its own reporting, but your analytics tool only knows what the URL tells it. This guide gives you a copy-paste template, explains what each dynamic macro returns, shows the GA4 rules that decide whether a click lands in Paid Social, and ends with a test you can run before launch.
Quick answer: Paste utm_source=facebook&utm_medium=cpc&utm_campaign={{campaign.name}}&utm_content={{ad.name}}&utm_term={{adset.name}}&utm_id={{campaign.id}} into the URL parameters field of each ad. Keep source and medium fixed and lowercase, let Meta fill names and IDs, and never use "meta" as the source if you want GA4 to call it Paid Social.
The copy-paste template
Here is the string most Meta advertisers can use as it is:
utm_source=facebook&utm_medium=cpc&utm_campaign={{campaign.name}}&utm_content={{ad.name}}&utm_term={{adset.name}}&utm_id={{campaign.id}}
Paste it into the URL parameters field, not the website URL itself. When someone clicks, Meta adds the string to your landing page and replaces each {{...}} macro with the live value. A click on an ad named video_hook-a, in an ad set named broad_25-54, in a campaign named pros_uk_winter-sale_2026-11, arrives as:
https://example.com/coat?utm_source=facebook&utm_medium=cpc&utm_campaign=pros_uk_winter-sale_2026-11&utm_content=video_hook-a&utm_term=broad_25-54&utm_id=<campaign ID>
Why each part is there:
| Parameter | Value | Why |
|---|---|---|
| utm_source | facebook | Fixed. It is on GA4's list of social sources |
| utm_medium | cpc | Fixed. It matches GA4's paid medium rule |
| utm_campaign | {{campaign.name}} | Filled by Meta, so it always matches Ads Manager |
| utm_content | {{ad.name}} | Separates creatives inside a campaign |
| utm_term | {{adset.name}} | A convention: GA4 defines this field for keywords, which Meta ads do not have |
| utm_id | {{campaign.id}} | The ID stays the same if someone renames the campaign |
Google Analytics' URL parameters help page says you "should always use utm_source, utm_medium, and utm_campaign" and recommends utm_id as well. Any parameter you leave out shows as "(not set)".
paid_social works as the medium too, since GA4's paid rule also matches anything that starts with "paid". Pick one and use it on every ad.
把这篇指南用起来
在一个地方创建、测试和扩量六个广告平台的投放,你的 AI 智能体团队 Wavo 随时在旁协助。免费试用 14 天。
Where to add URL parameters in Ads Manager
Open the ad (not the campaign or ad set) and scroll to the Tracking section under the destination. You will find a URL parameters field and a Build a URL parameter link that opens a helper where you can pick dynamic values instead of typing them. Typing the string straight into the field does the same job.
Three rules from Meta's help page on adding URL parameters are worth knowing (the page often loads empty outside a browser, so these come from its indexed text):
- If the same key is in both the website URL and the URL parameters field, the URL parameters value wins.
- Dynamic parameters are not supported for the app installs objective or for collection ads on Instagram placements.
- Dynamic parameters do not work with mobile app deep links.
What Meta's dynamic parameters return
Meta lists its macros on the specifications for URL dynamic parameters page. The ones you will use most:
| Macro | Returns |
|---|---|
{{campaign.name}} / {{campaign.id}} | Campaign name / campaign ID |
{{adset.name}} / {{adset.id}} | Ad set name / ad set ID |
{{ad.name}} / {{ad.id}} | Ad name / ad ID |
{{placement}} | The placement the ad ran in |
{{site_source_name}} | A short code for where the ad ran, such as fb or ig |
Two practical notes. Names are only as clean as your naming: a campaign called Winter Sale UK arrives in GA4 with its capitals and spaces, so fix names first with a Facebook ads naming convention. And IDs never change, which is why the template sends {{campaign.id}} as utm_id: if a buyer renames a campaign halfway through the month, GA4 shows two campaign names but one ID.
Some teams use {{site_source_name}} as the source. That splits Facebook and Instagram, but values for other surfaces, such as Messenger or Audience Network, are not on GA4's social list, so those sessions drop into Paid Other. If you want the split, send it in a custom parameter (for example &fb_site={{site_source_name}}) and keep utm_source fixed. GA4 does not report custom parameters by default, so you would need a custom dimension to read it.
How GA4 decides a click is Paid Social
GA4 sorts every session into a default channel group. For Paid Social, two conditions must both be true:
- Source matches GA4's list of social sites.
facebook,fb,instagramandigare on it.metais not. - Medium matches the regex
^(.*cp.*|ppc|retargeting|paid.*)$, socpc,paid_socialandpaid-socialall qualify.
If the medium is paid but the source is not recognised, the session falls into Paid Other. If the source is social but the medium is social, it becomes Organic Social, and your ad spend looks like free traffic.
Case works in two ways. Google states that "parameter values are case sensitive", so Facebook and facebook show as separate rows in source reports. The channel definitions, on the other hand, "aren't case sensitive", so both still land in Paid Social. The fix is simply to type fixed values in lowercase.

A naming convention table you can adopt
Dynamic macros copy whatever names you give your campaigns, so the naming convention is your UTM convention. A simple, lowercase pattern:
| Level | Pattern | Example |
|---|---|---|
| Campaign | {funnel}_{market}_{offer}_{yyyy-mm} | pros_uk_winter-sale_2026-11 |
| Ad set | {audience}_{age} | broad_25-54 |
| Ad | {format}_{angle} | video_hook-a |
| Source | fixed | facebook |
| Medium | fixed | cpc |
Use underscores between parts and hyphens inside a part, never spaces or &. Write the table down once and share it: our guide to building a UTM tracking system covers the governance side.
Common mistakes with Facebook ads UTM parameters
Most broken reports trace back to a handful of errors, many covered in more depth in 9 UTM tagging mistakes:
- utm_source=meta. Lands in Paid Other, not Paid Social.
- utm_medium=social. Turns paid clicks into Organic Social.
- Mixed case.
Facebook,facebookandFBbecome three rows. - Parameters typed into the website URL as well as the URL parameters field. Duplicate keys get confusing; keep them in one place.
- New ads without parameters. URL parameters are set per ad, so every ad added later needs the string too.
- Spaces and ampersands in names. An
&in a campaign name starts a new parameter that nobody wrote. - Tagging links that are not ads. UTMs on organic posts pointing at your own site overwrite the visitor's real source.
How to check your tags work
Run this before you spend, then once more after launch:
- Read the final string. In the ad's Tracking section, confirm there is no stray space, no double
?and every macro has two braces on each side. - Test the landing page. Paste your website URL plus the string, with sample values in place of macros, into a browser. Confirm the page loads and the parameters survive any redirect.
- Watch live activity in GA4. With that test URL open, check that GA4's report of current visitors picks up the visit with
facebookas its source. - Check the next day. In Traffic acquisition, filter Session source / medium to
facebook / cpcand confirm the channel reads Paid Social, with campaign names filled rather than showing{{campaign.name}}. - Look for (not set). A rising share of "(not set)" campaigns usually means ads went live without parameters.
Why Meta and GA4 still won't match
Clean UTMs make GA4 accurate about clicks. They do not make GA4 agree with Ads Manager. Meta credits conversions with its own attribution setting, which for website conversions can include engage-through and view-through credit that never produces a click, so no UTM ever reaches GA4 for those sales. GA4's attribution reports use data-driven or last-click models (Google retired first-click, linear, time decay and position-based in November 2023), which is a different question again, as our guide to first-touch vs last-touch attribution explains.
Meta also adds its own click ID, fbclid, to the URL when someone clicks an ad on Facebook or Instagram. Meta's developer docs say the Pixel stores it in the _fbc cookie. It sits next to your UTMs and does not replace them.
For journeys that no link captures, such as creators, podcasts or word of mouth, a post-purchase survey fills the gap. For the shop side of the story, see why Meta and Shopify numbers don't match.
TikTok and Google equivalents
The same idea works on other platforms with different syntax:
- TikTok uses double-underscore macros. Its UTM help page lists
__CAMPAIGN_NAME__,__CAMPAIGN_ID__,__AID_NAME__(ad group name),__CID_NAME__(creative name) and__PLACEMENT__, and TikTok can add UTM parameters automatically. - Google Ads uses auto-tagging, on by default for new accounts, which adds a
gclidto each click. For your own tags it offers ValueTrack parameters such as{campaignid},{adgroupid}and{creative}.
Where Wevion fits
Wevion has a UTM builder with saved templates and suggested values for source and medium. When you build a Meta ad in Wevion's campaign creator, the same builder opens for that ad's URL parameters, pre-filled with utm_source=facebook, utm_medium=cpc, utm_id={{campaign.id}} and the ad's name as utm_content, and it keeps Meta's macros intact.
Wevion connects Meta ad accounts through the official API with OAuth, plus Google, TikTok, Snapchat, Taboola and Outbrain through each platform's official API, and syncs data about every 15 minutes, so what each platform reports sits side by side in one dashboard.
Wevion does not change how GA4 or Meta attribute conversions, send events or deduplicate them. Clean tags are what make the two sets of numbers comparable.
You can try it on your own ad accounts with 14 days free on any plan, no card.
Key takeaways
- Paste one string into each ad's URL parameters field: fixed lowercase source and medium, macros for names and IDs.
- Use
facebook(orfb,ig,instagram) as the source:metais not on GA4's social list and lands in Paid Other. - Any medium matching GA4's paid rule, such as
cpcorpaid_social, puts the session in Paid Social;socialmakes it organic. - UTM values are case sensitive in GA4, channel rules are not, so keep everything lowercase.
- Send
{{campaign.id}}as utm_id so renamed campaigns still join up. - Clean UTMs fix GA4's view of clicks; they will not make GA4 match Meta's attribution.
继续探索
生态与基础知识
打开精选的主题总览页,本主题下的每一篇指南都在,从基础排到进阶。