Developer tool

UTM Link Builder

Paste a destination link and add the campaign tags you want to measure.

Runs in your browser. No upload.

Values are processed locally in this browser.

Result

—

About this tool

UTM Link Builder made simple.

The builder edits the URL in your browser. Use consistent campaign names and check that your analytics setup recognizes the selected parameters.

Guide

Using UTM Link Builder

This tool adds campaign tags to a web address. You paste the page you want people to land on, type a source, a medium and a campaign name, and it hands back one longer link with those tags attached. Term and content are optional extras. It suits anyone who shares links in emails, posts or ads and wants to tell them apart later. It only builds the link. It does not shorten it, track clicks, or check how any analytics program will read the tags.

How to use it

  1. Paste the full page address into Destination URL. It must begin with http:// or https:// and must not contain a user name or password.
  2. Fill in Campaign source, Campaign medium and Campaign name. All three are required by this tool, so leave none of them empty.
  3. Add Campaign term or Campaign content only if you want them. Boxes you leave empty are simply left out of the link.
  4. Press Calculate. The finished link appears under Result, and Copy result puts it on your clipboard.
  5. Paste the link into your email, post or ad, then click it once yourself to check that the right page opens.

Worked examples

A simple newsletter link

You enter
Url
https://example.com/pricing
Source
newsletter
Medium
email
Campaign
spring sale
You get
Result
https://example.com/pricing?utm_source=newsletter&utm_medium=email&utm_campaign=spring+sale

The tags are added after a question mark and joined with ampersands. The space in the campaign name is written as a plus sign.

Run through the tool’s own code.

A link that already has a query and a section anchor

You enter
Url
https://example.com/shop?color=red#top
Source
Facebook
Medium
social
Campaign
launch
Term
running shoes
Content
blue button
You get
Result
https://example.com/shop?color=red&utm_source=Facebook&utm_medium=social&utm_campaign=launch&utm_term=running+shoes&utm_content=blue+button#top

The old color=red part stays, the new tags go after it, and the #top anchor is kept at the very end. Capital letters are not changed, so Facebook stays Facebook.

Run through the tool’s own code.

An old tag is replaced

You enter
Url
https://example.com/?utm_source=old&q=1
Source
new
Medium
m
Campaign
c
You get
Result
https://example.com/?utm_source=new&q=1&utm_medium=m&utm_campaign=c

A tag with the same name is overwritten in its place instead of being added twice. The q=1 part is left alone.

Run through the tool’s own code.

A missing medium

You enter
Url
https://example.com
Source
a
Medium
Campaign
c
You get
Message
Campaign source, medium and name are required.

The tool stops with a short message and gives no link until all three required boxes are filled.

Run through the tool’s own code.

When it helps

  • Tagging the link in a weekly email so its visits can be told apart from other links.
  • Giving each social post or paid ad its own campaign name before you publish it.
  • Keeping a tidy list of tagged links for a launch, with the same naming on every row.
  • Adding a term or content tag to compare two buttons or two headlines that point to one page.
  • Cleaning up a link that arrived with the wrong source tag already on it.

Limits to keep in mind

  • The destination must be a complete address starting with http or https. A bare domain such as example.com is rejected, and so is any address with a user name or password in it.
  • Source, medium and campaign are required by this tool. Term and content are optional.
  • Values are trimmed at both ends but their letter case is kept. Facebook and facebook are two different values, so choose one style and stick to it.
  • The tool only edits the address. It does not check that the page exists, and it says nothing about how an analytics program will group or show the tags.

Tips

  • Write down a naming rule before you start, such as lower case and hyphens, and use it every time.
  • Keep one row per link in a spreadsheet so you can find out later what each tag meant.
  • Open the finished link in a private window to make sure it lands where you expect.
  • Do not put names, email addresses or other private details into any tag, because links get shared and logged.

Common questions

About UTM Link Builder.

What does a UTM link builder do?

It takes the page address you want to share and adds named tags to the end of it, such as utm_source and utm_campaign. The page itself does not change. The tags travel with the link, so whatever reads the address can see where the visit came from.

Which boxes do I have to fill in?

In this tool, the destination address, the source, the medium and the campaign name are all required. Term and content are optional. If a required box is empty you get the message that source, medium and name are required, and no link is made.

Will my analytics program understand these tags?

This page cannot tell you. It builds the link and nothing more. How a given program reads, groups or reports the tags depends on its own settings, so check its help pages and run one test click before you send a real campaign.

What happens if my link already has a question mark in it?

The existing parts are kept and the new tags are added after them with an ampersand. A section anchor that starts with a hash sign is moved to the very end of the finished link, where it belongs.

What if the link already has a source tag?

The old value is replaced by the one you typed, in the same spot, so the tag is not repeated. Tags with other names, such as your own filters, are left untouched.

Why did spaces turn into plus signs?

Spaces are not allowed inside a web address, so the tool writes them as a plus sign. Other special characters are turned into percent codes. For example, a&b=c becomes a%26b%3Dc, which keeps the tag from breaking the link.

Does the tool change capital letters?

No. It keeps your letters exactly as typed, after trimming spaces at the start and end. Because Email and email are different text, pick one writing style, such as all lower case, and use it for every link.

Is the link I type sent to a server?

No. The page says the values are processed locally in your browser. The link is built on your device. Once you paste the finished link into an email or ad, though, whoever receives it can see the tags.

Can I use it for links to a page that needs a login?

You can tag any http or https address, but the tool does not sign in or open the page. An address with a user name and password written into it is refused. Avoid pasting links that carry private tokens in their query, because anyone who sees the finished link can read them.

How do I use UTM link builder?

Paste a destination link and add the campaign tags you want to measure.

Is my data uploaded to a server?

No. This tool runs locally in your browser. Your input is not uploaded.