UTM Builder: Free Campaign URL Builder
Free UTM builder and UTM link generator. Create campaign URLs with Facebook ads UTM parameters, Google ValueTrack, bulk links and a UTM parser in your browser.
Tag any landing page with utm_source, utm_medium and utm_campaign, use ready presets with Meta, Google, TikTok and LinkedIn macros, and build links in bulk.
How to use the UTM Builder
- Pick a platform preset. Choose Meta, Google Ads, TikTok, LinkedIn, email or another preset to prefill utm_source, utm_medium and the platform's dynamic macros, or type your own values.
- Enter your landing page URL. Paste the page the ad points to. Existing query parameters and #fragments are kept, and https:// is added if you forgot it.
- Fill in the campaign fields. Set the campaign name, and optionally utm_term and utm_content. Leave lowercase on and spaces set to hyphens for clean, consistent reports.
- Copy the URL or just the parameters. Copy the full tagged URL for a destination field, or only the parameter string for Meta's URL parameters field or Google's Final URL suffix.
- Scale up with Bulk and check with Parser. Use Bulk to tag many URLs or ad variations at once and export a CSV, and Parser to inspect any tagged link before it goes live.
What a UTM builder does
A UTM builder adds tracking parameters to the end of a URL so analytics tools like Google Analytics 4 can tell where each visit came from. Without them, a click from an Instagram ad, a newsletter and a partner's website can all land in the same vague bucket, and you can't tell which campaign actually drove sales.
UTM stands for Urchin Tracking Module, named after the analytics product Google acquired and turned into Google Analytics. The parameters are plain text in the query string, for example https://example.com/sale?utm_source=facebook&utm_medium=paid_social&utm_campaign=spring_sale. Visitors don't see any difference, but your analytics report now shows the source, medium and campaign for that session.
This campaign URL builder runs entirely in your browser. It validates the URL as you type, keeps any parameters already on the link, puts the UTMs before a #fragment where analytics can read them, and never percent-encodes ad-platform macros so Meta, Google and TikTok can still fill them in.
The five UTM parameters, and how to fill them
Three parameters do most of the work. GA4 needs utm_source to attribute a session and uses utm_source together with utm_medium to assign the default channel group, so treat source, medium and campaign as required. utm_term and utm_content are optional but very useful for ad testing.
- Use lowercase everywhere. GA4 is case-sensitive, so Facebook and facebook appear as two different sources.
- Pick one separator, hyphens or underscores, and stick to it. Spaces become %20 and are hard to read in reports.
- Keep utm_medium to a short, fixed list. A medium that matches GA4's rules (cpc, paid_social, email, affiliate, display) lands in the right channel automatically; inventive values end up as Unassigned.
- Use utm_content to tell creatives apart, so an A/B test of two ad images shows up as two rows in your report.
| Parameter | Answers | Example values |
|---|---|---|
| utm_source | Which site or sender sent the click? | facebook, google, tiktok, newsletter |
| utm_medium | Which channel or type of traffic? | cpc, paid_social, email, affiliate, display |
| utm_campaign | Which campaign or promotion? | spring_sale, black-friday-2026 |
| utm_term | Which keyword or audience? | running shoes, lookalike-1pct |
| utm_content | Which ad, creative or link? | video-a, carousel-1, hero-button |
Facebook ads UTM parameters and other platform macros
Most ad platforms can fill UTM values automatically with dynamic macros, so one tracking setup works for every campaign, ad set and ad without retyping names. The macro must reach the platform exactly as written, which is why this tool never lowercases or encodes the parts inside braces or double underscores.
For Meta (Facebook and Instagram) ads, paste the parameter string into the URL parameters field in the ad's Tracking section, not into the website URL. Meta replaces {{campaign.name}}, {{adset.name}} and {{ad.name}} at click time; {{campaign.id}}, {{adset.id}}, {{ad.id}}, {{placement}} and {{site_source_name}} (fb, ig, msg or an) are also available. Names change if you rename the campaign later, while IDs stay stable, so some advertisers send IDs in utm_id and names in utm_campaign.
Macro syntax differs by platform and platforms add or retire macros over time, so check each ad manager's help pages if a value comes through unreplaced.
| Platform | Campaign | Ad group / ad set | Ad / keyword |
|---|---|---|---|
| Meta Ads | {{campaign.name}} | {{adset.name}} | {{ad.name}} |
| Google Ads (ValueTrack) | {campaignid} | {adgroupid} | {creative}, {keyword} |
| Microsoft Ads | {Campaign} | {AdGroup} | {AdId}, {keyword} |
| TikTok Ads | __CAMPAIGN_NAME__ | __AID_NAME__ | __CID_NAME__ |
| LinkedIn Ads | {{CAMPAIGN_NAME}} | {{CAMPAIGN_GROUP_NAME}} | {{CREATIVE_ID}} |
Google Ads auto-tagging vs manual UTMs
Google Ads auto-tagging appends a gclid click ID to every ad click. When your Google Ads and GA4 accounts are linked, GA4 uses the gclid to import campaign, ad group and keyword data, so you don't need UTMs for Google Ads reporting inside GA4. Leave auto-tagging on: it also powers conversion tracking and bidding.
Manual UTMs are still useful when you report in another analytics tool, a CRM or a spreadsheet that can't read the gclid. Add them in the Final URL suffix at account, campaign or ad group level, using ValueTrack parameters such as {campaignid} and {keyword} (the keyword parameter only fills on Search and Shopping). Avoid hard-coding different campaign names in UTMs than in Google Ads, or your reports will disagree.
Common UTM mistakes the builder catches
Most broken tracking comes from a few small slips. The builder flags them as you type, and the parser shows the same problems on links that are already live.
- Missing protocol: example.com/sale becomes https://example.com/sale, with a warning so you can confirm the page loads over HTTPS.
- Existing query strings: product pages often already have ?color=red. The builder appends with & instead of a second ?, which would break the link.
- Fragments: anything after # is never sent to the server and is usually ignored by analytics, so UTMs are placed before it.
- Duplicate parameters: if the URL already has utm_source, it is replaced instead of repeated, since most tools read only the first value.
- Copied click IDs: a pasted link that still carries gclid or fbclid from your own click is flagged, because every visitor would share that click ID.
- Tagging internal links: never put UTMs on links between pages of your own site. Each click starts a new session and overwrites the original source.
Bulk UTM links for ad testing
Creative testing multiplies links quickly: five ad images across three audiences is fifteen URLs to keep straight. Bulk mode takes the source, medium and campaign from the builder and either tags a list of landing pages or creates one URL per utm_content value, such as video-a, video-b and carousel-1. Copy the table as CSV or download it to keep a record of what each ad pointed to, then compare conversions by utm_content in your analytics report.
Frequently asked questions
What is a UTM builder?
A UTM builder is a tool that adds UTM tracking parameters (utm_source, utm_medium, utm_campaign, utm_term and utm_content) to a URL, so analytics tools can report which ad, email or post sent each visitor. This one also validates the URL and supports ad-platform macros.
Which UTM parameters are required?
Technically only utm_source is needed for GA4 to attribute a campaign, but you should always set utm_source, utm_medium and utm_campaign. GA4 uses source and medium to assign the default channel. utm_term and utm_content are optional.
What UTM parameters should I use for Facebook ads?
A common setup is utm_source=facebook, utm_medium=paid_social, utm_campaign={{campaign.name}}, utm_term={{adset.name}} and utm_content={{ad.name}}. Paste it into the URL parameters field in the ad's Tracking section, and Meta fills in the names when someone clicks.
Do I need UTM parameters for Google Ads?
Not for GA4 if auto-tagging is on and the accounts are linked: GA4 reads the gclid instead. Add manual UTMs with ValueTrack parameters in the Final URL suffix only if another tool needs them, and keep auto-tagging enabled.
Are UTM parameters case-sensitive?
Yes. GA4 treats Facebook, facebook and FACEBOOK as three different sources. Keep the lowercase option on in the UTM builder so every link uses the same spelling.
Should I use hyphens, underscores or spaces in UTM values?
Hyphens or underscores. Spaces work but become %20 or + in the URL and make reports harder to read. Pick one separator and use it in every campaign so values group correctly.
Do UTM parameters affect SEO?
Not when they are used on ads, emails and social posts. Don't add UTMs to internal links on your own site, and keep a canonical tag on your pages so search engines index the clean URL rather than tagged versions.
How do I check the UTM parameters in an existing link?
Open the Parser tab and paste the link. It lists every parameter, marks UTMs and click IDs like gclid or fbclid, warns about duplicates or UTMs placed after the #, and gives you a clean URL with tracking removed.