UTM Builder screenshot

UTM Builder

Build a campaign URL with utm_source, utm_medium, utm_campaign, utm_term and utm_content, keeping any query string the base URL already had.

Privacy First
0 Runs
Updated 2026-11-17
Runs in your browser
No sign-up, no upload

What the UTM Builder does

The base URL is parsed by the platform's own URL parser, so an existing query string survives, a fragment stays at the end, and a value with a space or an ampersand is encoded correctly. Empty parameters are omitted rather than written as utm_term=.

Each value is capped at 200 characters, which is a practical limit for analytics tools that truncate silently.

The page builds the URL; it does not check that your analytics property uses these values. There is no network call and no campaign registry — a typo in utm_medium looks exactly like a new channel to your reports.

How to use it

Paste the page URL into the Base URL box and fill in Source, Medium, Campaign, Term and Content, or press Run with the example already there.

Read the Campaign URL below: the existing ref=x is kept and the UTM parameters follow it.

Check a Campaign URL value with a space — it is percent-encoded, so the analytics tool receives one value rather than two.

Worked example

Input:

https://example.com/pricing?ref=x

Output:

https://example.com/pricing?ref=x&utm_source=newsletter&utm_medium=email&utm_campaign=launch

Why it runs in your browser

The result is produced on this page with JavaScript, so it works offline after the page loads and nothing you enter is sent anywhere.

A campaign URL built from the five UTM parameters, with existing query values kept and every value percent-encoded by the URL parser rather than by string concatenation.

A base URL without a scheme is refused, because `example.com/page` is a relative path and the campaign URL would be ambiguous.

What it does, and what it does not

The base URL is parsed by the platform's own URL parser, so an existing query string survives, a fragment stays at the end, and a value with a space or an ampersand is encoded correctly. Empty parameters are omitted rather than written as `utm_term=`.

Each value is capped at 200 characters, which is a practical limit for analytics tools that truncate silently.

The page builds the URL; it does not check that your analytics property uses these values. There is no network call and no campaign registry — a typo in `utm_medium` looks exactly like a new channel to your reports.

How to use UTM Builder

Paste the page URL into the Base URL box and fill in Source, Medium, Campaign, Term and Content, or press Run with the example already there.

Read the Campaign URL below: the existing `ref=x` is kept and the UTM parameters follow it.

Check a Campaign URL value with a space — it is percent-encoded, so the analytics tool receives one value rather than two.

What to Expect

Best for

  • Tagging a link for a newsletter or a paid campaign
  • Keeping an existing query string while adding UTMs

Not ideal for

  • Checking that your analytics property recognises a value
  • A URL that needs a fragment after the query

What this tool keeps

  • The base URL's existing query values
  • Percent-encoding done by the URL parser

What may need cleanup

  • Agree the parameter values with whoever reads the reports
  • A fragment stays at the end, after the query

Common errors

  • The page refuses it: the base URL is not absolute

Example use cases

  • Tagging a launch announcement
  • Building one link per channel consistently

Sample input

Base URL: https://example.com/pricing?ref=x

Sample output

Campaign URL: https://example.com/pricing?ref=x&utm_source=newsletter&utm_medium=email&utm_campaign=launch …

Who this is for

  • Marketers building campaign links
  • Developers wiring a share link

Frequently asked questions

Are empty parameters omitted?

Yes. An empty term or content is left out entirely rather than written as an empty value, which analytics tools would otherwise record as a real parameter.

What happens to the existing query string?

It is kept. The URL is parsed, the UTM parameters are added, and the result is rendered with both — so ?ref=x survives beside the campaign values.

Does it validate my UTM values?

Only that they are at most 200 characters. Whether email is a medium your analytics property knows is a reporting question this page cannot answer.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.