HandyBench

UTM Campaign URL Builder

Tag links with UTM parameters for tracking.

https://example.com/landing?utm_source=newsletter&utm_medium=email&utm_campaign=spring_sale

Source, medium and campaign are the three required UTM parameters Google Analytics uses to attribute traffic. Term and content are optional. Values are URL-encoded automatically.

How to use the UTM Campaign URL Builder

  1. 1 Paste the URL you want to promote.
  2. 2 Fill in the campaign source, medium and name (the three required UTMs).
  3. 3 Add optional term and content for paid or A/B-tested links.
  4. 4 Copy the tagged URL and use it in your campaign.

How UTM tagging works

UTM parameters are plain query-string keys appended to a link. When someone clicks it and lands on a page running Google Analytics (or most other analytics tools), the script reads them from the URL and records where the visit came from. They are not sent to search engines for ranking; they exist only so your reports can separate a newsletter click from a social post or a paid ad that all point to the same page.

The five parameters

ParameterStatus in this toolMeaningExample
utm_sourceRequired (*)The specific origin of the trafficnewsletter, facebook
utm_mediumRequired (*)The channel typeemail, cpc, social
utm_campaignRequired (*)The campaign or promotion namespring_sale
utm_termOptionalThe paid keywordrunning shoes
utm_contentOptionalDistinguishes variants, links or A/B versionsheader_banner

The tool shows a hint if any of the three starred fields are empty, and it skips any blank field entirely rather than writing an empty parameter.

What the builder does to your URL

It parses your base address with the browser's URL parser, sets each filled parameter, and prints the result. That has useful consequences: existing query parameters and any #fragment are preserved, spaces in values are encoded automatically, and if the URL already contains a utm_source it is overwritten rather than duplicated. A base URL without https:// is rejected with a validation message.

Worked example

Base URL https://example.com/pricing?ref=partner#plans, source linkedin, medium social, campaign q3_launch, content carousel_ad gives:

https://example.com/pricing?ref=partner&utm_source=linkedin&utm_medium=social&utm_campaign=q3_launch&utm_content=carousel_ad#plans

Common mistakes

  • Inconsistent casing. Analytics treats Email and email as different values, which splits your reports. Pick lowercase and underscores and document the convention.
  • Typing a plus sign for spaces. Values are encoded for you, so a literal + becomes %2B. Type a normal space in a term like "running shoes" and it is written as running+shoes.
  • Tagging internal links. Putting UTMs on links between pages of your own site can start a new session and overwrite the original source in your reports. Use them only on links that come from outside.
  • Putting private data in them. UTMs are visible in the address bar and in shared links. Never include emails or user IDs.
  • Using the wrong medium. Standard values such as cpc, email and social map to Google Analytics default channel groups. An invented medium like blast often lands in "Unassigned" or "Other".

Effect on SEO

Tagged URLs are separate addresses to a crawler, so give the destination page a canonical tag pointing to the clean URL. Build one with the meta tag generator. To see how a tagged link is percent-encoded, try the URL encoder and decoder.

Examples

  • ▸ https://example.com/landing?utm_source=newsletter&utm_medium=email&utm_campaign=spring_sale

Frequently asked questions

What are the required UTM parameters?

utm_source (where the traffic comes from), utm_medium (the channel, e.g. email or cpc) and utm_campaign (the campaign name). utm_term and utm_content are optional.

Are UTM values case-sensitive?

Yes. "Email" and "email" are counted as separate sources in analytics, so pick a convention (usually all lowercase) and stick to it.

Do UTM parameters hurt SEO?

No. They are query parameters for analytics. Use a canonical tag on the destination page so search engines consolidate the tagged variants.

What is the difference between utm_source and utm_medium?

Source is the specific place the click came from, such as newsletter or facebook. Medium is the type of channel, such as email, social or cpc. A good check is that many different sources can share one medium.

Should I use UTM parameters on links inside my own website?

No. A tagged internal link can start a new session and replace the visitor’s original source in your reports. Reserve UTMs for links on other sites, emails, ads and social posts that point to you.

What happens if my URL already has a query string or a fragment?

This builder keeps existing parameters and the #fragment and appends the UTM parameters to the query. If the URL already has a utm_ parameter of the same name, the new value replaces it instead of creating a duplicate.