UTM Link Builder

Build a properly tagged campaign URL. The parameters that are already in the destination are preserved, existing utm values are replaced instead of duplicated, and empty fields are left out entirely so you never ship a link that ends with an empty utm_source to production.

Input

Tagged URL


            
            

Ready — paste some input or load the sample.

100% Client-Side · Privacy First. This tool runs entirely inside your browser. Nothing you type is uploaded, logged or sent to a server — you can even use it offline.

Overview

UTM parameters are the standard way to mark a link so that analytics can tell where a visit came from. The five parameters have fixed roles: utm_source names the platform, utm_medium names the channel type, utm_campaign groups the links that belong to one initiative, utm_term holds the paid keyword, and utm_content distinguishes two links in the same place. The parameter names are case sensitive in most tools, and the values should be lower case and hyphenated, because that is what makes the same campaign line up between the ad platform and the analytics report. This builder appends the parameters to any URL, keeps the parameters that are already there, replaces the ones you set, and removes the ones you clear, so you can correct a link without rebuilding it. The result is a full URL with the parameters encoded properly, which matters because a campaign name with a space has to become a plus sign rather than a raw space.

How to use the utm link builder

  1. 1Paste the destination URL into the first field.
  2. 2Fill in the source, the medium and the campaign.
  3. 3Add a term and a content value when the link needs them.
  4. 4Read the notes, which list the parameters that were set and the ones that were left out.
  5. 5Copy the finished URL into your newsletter, your ad or your social post.
  6. 6Keep the parameter values short, because some analytics tools drop a UTM value that runs past a few dozen characters.

Cheat sheet

The syntax you will use most, and what each part does.

PatternWhat it means
utm_source The platform the traffic comes from, such as newsletter, google or partner-blog.
utm_medium The channel type, such as email, cpc, social or referral.
utm_campaign The initiative the link belongs to. Use the same name across every link in it.
utm_term The paid keyword, used on search advertising.
utm_content The variant, used to tell two links in the same place apart.
?a=1&utm_source=x Existing query parameters are kept, and the UTM parameters are appended to them.

Common mistakes

The report shows two campaigns instead of one.

The campaign names differ by case or spacing. Use lowercase and hyphens, for example spring-sale, and apply the same name on every platform.

A parameter is missing from the report.

An empty value is removed from the URL rather than being sent as an empty parameter, so check that the field was actually filled in.

The link breaks in an email.

The values are encoded, so a space becomes %20 and an ampersand inside a value is escaped. Never build the query string by hand.

The traffic is counted twice.

A link with UTM parameters that redirects again, or two different parameter names for the same source, splits the campaign. Agree on the naming once and stick to it.

Worked examples

A newsletter link

https://example.com/pricing
utm_source: newsletter
utm_medium: email
utm_campaign: spring-launch

A URL with three appended parameters, encoded and ready to paste.

A link that already has parameters

https://example.com/p?ref=abc
utm_source: twitter
utm_medium: social

The original ref parameter is preserved and the two UTM parameters are appended.

Frequently asked questions

Does the builder send the URL anywhere?

No. The link is assembled in your browser, which matters because a campaign URL often points at a private, unlisted or paywalled page.

Which parameters are required?

Only utm_source, utm_medium and utm_campaign are worth setting on every link. utm_term belongs to paid search keywords and utm_content identifies a specific variant such as a hero button.

Should the values be lower case?

Yes. Analytics tools treat the values as case sensitive, so Newsletter and newsletter become two different sources. Lower case with hyphens is the convention that survives contact with every platform.

Can I remove a parameter that is already in the URL?

Yes. Clearing a field removes that parameter from the result, while the parameters that were already in the URL are left alone.

What happens if the destination already has a utm_source?

The existing value is replaced rather than appended, so the link has exactly one utm_source. A link with two of them is counted as two different campaigns in most reporting tools.

Why are the empty parameters left out?

Because utm_source= with nothing after the equal sign is counted as its own source in most analytics tools, which pollutes the report with a row nobody ever clicked.

Do the values need to be URL encoded?

The builder encodes them for you, so a campaign name with a space or an ampersand still produces a valid link that survives being pasted into an email client.

Should the same link be reused across platforms?

Not without changing the source. A newsletter and a tweet that point at the same page need different utm_source values, or the traffic from both is merged into one untraceable row.

How many campaign links should I create?

One per channel and per campaign, with the source naming the channel and the campaign naming the initiative. A shared link for everything is the reason a report shows a single anonymous row.

Does a UTM parameter change where the link points?

No, the parameters are ignored by the server, so the destination is unchanged. A link with a campaign parameter and a link without one both reach the same page.

Can I use UTM parameters with a URL that already has a query string?

Yes, and that is the normal case. The existing parameters are preserved and the campaign parameters are appended after them with an ampersand.