Research & Benchmarks Optimization AI Ads Analytics Why Madgicx? About Us Blog Careers Case Studies Events Glossary Guides Answers Pricing Login Try for Free

UTM parameters

UTM parameters are short tags added to the end of a URL, such as utm_source=facebook, that tell your analytics tool where a visit came from. UTM stands for Urchin Tracking Module. In Meta ads, you add them to your ad's link so you can see which campaign, ad set or ad sent each visitor, in a tool outside Meta.

The five UTM parameters

Parameter What it tells you Example value
utm_source Where the visit came from facebook
utm_medium The type of traffic paid_social
utm_campaign The campaign spring_sale
utm_content The ad or creative video_a
utm_term A keyword or audience label lookalike_1

The first three are the ones most teams rely on. Parameters are added after a question mark and joined with ampersands, for example ?utm_source=facebook&utm_medium=paid_social&utm_campaign=spring_sale.

Let Madgicx's AI do the work

Its AI marketer finds what's working and prepares the next move. You approve.

Try for Free ($0 Trial)

UTM parameters in Meta Ads Manager

Meta's help page on URL parameters says you can use both static and dynamic parameters. It also says parameters in the URL parameters field override duplicates in the Website URL field. Meta notes that you'll need a website analytics tool to track the results, because the tags are read by your tools, not by Ads Manager.

Static values stay the same, such as utm_source=facebook. Dynamic values are filled in by Meta for each ad. Meta lists specifications for dynamic URL parameters, including these:

Dynamic value Fills in
{{campaign.name}} The campaign name
{{ad.name}} The ad name
{{placement}} The placement the ad appeared in

Meta's own example is utm_campaign={{campaign.name}}&utm_content={{ad.name}}. Meta also says values containing campaign, ad set or ad names can't be changed during the life of that campaign, ad set or ad once it has been published.

How to set up UTM tracking

  1. Decide your naming rules first: lowercase, no spaces, one spelling per source.
  2. Use static values for source and medium.
  3. Use dynamic values for campaign and content, so names flow through on their own.
  4. Paste the string into the URL parameters field of each ad, or build full URLs with the Facebook UTM Builder, a tool that builds Meta ad URLs with UTM parameters.
  5. Click your own ad, or open the final URL, and check the tags arrive in your analytics tool.

For how this fits into tracking Facebook ads end to end, see our answer on UTM tracking for Facebook ads.

Common mistakes

  • Inconsistent spelling. "Facebook", "facebook" and "fb" show up as three sources in reports.
  • Renaming after launch. Because dynamic values read names that can't change once published, a bad campaign name stays in your reports for that campaign's life. Name carefully before publishing.
  • Spaces and symbols. They can break the link or split reports. Use underscores or hyphens.
  • Tagging internal links. UTM tags on links inside your own site can overwrite the original source of a visit.
  • Expecting UTMs to replace the Pixel. UTM tags tell your analytics tool where a visit came from. They don't send conversions to Meta. That is the job of conversion tracking through the Meta Pixel or the Conversions API.

Example. A running-shoe store tags its ads with utm_source=facebook, utm_medium=paid_social, utm_campaign={{campaign.name}} and utm_content={{ad.name}}. In its analytics tool, 2,000 sessions come from the campaign "trail_spring". Filtering by utm_content shows that the ad "review_video" sent 900 of them and led to 36 orders, which is 4% of those sessions, while "discount_static" sent 1,100 sessions and led to 22 orders, which is 2%. The store moves budget toward the review video.

In Madgicx. Madgicx Cloud Tracking sends conversions to Meta from the server, while UTM tags remain the way your analytics tool sees where visits came from. The two answer different questions.

FAQ

What are UTM parameters?

They are tags added to a URL, such as utm_source and utm_campaign, that tell your analytics tool where a visit came from. They are read by tools like Google Analytics, not by the page itself.

What are the five UTM parameters?

utm_source, utm_medium, utm_campaign, utm_content and utm_term. Source, medium and campaign are the most commonly used.

How do I add UTM parameters to Facebook ads?

Add them in the URL parameters field of the ad in Ads Manager, or build the full URL beforehand. You can use dynamic values such as {{campaign.name}} so Meta fills in names for you.

Can I change UTM parameters after publishing a Meta ad?

Not those that use campaign, ad set or ad names. Meta says those values can't be changed during the lifetime of that campaign, ad set or ad once published.

Can UTM parameters make my links messy?

They add text to the end of the link, so keep them short and consistent. Visitors rarely notice them, and consistent names keep your reports clean.

Sources

Official Meta Business Partner

Now you know how it works. Madgicx's AI does the work.

Madgicx is the agentic AI advertising platform for Meta ads. Its AI marketer finds what is working, prepares the next move and gets it done in one click, while you stay in control.

Try for Free ($0 Trial)
200,000+ advertisers
$10B+ annual ad spend visibility
4.6 / 5 on G2, from 220+ reviews