Contact

UTM Builder Generator

Output
Character: 0Word: 0Line: 0Sentence: 0

Found this tool useful? Share it:

Share
Share
Share
Share

What this UTM builder does

It adds UTM tracking parameters to a link so that Google Analytics can report where a visit came from: which source, which medium and which campaign. You fill in the fields, and the tool returns the finished URL, ready to use in an ad, an email or a social post.

How to build a campaign URL

  1. Enter the page you are linking to. It can start with https:// or just be a domain and path.
  2. Choose a source and a medium from the lists, or pick Custom to type your own, then enter a campaign name.
  3. Add a term (the paid keyword) or content (to tell links apart) only if you need them.
  4. Press Generate UTM URL, or Generate All Variations to also get versions with the term, the content and both.

The UTM parameters

UTM parameters, whether Google Analytics expects them, and what each identifies
ParameterExpectedIdentifiesExamples
utm_sourceYesWhere the traffic comes from: a search engine, a newsletter, a billboard.google, newsletter4, billboard
utm_mediumYesThe kind of channel: cost-per-click, banner, email.cpc, banner, email
utm_campaignYesThe product, slogan or promotion.spring_sale
utm_termOptionalThe paid keyword.running+shoes
utm_contentOptionalWhich creative or link was clicked, for example two links in one email.header_link, ad_variation_a

Google Analytics expects utm_source, utm_medium and utm_campaign whenever you tag a link; missing ones show up as (not set) in reports. Google also describes optional parameters such as utm_id and utm_source_platform. This tool does not add those two.

How the URL is built

How this tool builds the campaign URL
SituationWhat the tool does
The URL has no https://Adds https:// in front. Only http and https addresses are accepted.
The URL already has a query stringKeeps the existing parameters and adds the UTM ones.
The URL already has utm_ parametersReplaces them with the values you entered.
The URL ends with a #fragmentKeeps the fragment. The UTM parameters are placed before it.
The campaign name contains spacesReplaces them with underscores, so Spring Sale becomes Spring_Sale.
Term or content contains spacesEncodes them once as +, so running shoes becomes running+shoes.
Source, medium or campaign is missingNo URL is produced. All three are required.
Source, medium or content valuesUsed exactly as typed. Capital letters are not changed.

Examples

A paid search link

Fields
URL:       example.com/page
Source:    google
Medium:    cpc
Campaign:  Spring Sale 2026
Term:      running shoes
Content:   ad a
Result
https://example.com/page?utm_source=google&utm_medium=cpc&utm_campaign=Spring_Sale_2026&utm_term=running+shoes&utm_content=ad+a

A link that already has parameters and a fragment

Fields
URL:       https://example.com/p?ref=x&utm_source=old#section
Source:    newsletter
Medium:    email
Campaign:  launch
Result
https://example.com/p?ref=x&utm_source=newsletter&utm_medium=email&utm_campaign=launch#section

Naming tips

  • Parameter values are case sensitive in Google Analytics: utm_source=google and utm_source=Google are different values, and Google recommends lowercase. Pick a convention and stick to it.
  • Use the same names every time. Email, email and e-mail would be reported as three separate mediums.
  • Keep names short and readable, with underscores instead of spaces.
  • UTM values are visible in the address bar, in shared links and in reports, so do not put personal data in them.

Limits

  • The tool builds a URL. It does not check that the page exists, shorten the link or send anything to your analytics.
  • It does not add utm_id or utm_source_platform.
  • Typed source and medium values are not lowercased for you. Type them in lowercase to follow Google's recommendation.

Privacy

The URL is built in your browser and nothing you enter is sent to our servers.

See also

Frequently asked questions

Which UTM parameters are required?
Google Analytics expects utm_source, utm_medium and utm_campaign. utm_term and utm_content are optional. If a required one is missing, reports show (not set), and this tool will not produce a URL until source, medium and campaign are filled in.
What is the difference between source, medium and campaign?
Source is where the traffic comes from (google, newsletter). Medium is the type of channel (cpc, email, social). Campaign is the specific promotion or product (spring_sale).
Are UTM values case sensitive?
Yes in Google Analytics. utm_source=google and utm_source=Google are reported as different values, and Google recommends lowercase. This tool keeps your capital letters exactly as typed, so type lowercase.
What does the tool do to spaces?
Spaces in the campaign name become underscores. Spaces in term and content are encoded as +. Nothing is encoded twice, so running shoes becomes running+shoes.
Will it keep the parameters already in my link?
Yes. Existing query parameters and any #fragment are kept, and existing utm_ parameters are replaced with the values you enter.
Do I need to type https://?
No. If it is missing, https:// is added. Addresses that use another scheme, such as ftp://, are rejected.
What does Generate All Variations do?
It lists the standard URL and, if you filled them in, versions that add the term, the content, and both together.
Does it add utm_id or utm_source_platform?
No. Google lists them as optional extras. This tool covers the five classic parameters: source, medium, campaign, term and content.
Is anything I enter sent to your servers?
No. The URL is built in your browser.