Skip to content

UTM builder: free campaign URL generator for GA4

Free · no sign-up · runs in your browser

Free UTM builder: paste a URL, add source, medium and campaign, and copy a correctly encoded tracking link for GA4. Flags the capitals and spaces that split reports.

A bare hostname works; https is assumed.

Where it comes from — newsletter, google, twitter.

The channel — email, cpc, social.

Which campaign — spring-launch.

Paid keyword. Optional.

Which creative or link. Optional.

Copy the link

Tracking URL

https://example.com/pricing?utm_source=newsletter&utm_medium=email&utm_campaign=spring-launch

Recent links

Links you build appear here.

Kept in this browser only. Never sent anywhere.

Your tool hereOn tool pages, blog posts and the feeds, next to what people came to read.$19 / 3 months →

A UTM link is simple enough that most people build one by hand, and that is exactly why campaign reports end up with 'Email', 'email' and 'e-mail' as three separate sources. This appends the parameters properly — keeping any query string and fragment the URL already had, encoding values so an ampersand in a campaign name cannot break the link — and flags the inconsistencies before they reach your analytics rather than after.

How it works

  1. 01Paste any URL. A bare hostname works — the scheme is filled in as https rather than the link being rejected.
  2. 02Source, medium and campaign are the three that make a visit attributable; term and content are optional and used mostly for paid search and A/B variants.
  3. 03Parameters are appended with the URL's own encoder, so an ampersand, an equals sign or a hash inside a value cannot break the link. Building these by string concatenation is where that goes wrong.
  4. 04An existing query string and fragment are preserved, so a link into a specific section of a page still lands there. Existing utm values are replaced rather than duplicated — a URL carrying two sources is ambiguous, and tools disagree about which wins.
  5. 05Values are checked for capital letters and spaces. Analytics tools treat source values case-sensitively, so Email and email are two rows for the same campaign; the tidy button rewrites a value to a safe lowercase-and-hyphens form.
  6. 06The last ten links you build are kept in your browser's own storage so you can copy one again. They are never sent anywhere, and the clear button removes them.

Use cases

  • Tagging a newsletter link so the traffic it brings is attributable.
  • Building a consistent set of links for one campaign across email, social and paid.
  • Adding tracking to a link that already has query parameters, without breaking them.
  • Distinguishing two creatives in the same campaign with utm_content.
  • Fixing a link that was hand-built with a space or a capital in the source.
  • Producing a batch of links quickly and copying them back from the history.

Frequently asked questions

What are the five UTM parameters?

utm_source (where the traffic comes from — newsletter, google, twitter), utm_medium (the kind of channel — email, cpc, social), utm_campaign (which campaign — spring-launch), utm_term (the paid keyword) and utm_content (which creative or link, for telling two variants apart). The first three are what make a visit attributable at all; the last two are refinements.

What is the difference between utm_source and utm_medium?

The source is the specific sender or site — newsletter, google, linkedin. The medium is the kind of channel it belongs to — email, cpc, social. GA4 files traffic into its default channel groups mostly by the medium, so a standard value like email or cpc lands in Email or Paid Search, while an invented one like newsletter-blast ends up under Unassigned.

Does GA4 read any UTM parameters besides these five?

Yes: GA4 also reads utm_id (a campaign ID, used mainly to join cost data you import), utm_source_platform, utm_creative_format and utm_marketing_tactic. Most links never need them. This builder writes the five standard parameters, which are the ones every analytics tool understands.

Are UTM parameters case-sensitive?

Yes, and this catches more people than any other detail. GA4 and most other tools treat Email and email as different sources, so one campaign reported both ways is split across two rows and neither shows the real number. Pick lowercase, use it everywhere, and use the tidy button here to enforce it.

Should I use spaces in a UTM value?

No. A space is encoded as %20 or + depending on what encoded it, so the same campaign can arrive under two spellings and split again. Use hyphens — spring-launch, not spring launch. This tool flags any value containing whitespace.

Do UTM parameters hurt SEO?

Not if the page has a self-referencing canonical tag, which it should have anyway. The tagged URL is a distinct URL, so without a canonical you can end up with duplicate URLs indexed. UTM links are also normally used in email, social and ads rather than in links between your own pages — tagging internal links actively breaks attribution, because it restarts the session and overwrites the original source.

Can I add UTM parameters to a URL that already has a query string?

Yes, and this handles it: existing parameters and the fragment are kept, and the utm values are appended or replaced. What you should not do is append `?utm_source=...` to a URL that already has a `?` — that produces a malformed link, which is the most common hand-building mistake.

Where is the link history stored?

In your browser's local storage, on your machine only. Nothing is sent to a server, it is not shared between devices or browsers, and clearing it removes it. If storage is unavailable — private browsing, or a browser set to block it — the tool still works and simply does not remember.

Related reading

More tools