Skip to content
Skaler Logo

Free tool · Runs in your browser

UTM builder for Meta ads

Build UTM links with Meta's dynamic parameters like {{campaign.name}} and {{ad.name}}, then paste them straight into Ads Manager.

Insert a Meta dynamic parameter into the utm_campaign field

URL parameters only

utm_source=facebook&utm_medium=paid_social&utm_campaign={{campaign.name}}&utm_content={{ad.name}}&utm_term={{adset.name}}

Paste this into Ads Manager, ad level, Tracking section, URL parameters field. Keep the plain landing page in the Website URL field.

Full URL

Add your website URL above

Use the full URL for links outside Ads Manager, like emails, bios or other ad platforms. Existing query parameters in your URL are kept.

What are UTM parameters?

UTM parameters are short tags at the end of a link, like ?utm_source=facebook&utm_medium=paid_social. When someone clicks, your analytics tool reads them and records where the visit came from.

Without them, a click from a Meta ad often shows up as plain referral or direct traffic, and you can't tell which campaign or ad drove the sale. With them, every session and order can be traced back to a campaign, an ad set and an ad.

The five UTM fields, and what to put in them for Meta

utm_source

The site or platform that sent the visit.

For Meta: facebook for every Meta placement, or split by app with {{site_source_name}} (fb, ig, msg, an, th).

utm_medium

The kind of traffic, such as paid social, email or cpc.

For Meta: paid_social. In GA4, a medium that starts with paid plus a social source puts the session in the Paid Social channel.

utm_campaign

The campaign, promo or launch the click belongs to.

For Meta: {{campaign.name}}, so every Meta campaign reports under its own name.

utm_content

Tells apart different ads or links within one campaign.

For Meta: {{ad.name}}, so you can see which creative brought the sale.

utm_term

Built for paid search keywords. On social, most teams use it for the audience.

For Meta: {{adset.name}}, since the ad set is where your targeting lives.

Meta dynamic URL parameters

Meta replaces these with real values when someone clicks your ad, so one parameters string works on every ad.

ParameterWhat Meta fills in
{{campaign.name}}The campaign name, as it was when the ad was first published
{{campaign.id}}The numeric campaign ID
{{adset.name}}The ad set name, as it was when the ad was first published
{{adset.id}}The numeric ad set ID
{{ad.name}}The ad name, as it was when the ad was first published
{{ad.id}}The numeric ad ID
{{placement}}Where the ad showed, for example facebook_feed, instagram_stories, facebook_instream, threads_stream
{{site_source_name}}The app: fb (Facebook), ig (Instagram), msg (Messenger), an (Audience Network), th (Threads)

Meta also lists {{media_type}} for Advantage+ catalog ads only. Dynamic parameters aren't supported for collection ads on Instagram placements.

Source: Specifications for dynamic URL parameters, Meta Business Help Center.

Where to add URL parameters in Ads Manager

  1. Build the parameters. Pick the Meta ads (dynamic) preset or fill in source, medium, campaign, content and term, then copy the URL parameters string.
  2. Open the ad in Ads Manager. Create a new ad or open a draft and go to the ad level, past the creative, to the Tracking section.
  3. Paste into URL parameters. Keep your landing page in Website URL and paste the copied string into the URL parameters field, then click Apply.
  4. Publish and check. Publish the ad, click it once, and check that the landing page address shows your UTMs with the real campaign and ad names.

Good to know. Parameters in the URL parameters field are appended to the Website URL, and if both set the same key, the URL parameters field wins. Meta also notes that changing URL parameters after publishing may send the ad set back into the learning phase. Meta's guide to adding URL parameters

How your UTMs show up in GA4 and Shopify

Google Analytics 4

  • Go to Reports, then Acquisition, then Traffic acquisition.
  • utm_source and utm_medium fill Session source / medium. utm_campaign fills Session campaign.
  • utm_content and utm_term are available as secondary dimensions and in Explorations, so you can break results down by ad or ad set.
  • Values are case sensitive, so facebook and Facebook are two rows. Google's UTM reference

Shopify

  • Shopify reads the UTMs on the landing page link and uses them in its marketing and sessions reports under Analytics.
  • Use the same utm_campaign values you use in GA4, so both tools group traffic the same way.
  • Expect some gap between GA4, Shopify and Meta numbers. Each tool counts sessions and attributes orders differently.

UTM naming convention tips

  • Lowercase everything and use underscores instead of spaces: spring_sale, not Spring Sale.
  • Bake the useful bits into your Meta names, because {{campaign.name}} and {{ad.name}} pass them straight to GA4: for example us_prospecting_hoodies for a campaign and ugc_hook3_9x16 for an ad.
  • Keep the same order of parts in every name, so you can filter and split them in a spreadsheet later.
  • Name ads before you publish. Name based parameters lock in the name the ad had at first publish.
  • Add {{ad.id}} in a custom parameter if you need a key that never changes, even when names do.

Common UTM mistakes on Meta ads

Tagging internal links

UTMs on links inside your own site start a new session and overwrite the real source. Only tag links that bring people in.

Mixed case

GA4 treats Facebook, facebook and FB as three sources. Pick lowercase and stick to it.

Renaming and expecting new values

Meta fills name parameters with the name the ad had when it was first published. Renaming later doesn't change the UTMs.

Pasting the full URL into the URL parameters field

That field only takes key=value pairs. The website URL goes in the Website URL field.

Duplicate utm keys

If the website URL and the URL parameters field both set utm_source, Meta keeps the one from the URL parameters field.

Encoded braces

%7B%7Bad.name%7D%7D is not a macro. Meta only fills {{ad.name}} when the braces are left as they are.

TikTok macros from TikTok's UTM parameters guide. Google Ads ValueTrack parameters from Google Ads Help.

Questions, answered.

A tool that adds UTM parameters (utm_source, utm_medium, utm_campaign, utm_content, utm_term) to a link, so analytics tools like GA4 and Shopify can tell which campaign and ad sent each visit.

Placeholders like {{campaign.name}} or {{ad.id}} that Meta replaces with the real campaign, ad set or ad value when someone clicks your ad. You write one URL parameters string and reuse it on every ad.

At the ad level, scroll to Tracking and paste the URL parameters string (everything after the ?) into the URL parameters field. Keep the plain landing page in the Website URL field.

A common setup is utm_source=facebook, utm_medium=paid_social, utm_campaign={{campaign.name}}, utm_content={{ad.name}} and utm_term={{adset.name}}. That's the Meta ads (dynamic) preset in this builder.

Either works in GA4 as long as you're consistent. paid_social keeps Meta separate from search ads, and with a social source GA4 groups it into the Paid Social channel.

Meta sets name based parameters like {{campaign.name}} to the name used when the ad was first published. Renaming later doesn't change the value. To get the new name, publish a new ad.

No. They only add text to the landing page link. Meta notes that editing URL parameters on a published ad can send the ad set back into the learning phase, so set them before you publish.

Meta says some parameters may be added to your ad traffic automatically, such as a campaign source of Facebook or Instagram and a medium of paid. Setting your own gives you control over the exact values and naming.

Yes, and it runs entirely in your browser. Nothing you type is sent to Skaler. Your last 10 links are saved only in this browser.

Skaler rocket mascot

Tracking set up? See which ads actually win.

Skaler shows which Meta ads are winning and why: hooks, angles, formats, ROAS. Plus competitor ad intel and bulk launching.

Start free
Free plan · No credit card