Launch ToolkitCalculatorsConvertersDeveloperTextAll toolsLaunches
Launch your project Sign in
Theme
Home/Launch Toolkit/UTM Campaign Link Builder

UTM Campaign Link Builder

Add utm_source, utm_medium and utm_campaign to a URL. Term and content are optional. The query is encoded and an existing ? or # is preserved.

Runs in your browser. Nothing you enter is uploaded.

About to launch? List your project on yourhack.ai for free, or go live today with Fast Track. Not sure where else to launch? Compare 25 launch sites.
Launch on yourhack.ai →

Worked examples

The fields this page starts with

URLhttps://example.com/landing
Source, medium, campaignnewsletter, email, launch
Resulthttps://example.com/landing?utm_source=newsletter&utm_medium=email&utm_campaign=launch

A URL that already has a query and a hash

URLhttps://example.com/page?ref=1#top
Source, medium, campaigntwitter, social, spring sale
Resulthttps://example.com/page?ref=1&utm_source=twitter&utm_medium=social&utm_campaign=spring+sale#top

Spaces are encoded as plus signs. The hash stays at the end.

UTM fields this builder writes

FieldQuery keyRequired here
Sourceutm_sourceYes, or the status says it is missing
Mediumutm_mediumYes
Campaignutm_campaignYes
Termutm_termNo. Omitted when blank
Contentutm_contentNo. Omitted when blank

Build a properly tagged campaign URL so your analytics can tell exactly where your traffic came from. Enter your base URL and fill in the standard UTM fields: source such as newsletter or twitter, medium such as email or cpc, campaign name, and the optional term and content fields for keyword and A B testing. The tool assembles a clean, correctly encoded query string and appends it without breaking any parameters your URL already has. Consistent tags matter because analytics tools treat Twitter and twitter as different sources, so this builder keeps everything tidy and copyable in one click. Use it before you share any link in an ad, email or social post, and your reports will group traffic accurately instead of dumping it into direct or referral. Everything is generated locally in your browser and never logged.

How to use UTM Campaign Link Builder

  1. Enter your base URL.
  2. Fill in source, medium and campaign.
  3. Add term and content if needed.
  4. Copy the finished trackable link.

Frequently asked questions

What if my URL already has a question mark?

The new parameters are joined with &. A hash is moved back to the end.

How are spaces encoded?

encodeURIComponent, then %20 is replaced with +.

Are the links stored?

No. The URL is built in the browser.

Is UTM Campaign Link Builder any good?

Give your verdict. Sign-in needed to vote and comment.

Badge

Link this tool from a README, doc or site. The badge links back to this page.

Listed on yourhack.ai

[![Listed on yourhack.ai](https://yourhack.ai/badge/utm-link-builder.svg)](https://yourhack.ai/utm-link-builder)