UTM Link Builder

Add UTM campaign tags to a link, or split a tagged link into fields.

About UTM Link Builder

A UTM link builder that adds utm_source, utm_medium, utm_campaign and other tags to a URL, or splits a tagged link back into its separate fields.

How to use

  1. Paste the page URL. The scheme is optional: example.com/page is read as https.
  2. Fill in source, medium and campaign, plus term and content if you use them. Add custom parameters such as utm_id when needed.
  3. Copy the tagged URL. To edit a link that is already tagged, paste it and press "Split into fields".

What it does

  • Appends each filled-in value as a query parameter, in the order source, medium, campaign, term, content, then custom parameters.
  • Keeps an existing query string as it was written and puts the new parameters after it, before any #fragment.
  • Replaces a parameter that is already in the URL when you set a new value for the same name, so nothing is duplicated.
  • Percent-encodes names and values, so a space becomes %20 and characters such as &, = and # cannot break the link.
  • Splitting moves the five standard tags into their fields and other utm_ names into custom parameters, and leaves everything else on the URL.
  • Does not shorten links, does not check that the page exists, and does not enforce a naming scheme. It does not change the case of your values, and analytics tools count Email and email separately.

Example

https://example.com/pricing?plan=pro#faq
source: newsletter   medium: email   campaign: spring sale

https://example.com/pricing?plan=pro&utm_source=newsletter&utm_medium=email&utm_campaign=spring%20sale#faq

Privacy

The link is built in the browser. No request is made, the URL is not visited, and nothing is stored.

Frequently asked questions

What are UTM parameters?
Tags added to the end of a link, such as utm_source=newsletter, that tell an analytics tool where a visit came from. The five standard ones are utm_source, utm_medium, utm_campaign, utm_term and utm_content. They do not change the page that loads.
Which UTM parameters are required?
Nothing breaks if one is missing, but a link is only useful in reports with utm_source, utm_medium and utm_campaign filled in. utm_term and utm_content are optional: term for a paid search keyword, content to tell apart two links in the same campaign.
Do UTM parameters go before or after the # in a URL?
Before. The query string, UTM tags included, has to come before the #fragment. Anything after the # is part of the fragment, which is not sent to the server and is not read as parameters by most analytics tools.
Are UTM parameters case sensitive?
Yes. Google Analytics and most other tools treat utm_source=Email and utm_source=email as two different sources. Pick a convention, usually lower case with underscores or hyphens, and keep to it.