A laptop, a phone and a hand writing in a notebook on a wooden desk, banner image on the UTM Link Builder page

Werkzeuge / Marketing suite

UTM Link Builder

Add UTM campaign parameters to one link or a list of links, with checks for missing and mismatched values.

Enter the destination URLs, fill in the campaign fields, and read the checks. Your URL text is kept as typed, existing query parameters and the fragment stay where they are, and every value is encoded so it reads back exactly as you typed it.

Open the toolWhat is insideWhat it cannot do
Screenshot of the UTM Link Builder tool

What is inside

What is inside the tool.

Nine parameters

utm_source, utm_medium, utm_campaign, utm_id, utm_source_platform, utm_term, utm_content, utm_creative_format and utm_marketing_tactic, the list in Google Analytics Help.

Required fields

utm_source and utm_medium are required, and so is a campaign name or a campaign ID. A link with a gap is not built. If you set one parameter, the tool also reminds you about utm_id and utm_source_platform.

Your link stays as typed

The text before the question mark is copied unchanged, so the host, port and path are not rewritten. Parameters you already have stay in order, and the #fragment stays at the end.

Existing UTM values

A utm parameter that is already in the link is replaced in the same place and the tool tells you the old value. Repeats of it are removed.

Exact encoding

Spaces become %20, and &, =, # and + inside a value are encoded, so the value reads back as typed. Values are kept as typed unless you choose a cleanup option.

Bulk links

Paste one URL per line. Each line gets its own result, a bad line does not stop the others, and repeated results are flagged.

CSV and Copy

Copy gives only the links that passed. The CSV lists every input line with a status, and a link only for the lines that passed.

How to use it

Four steps.

Step 1

Paste the destination URLs, one per line.

Step 2

Fill in source, medium and a campaign name or ID. Add the rest if you use them.

Step 3

Read the checks. Fix errors first. Warnings are for case, spaces and missing recommended fields.

Step 4

Copy the links or download the CSV.

Worked example

One link, three things kept.

You enterThe link keepsWhy
https://www.example.com/pricing?ref=nav#plans?ref=nav first, #plans lastExisting parameters stay in order and the fragment stays at the end.
utm_campaign = Spring Saleutm_campaign=Spring%20Sale and a case warningThe value is kept as typed. A cleanup option can lowercase it and use hyphens.
https://a.com?utm_source=old with source newutm_source=new in the same placeThe tool replaces it and says the old value was old.

What it cannot do

Limits.

It does not see your analytics

The tool builds and checks the URL. It cannot tell whether a source or campaign name matches what your team uses.

Placeholders

Ad platforms fill in placeholders such as {{campaign.name}}. The braces are encoded unless you tick the option to leave them. Whether a platform fills a placeholder in a given field is not checked.

One set of values per run

Every line in a bulk run gets the same parameters. For different values per link, run it again.

No shortener, no click check

Links are not shortened and never opened, so a dead page is not detected.

Android app links

The Google page points to a separate builder for Android app ads. This tool is for website links.

No saved presets

Values are not stored between visits.

What it does

What it does.

ParametersNine, including utm_source_platform, utm_creative_format and utm_marketing_tactic
RequiredSource, medium, and a campaign name or ID
CaseWarns that values are case sensitive
Many links at onceYes, one per line
CSV downloadYes
Existing query and fragmentKept in order, existing utm values replaced and reported

Common mistakes

Each of these produces a check.

Mixed case

Meta and meta report as different values. Pick one spelling and keep it, or use the lowercase cleanup option.

Missing medium

Without utm_medium and utm_source the link is not built.

Tagging links inside your own site

The tool tags whatever you give it. Google Analytics Help describes UTM links for referral links and ad campaigns.

Spaces, hidden characters and backslashes

The tool refuses a URL with a space, a control or invisible character, or a backslash, and one that does not start with http:// or https://. Browsers silently drop or rewrite those, so the link you copy would not match the link that was checked. Use %20 for a space.

Doubling a parameter

If the link already has utm_source, the tool replaces it and shows the old value.

Using http

The tool warns when the link is not https.

Questions

Before you ask.

Is my list uploaded?

No. Everything runs in your browser tab.

Why are my capital letters kept?

Values are case sensitive, so the tool does not change them unless you choose a cleanup option.

Does it change my URL?

Only by adding or replacing utm parameters. The rest of the text is copied as typed.

Which parameters does Google list?

The nine in the first source below.

What does it cost?

Nothing. No account.

Your data

What stays on your device.

The tool runs in this browser tab. Your URLs and campaign values stay in the page. Nothing is uploaded or sent, and the links are never opened.

Keep going

Other tools you may want next.

Sources

References.

Try it

Tag the links, then download the list

Open UTM Link Builder
A wooden desk with glasses, a coffee cup, a plant and the edge of a laptop, banner image on the UTM Link Builder page

Try it now.

UTM Link Builder runs in your browser. No account needed.

Input To Output

Links in, tagged links out

DestinationURLs, one perlineCampaignvalues in ninefieldsTagged linksChecks perlineA CSV with astatus perlineUTM LinkBuilderInOut
InDestination URLs, one per lineCampaign values in nine fieldsUTM LinkBuilderTagged linksChecks per lineA CSV with a status per lineOut
One link or a hundred, the same pass.

Pipeline

Building one link

Trim the lineRun the URL checksClean each valueas chosenEncode every valueReplace or appendeach utm parameterReattach thefragment
Trim the lineRun the URL checksClean each value as chosenEncode every valueReplace or append each utmparameterReattach the fragment
Every line goes through the same six moves.

Spec Sheet

The nine fields

utm_sourcegoogle, newsletterutm_mediumcpc, emailutm_campaignspring_saleutm_idabc.123utm_source_platformSearch Ads 360utm_termrunning shoesutm_contentlogolinkutm_creative_formatvideo
utm_sourcegoogle, newsletterutm_mediumcpc, emailutm_campaignspring_saleutm_idabc.123utm_source_platformSearch Ads 360utm_termrunning shoesutm_contentlogolinkutm_creative_formatvideo
Each with the placeholder the tool shows.

Bar Compare

The nine fields by requirement

Required2 fieldsCampaign name or ID1 fieldsOptional6 fields
Required2 fieldsCampaign name or ID1 fieldsOptional6 fields
Two are always required, one of a pair, six optional.

Before After

Cleanup in lower-hyphen

TypedUsedMeta AdsPaid SocialLaunch Salemeta-adspaid-sociallaunch-sale
Typed to UsedMeta Adsmeta-adsPaid Socialpaid-socialLaunch Salelaunch-sale
Values are rewritten and the change is reported.

Before After

The four cleanup rules

RuleWhat it doesnonelowerlower-hyphenlower-underscorekept as typedlowercasedlowercased, spaces tohyphenslowercased, spaces tounderscores
Rule to What it doesnonekept as typedlowerlowercasedlower-hyphenlowercased, spaces to hyphenslower-underscorelowercased, spaces to underscores
Chosen once, applied to every value.

Input To Output

A link that already has utm values

pricing?utm_source=old&utm_source=olderutm_source=newsletterin the same spotThe old valueis named in awarningOne repeatremovedBuilderInOut
Inpricing?utm_source=old&utm_source=olderBuilderutm_source=newsletter in the samespotThe old value is named in awarningOne repeat removedOut
Old values are replaced in place, repeats removed.

Before After

Encoding is exact

TypedEncodedspring salea&b100% surespring%20salea%26b100%25%20sure
Typed to Encodedspring salespring%20salea&ba%26b100% sure100%25%20sure
Values read back exactly as typed.

Authored Tiles

What blocks a build

Spaces in the URLBackslashesControl or invisiblecharactersNo http:// or https://
Spaces in the URLBackslashesControl or invisible charactersNo http:// or https://
These make the line an error, not a link.

Authored Tiles

What only warns

http instead of httpsA local hostA username or password inthe URLCapitals in a value
http instead of httpsA local hostA username or password in the URLCapitals in a value
The link is built, with a note.

Input To Output

Ad-platform placeholders

utm_term ={{keyword}}The bracesoption tickedutm_term={{keyword}}keptUnticked: awarning thatbraces areencodedBuilderInOut
Inutm_term = {{keyword}}The braces option tickedBuilderutm_term={{keyword}} keptUnticked: a warning that bracesare encodedOut
Braces can stay as typed.

Pipeline

A bulk run

One result perlineA bad line doesnot stop the restIdentical resultsare flagged asrepeats
One result per lineA bad line does not stop the restIdentical results are flagged asrepeats
One paste, many links.

Before After

The CSV guards formulas

Cell valueIn the CSV=1+1+totalplain'=1+1'+totalplain
Cell value to In the CSV=1+1'=1+1+total'+totalplainplain
Cells that start like a formula are quoted.

Spec Sheet

The CSV layout

Columnsinput, link, statusLink columnonly for lines that passedStatusok, or the error textLine endingsCRLF
Columnsinput, link, statusLink columnonly for lines that passedStatusok, or the error textLine endingsCRLF
What the download contains.

Input To Output

Copy copies only passing links

Three lines,one brokenTwo taggedlinks on theclipboardCopy buttonInOut
InThree lines, one brokenCopy buttonTwo tagged links on the clipboardOut
Failed lines stay out of the clipboard.

Pipeline

The fragment never moves

Split at the first#Tag the partbefore itPut the fragmentback at the end
Split at the first #Tag the part before itPut the fragment back at the end
A #plans anchor stays an anchor.

Bar Compare

The starter build

utm values added5 parametersexisting values kept1 parameters
utm values added5 parametersexisting values kept1 parameters
The sample values on the first starter URL.

Input To Output

Not a URL

not a urlSpace: encodeit as %20firstStart withhttp:// orhttps://Not a validURLChecksInOut
Innot a urlChecksSpace: encode it as %20 firstStart with http:// or https://Not a valid URLOut
The checks list every problem at once.

Input To Output

Everything in the tab

Nine fieldsand the URLlistNo fetch callin the codeThe links arenever openedBuilderInOut
InNine fields and the URL listBuilderNo fetch call in the codeThe links are never openedOut
No account, no server.

Before After

Missing required values

GapResultNo utm_sourceNo utm_mediumNo campaign name or IDnot built: utm_source isrequirednot built: utm_medium isrequirednot built: enter a campaignname or ID
Gap to ResultNo utm_sourcenot built: utm_source is requiredNo utm_mediumnot built: utm_medium is requiredNo campaign name or IDnot built: enter a campaign name orID
A link with a gap is not built.