UTM Tracking for Meta Ads: Parameters, Dynamic Values and Templates
Set up UTM parameters for Facebook and Instagram ads: the five parameters, Meta's dynamic values, a copy-ready template and how to check it in GA4.

Meta reports what it can attribute to your ads. Your analytics tool reports what it sees arrive on your site. UTM parameters are the bridge between the two: small tags on the destination URL that tell your analytics tool exactly which campaign, ad set and ad a visit came from.
This guide covers the five parameters, where to put them in Meta, the dynamic values that save you from typing names, a template you can copy, and how to check that it works.
What UTM parameters are
A UTM parameter is a key and value added to a URL after a question mark. Analytics tools such as Google Analytics 4 read them and store them with the session. A tagged URL looks like this:
https://example.com/spring-sale?utm_source=facebook&utm_medium=paid_social&utm_campaign=spring_sale
The visitor sees the same page. Your analytics tool now knows where the visit came from.
The five standard parameters
- utm_source: the platform that sent the traffic, such as
facebook. - utm_medium: the type of traffic, such as
paid_social. Pick one value and keep it, because analytics tools group channels by it. - utm_campaign: the campaign. Usually the campaign name or a short slug of it.
- utm_content: what differs inside the campaign. For Meta ads this is normally the ad name or ID.
- utm_term: originally for search keywords. Many Meta advertisers use it for the ad set name.
Source, medium and campaign are the ones every report relies on. Content and term add the detail you need to compare ads and audiences.
Why tag Meta ads at all
Meta's own reporting and your analytics tool measure different things in different ways, and each is useful:
- One view across channels. Your analytics tool compares Meta with search, email and organic traffic using the same rules.
- Data you own. Sessions, revenue and behavior on your site are stored in your tool, alongside the rest of your marketing data.
- Deeper site behavior. You can see what visitors from a given ad did on the site, not just whether they converted.
- A second opinion. When Meta and your analytics numbers differ, tagged traffic lets you see where the gap is.
Where to add UTM parameters in Meta
You have two options when creating an ad in Ads Manager:
- Directly in the Website URL. Simple, but you have to edit every URL by hand and it is easy to get one wrong.
- In the URL parameters field under Tracking. Meta appends the parameters to the destination URL for you, and there is a "Build a URL parameter" helper. Keeping the URL and the tracking separate makes both easier to check.
Use one of them, not both, or you end up with duplicate parameters in the final URL.
Meta's dynamic URL parameters
Typing campaign and ad names into UTM values is slow and error-prone. Meta can fill them in for you with dynamic parameters:
| Dynamic parameter | What it inserts |
|---|---|
| {{campaign.name}} | Campaign name |
| {{campaign.id}} | Campaign ID |
| {{adset.name}} | Ad set name |
| {{adset.id}} | Ad set ID |
| {{ad.name}} | Ad name |
| {{ad.id}} | Ad ID |
| {{placement}} | Where the ad was shown |
| {{site_source_name}} | Which Meta app the click came from |
Names are readable in reports. IDs never change, even if someone renames a campaign. Many teams send names in the standard parameters and keep IDs available for cases where an exact match matters.
A template you can copy
This template works for most accounts. Paste it into the URL parameters field:
utm_source=facebook&utm_medium=paid_social&utm_campaign={{campaign.name}}&utm_term={{adset.name}}&utm_content={{ad.name}}
If you want to separate Facebook and Instagram traffic, replace the fixed source with {{site_source_name}}. If you want the ad ID too, add a custom parameter such as &ad_id={{ad.id}}.
To build and check a template without typing, use the UTM builder for Meta ads.
Rules that keep the data clean
- Lowercase fixed values. Most analytics tools treat
Facebookandfacebookas two different sources. - One medium. Choose
paid_social(or whatever your team uses) and never vary it. - No spaces in your own values. Use hyphens or underscores. Spaces become
%20or+in the URL. - Names that are worth reading. Dynamic parameters pass your names straight through, so
Copy of Ad 3in Ads Manager becomesCopy of Ad 3in GA4. A naming convention fixes this at the source. - Write it down. A short document with the template and the allowed values stops each team member from inventing their own.
How to test before you spend
- Create the ad paused.
- Open the ad preview and click through to the landing page.
- Check that the URL in the browser contains every parameter, with dynamic values filled in rather than raw
{{...}}text. - Open the Realtime report in GA4 and confirm the visit shows the expected source, medium and campaign.
- Watch for redirects. Some sites redirect and drop query parameters on the way. If the parameters vanish, fix the redirect or link to the final URL directly.
Reading UTM data in GA4
Once ads are running:
- Go to Reports > Acquisition > Traffic acquisition and switch the primary dimension to Session campaign or Session source / medium.
- Add Session manual ad content as a secondary dimension to see utm_content, which is your ad name if you used the template above.
- For deeper analysis, build a free-form exploration with source, medium, campaign and ad content as dimensions and your key events and revenue as metrics, filtered to your Meta source.
Common mistakes
- Parameters in both the URL and the URL parameters field. The result is duplicated tags and confusing reports.
- Copying an old ad's URL. Hard-coded campaign names from last month end up on this month's ads.
- Mixed casing and spelling across team members.
- Skipping the test. A broken redirect can silently strip every parameter.
FAQ
Should utm_source be facebook, instagram or meta?
Any of them works if you are consistent. A fixed facebook keeps reports simple. {{site_source_name}} lets you split by app if that matters to you.
Do UTM parameters affect ad delivery or approval?
No. Meta delivers and reviews the ad the same way. The parameters only change the URL the visitor lands on.
Why do I see {{campaign.name}} literally in my analytics?
The parameter was not filled in, usually because it was placed somewhere Meta does not process dynamic values, or it was misspelled. Use the URL parameters field and check the exact spelling.
Do I need UTMs if I use the Meta pixel?
They do different jobs. The pixel reports conversions back to Meta. UTMs tell your own analytics tool where visits came from. Most advertisers use both.
Tagging is only reliable when it is applied to every ad, every time. Kapao applies your UTM parameters to every ad it publishes, and a team can set one shared UTM standard (utm_source, utm_medium, utm_campaign and utm_content with Meta's dynamic values, plus custom parameters) in Settings so everyone publishes with the same template. See UTM and naming automation for how it works.