UTM Link Builder: Add Campaign Tags to Any Link
Paste a link, name where you will share it, and copy a tagged version that lets your analytics tell one newsletter, poster or post from another.
| Tag | Value in the link | What it tells you |
|---|
This tool runs in your browser. Nothing you type is uploaded or saved, and there is nothing to install or sign up for.
What UTM tags do for a link
Suppose a school library announces its book fair in three places: the weekly email, a post on the school’s social page and a printed flyer with a scannable code. All three point at the same sign-up page. Afterwards, the analytics report shows 200 visits, but not which announcement brought them.
UTM tags solve that. They are short labels added to the end of a link, after a question mark. The page that opens is the same, but the analytics software reads the labels and files each visit under the source, medium and campaign you named. This builder adds the labels for you and gets the punctuation right, which is where hand-made links usually break.
Building a tagged link
- Paste the full address into Link to tag, including
https://. - Fill in Source, Medium and Campaign. The tool waits until all three are present.
- Add Term, Content or Campaign ID only if you need them.
- Choose what happens to Spaces inside values and whether to Make every value lower case.
- Press Copy link and use the tagged address in that one place. Change the source or medium and copy again for the next place.
The table under the result lists each tag exactly as it will be sent. Reset restores the book fair example and Empty every field clears the form.
Worked example: the book fair email
The builder opens with the link https://example.com/book-fair, the source newsletter, the medium email and the campaign spring book fair. Spaces are swapped for underscores, so the result is a 98-character link carrying three tags:
Tagged result: https://example.com/book-fair?utm_source=newsletter&utm_medium=email&utm_campaign=spring_book_fair
For the flyer, you would keep the campaign and change the other two, for example the source flyer and the medium print. Each version leads to the same page and is counted separately.
The tag names and what belongs in each
The names are fixed. Google’s Analytics Help page on collecting campaign data with custom URLs (read December 2026) lists the parameters below and states that when you add parameters to a URL you should always use utm_source, utm_medium and utm_campaign.
| Tag | Analytics Help describes it as | School example |
|---|---|---|
utm_source | The referrer | newsletter, flyer, parent_portal |
utm_medium | The marketing medium | email, print, social |
utm_campaign | Product, slogan or promo code | spring_book_fair |
utm_term | Paid keyword | Usually left empty |
utm_content | Used to differentiate creatives, such as two links in one email | top_button, footer_link |
utm_id | Campaign ID | bf2026 |
The same help page names two further parameters, utm_source_platform and utm_creative_format, which this builder leaves out because small campaigns rarely need them.
How the link is assembled
A web address has up to three parts that matter here: the path, an optional query string that starts with ?, and an optional fragment that starts with #. The tags must go in the query string, and the query string must come before the fragment. The builder follows these rules:
- No query yet. A question mark is added, then the tags joined by
&. - A query already exists.
https://example.com/page?a=1keepsa=1and the tags are appended after it with&. - A fragment exists.
https://example.com/page#sectionbecomes.../page?utm_source=...#section, so the jump to the section still works. - A tag is already there. If the pasted link contains
utm_source=oldand you set a new source, the old pair is removed and a blue note tells you. A tag you are not setting is left alone.
Each value is then percent-encoded, which means characters with a special meaning in addresses are replaced by a code. With spaces kept and lower case off, the campaign 50% Off & more is written as 50%25%20Off%20%26%20more, and an equals sign in a value becomes %3D. To inspect or reverse that encoding for any text, use the URL encoder and decoder.
Naming habits that keep reports readable
- Pick one letter case. A report may list
Emailandemailas two separate rows. Leaving the lower-case box ticked avoids the split. If you are cleaning an old list of names, the case converter fixes them in bulk. - Avoid spaces. A space has to be written as
%20in an address, which is hard to read. Underscores or hyphens are tidier, and the slug generator turns any phrase into that form. - Write names you will recognize in six months.
spring_book_fairbeatscampaign2. - Keep a shared list. If several people post for the same club, agree the source and medium words once so everyone uses identical spellings.
Limits and common mistakes
- The tags only label visits. They do nothing unless the destination site runs analytics software that reads them, and the builder cannot tell whether yours does.
- Do not tag links inside your own site. Tags are meant for links that bring people in from somewhere else. Tagging internal menus would relabel visitors who are already there.
- Tags are visible. Anyone can read the query string in the address bar, so never put a name, an email address or anything private in a value.
- Tagged links are long. For print, turn the finished link into a square code with the QR code generator instead of asking people to type it.
- The page address must be complete.
example.com/pagewithout the scheme, or an address containing a space, is refused with a message and no link is produced.
When the link is going to be shared in chat or on social apps, it is also worth setting the preview title and picture with the Open Graph tag generator. Related helpers are grouped under tech and web tools, and everything else is in the main list of free online tools.
Frequently asked questions
What is a UTM link?
It is a normal web address with labels such as utm_source, utm_medium and utm_campaign added after a question mark. Analytics software reads the labels to tell where a visit came from.
Which UTM parameters are required?
Google Analytics Help says you should always use utm_source, utm_medium and utm_campaign together. The others, including utm_term and utm_content, are optional.
Do UTM tags change the page that opens?
No. The visitor lands on the same page. The tags are extra labels in the address that analytics software can read.
Can I add UTM tags to a link that already has a question mark?
Yes. The builder keeps the existing query, joins the new tags to it and places everything before any # fragment. If the link already carries a tag you are setting, the old value is replaced.
Should UTM values be lower case?
It is a sensible habit, because a report may treat Email and email as two different values. Tick the lower case box and every value is converted for you.
