Which dynamic parameters can I use?
Dynamic parameters let the platform fill in values when the ad serves, so one setting works for every ad. Meta and Google use different forms. The builder warns you if you paste one from the wrong platform.
| Parameter | What it fills in |
|---|---|
| {{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}} | Placement |
| {{site_source_name}} | Site or app the ad appeared on |
| {{media_type}} | Media type (Advantage+ catalog ads only) |
Source: Meta Business Help Center: Specifications for URL dynamic parameters (checked 24 Nov 2026)
| Parameter | What it fills in |
|---|---|
| {campaignid} | Campaign ID |
| {adgroupid} | Ad group ID |
| {creative} | A unique ID for the ad |
| {keyword} | Matched keyword (Search Network) |
| {matchtype} | Keyword match type |
| {network} | Where the click came from: search, search partners, Display and others |
| {device} | Device type |
| {placement} | Content site where the ad was clicked |
Source: Google Ads Help: Set up tracking with ValueTrack parameters (checked 24 Nov 2026)
Meta’s name-based parameters use the name the campaign, ad set or ad had when first published. Rename it later and the parameter still sends the original. Meta also says changing URL parameters after publishing can restart learning for the ad set, so set them before launch.
Where do I paste each result?
For Meta, paste the first result into the URL parameters field in the ad’s Tracking section; Meta appends it to your website URL, and if the same parameter is in both, the one in the URL parameters field wins. Meta also says that since 1 January 2024 it may add some parameters on its own, such as a campaign source of Facebook or Instagram, so check your analytics for clashes. For Google, open URL options (Google suggests the account level, and you can set it lower) and paste the tracking template, which begins with {lpurl}, the parameter Google replaces with your final URL.
Source: Meta: Add URL parameters to your ads; Google Ads Help: About ValueTrack parameters (checked 24 Nov 2026)
How should I name UTM values?
Google Analytics treats values as case-sensitive, so Meta and meta become two sources. Pick lowercase, avoid spaces, and use the same words every time. Google also recommends setting all the key UTM fields once you set one. The builder flags capitals and spaces in typed values, but not in dynamic parameters, where the platform sends whatever your campaign names say.
Source: Google Analytics Help: URL builders and campaign URLs (checked 24 Nov 2026)
Worked example: a Meta ad
Illustrative
Illustrative URL, not a customer link.
| Step | Value |
|---|---|
| Website URL | https://www.example.com/products/ring |
| Meta URL parameters | utm_source=facebook&utm_medium=paid_social&utm_campaign={{campaign.name}}&utm_content={{ad.name}} |
| What a visitor lands on (campaign “prospecting-2026”, ad “holiday”) | https://www.example.com/products/ring?utm_source=facebook&utm_medium=paid_social&utm_campaign=prospecting-2026&utm_content=holiday |
Meta URL-encodes spaces in names as %20, so a campaign called “Prospecting 2026” arrives as Prospecting%202026.
UTM Builder FAQ
Do I still need UTMs if Meta reports the conversions?
Yes, for your own analytics. UTMs let Google Analytics and your store see which campaign and ad a visit came from, so you can compare it with what Meta reports.
Should utm_source be facebook or meta?
Either works if you stay consistent. Mixing both splits your Meta traffic into two rows. Pick one and write it into your naming guide.
Can I use macros in Google Ads utm_campaign?
Yes. Put ValueTrack parameters such as {campaignid} in the tracking template. Google replaces them when the ad is clicked. They return IDs, not names, so keep a lookup from ID to campaign name.
Why does my URL already have parameters?
A website URL can have its own query string. The builder appends with & in that case and puts the UTM values before any #fragment. If the URL already carries utm_ values, remove them so they do not clash.
Where should you read next?
- What UTM parameters should Facebook ads use?
- Why do Meta and GA4 report different numbers?
- Cookieless readiness: 9 tracking gaps D2C must close
- Meta ads glossary
More free tools: Break-even ROAS Calculator · CAC Payback Calculator · MER vs ROAS Calculator · Creative Testing Budget Calculator · Facebook Ad Cost Calculator · Target CPA Calculator · LTV:CAC Calculator · Ad Spend Calculator · Learning Phase Calculator
Sources: Meta Business Help Center: Specifications for URL dynamic parameters; Meta Business Help Center: Add URL parameters to your Meta ads; Google Ads Help: Set up tracking with ValueTrack parameters; Google Analytics Help: URL builders (all checked 24 Nov 2026). Drafted with AI; every outside fact checked against these pages on 24 Nov 2026. The arithmetic is ours.
Who made this calculator?
Bach.ai is our product. It connects to your Meta and Google Ads accounts, audits them and proposes fixes; on a paid plan it applies a change, by default, only after you approve it. Free is a 7-day trial with no card. Start the free trial.