UTM Builder

Add campaign parameters to a URL. To split a finished link apart, use the URL parser

Page URL
Sourceutm_source
Mediumutm_medium
Campaignutm_campaign
Termutm_term
Contentutm_content
IDutm_id

What is added to the link

Campaign links carry utm_source, utm_medium, utm_campaign and a few optional fields. This page writes those query parameters onto a page URL. Splitting a URL you already have is the URL parser.

How to use it

  1. Enter the page URL. The fields are utm_source, utm_medium, utm_campaign, utm_term, utm_content and utm_id.
  2. Lowercase the values rewrites the values, not the parameter names. The result updates as you type.
  3. Convert runs once. Show Example sets the page to https://example.com/page, source newsletter, medium email, campaign spring, term shoes, content logo and id 42, with lowercase off. The result is https://example.com/page?utm_source=newsletter&utm_medium=email&utm_campaign=spring&utm_term=shoes&utm_content=logo&utm_id=42.
  4. An existing query on the page URL is kept. An empty field removes that parameter.
  5. Clear All empties every field and the result. Copy Result copies the URL. A page that is not a URL is an error.

How the query is written

The page must be an absolute URL, including the scheme. Values are encoded with the URL query rules, so a space becomes a plus or %20. Parameter names stay lowercase as written in the form.

Lowercase the values applies to the six utm values only. Filling a field again replaces the previous value of that name.

Where people use it

  • A newsletter link with source, medium and campaign filled in.
  • Adding utm_content when the same campaign has two buttons.
  • Lowercasing values so reports group Newsletter and newsletter together.

Questions

Why did a path without https fail?

The page URL has to include a scheme, such as https://.

Does an empty term stay in the link?

An empty field is omitted, and a parameter already on the URL with that name is removed.