UTM Builder

Build tagged campaign URLs with UTM parameters for accurate analytics tracking.

Runs in your browserUpdated Built and maintained by Leon and Henrik

Add UTM parameters to any link and track your campaigns accurately — built locally in your browser. Free. No sign-up. Runs in your browser, nothing is uploaded.

UTM Builder

Where the traffic comes from (the referrer).

The marketing channel or type of link.

The specific campaign or promotion.

Optional — paid keywords for this ad.

Optional — tells similar links apart (A/B tests).

Generated URL

Fill in the website URL above to build your tracked link.

Empty parameters are left out automatically. Source, medium and campaign are the standard trio most analytics tools expect.

Runs in your browser
Nothing is uploaded

Paste the page you want people to land on, fill in source, medium and campaign, and the tracked link appears underneath, ready to copy. Missing https:// is added for you, parameters you leave blank are left out, existing query parameters are kept, and a warning appears if one of the three required fields is still empty.

A worked example with a slightly messy input:

  • Website URL: example.com/shoes?color=red#reviews
  • Source: newsletter · Medium: email · Campaign: Spring Sale 2026

Result:

https://example.com/shoes?color=red&utm_source=newsletter&utm_medium=email&utm_campaign=spring%20sale%202026#reviews

Four things happened: https:// was added; the existing color=red survived; the campaign was lowercased and its spaces encoded as %20; and the UTM tags were placed before #reviews. That last point matters — anything after a # never reaches analytics, so tags pasted by hand at the very end of a link with an anchor are silently lost.

The %20s work, but they look broken in a newsletter or a spreadsheet. spring-sale-2026 is easier to read and type; the Slug Generator turns any phrase into that format.

What goes in each field

ParameterAnswersGood valuesAvoid
utm_sourceWho sent the visitor?google, newsletter, linkedin, partner-nameGoogle one day and google the next
utm_mediumThrough what kind of channel?email, cpc, social, referral, affiliate, displayPlatform names (facebook belongs in source)
utm_campaignWhich promotion?spring-sale-2026, webinar-q3Dates without a pattern, internal codes no one remembers
utm_termWhich paid keyword?running-shoesUsing it for anything other than search ads
utm_contentWhich link or creative?header-button, footer-link, video-aLeaving two links in one email identical

A useful mental check: source and medium together should read like a sentence — "from linkedin via social", "from newsletter via email".

Medium values Google Analytics recognises

GA4 sorts visits into default channels such as Email, Paid Search, Organic Social and Referral mostly by looking at utm_medium (and sometimes utm_source). Stick to values it knows:

Use as mediumUsually lands in
emailEmail
cpc or ppc (with a search engine as source)Paid Search
socialOrganic Social
referralReferral
affiliateAffiliates
display or bannerDisplay

Invented mediums are the classic mistake: newsletter, mail-blast or insta-story as the medium don't match any rule, so those visits typically end up as "Unassigned". Put the descriptive detail in source, campaign or content, and keep the medium boring.

A naming convention you'll thank yourself for

UTM values are free text, so consistency is entirely up to you. Write down a short list once and reuse it:

  • Lowercase everything. The builder does this by default.
  • One separator. Hyphens or underscores for multi-word values, never both, never spaces.
  • A fixed medium list. email, social, cpc, referral — and nothing else unless you agree on it.
  • Campaign names that sort. Starting with a year or quarter (2026-q2-spring-sale) keeps reports in order.

Where UTM tags do harm

  • On internal links. Only tag links that bring people to your site from elsewhere. A UTM link from your own homepage to your shop overwrites the real source of the visit, so the campaign that actually brought someone in loses the credit.
  • With private data. Tagged URLs show up in browser histories, server logs and screenshots. Never put email addresses, customer ids or anything secret in a UTM value.
  • On links people share. A tagged link forwarded to friends keeps the original tags, so later visits are credited to the first campaign. That's usually acceptable, but it explains odd spikes.

The link is built in your browser, so destinations and campaign names you haven't launched yet stay private. Before posting a tagged link on social media, check how its card will look with the Open Graph Preview, and adjust the page's share tags with the Meta Tag Generator.

Frequently asked questions