HomeTools › UTM Link Builder

UTM Link Builder

Build campaign URLs with correctly encoded utm_source, utm_medium, utm_campaign, utm_term and utm_content. Live validation catches the mistakes that split your analytics data.

Fill in your destination and campaign fields, get a properly URL-encoded link, and see warnings for the naming mistakes that silently split one campaign into several in your reports.

How to use it

  1. Paste the destination URL — you can include existing query parameters, they are preserved.
  2. Fill in source, medium and campaign. These three are what every analytics platform needs to attribute the visit.
  3. Copy the result. Check the warnings first — inconsistent casing is the most common way reports get split.

The three parameters that actually matter

utm_source identifies where the traffic came from — a specific newsletter, a specific site, a specific ad platform. utm_medium identifies the channel type: email, social, cpc, referral. utm_campaign identifies the specific promotion.

These three are the minimum. Term and content are refinements: term is for paid keywords, content distinguishes variants of the same link when you are testing two buttons or two placements.

Case sensitivity is the most expensive mistake here

Analytics platforms treat utm_source values as case-sensitive strings. 'Newsletter', 'newsletter' and 'NEWSLETTER' are three separate sources in your reports, and they will stay separate forever because there is no reliable way to merge historical data after the fact.

Pick lowercase for everything and stick to it. This tool warns when it sees mixed case, because fixing it after a campaign has run is not possible.

Never put UTM parameters on internal links

A tagged link starts a new session in most analytics configurations. If a visitor arrives from your newsletter and then clicks a tagged internal link, the original source is overwritten and the visit is attributed to your own campaign instead of the newsletter that actually brought them.

Tag only links that point at your site from somewhere else. Internal navigation should always be untagged.

Why encoding matters more than it looks

Spaces, ampersands and non-ASCII characters have to be percent-encoded or they will truncate the parameter or break the URL entirely. A campaign name with an ampersand in it will silently cut everything after that character.

This tool encodes each value properly and preserves any query parameters already present on the destination URL, so a link to a page that already has its own parameters keeps working.

Questions

What is the difference between source and medium?

Source is the specific origin — 'spring-newsletter' or 'google'. Medium is the channel type — 'email' or 'cpc'. One medium contains many sources.

Can I use UTM links on social media?

Yes, and you should. Social platforms often strip referrer information, so tagged links are frequently the only way to attribute that traffic correctly.

Should campaign names use spaces?

Avoid them. Use hyphens or underscores consistently. Spaces require encoding and make the values harder to read in reports.

Will this overwrite existing parameters on my URL?

No. Existing query parameters are preserved and the UTM parameters are appended to them.

Related tools