UTM Link Builder
Add UTM campaign parameters to a link for Google Analytics, keeping its query and anchor.
Runs in your browser. Nothing is uploaded.
Updated
Edit an existing tagged link
How to use UTM Link Builder
- Enter the page address.
- Fill in source, medium and campaign (and term or content if you need them).
- Copy the finished link.
UTM Link Builder at a glance
Typical use: Tag the link in a newsletter so its visits show up as newsletter / email / spring_sale.
Runs in your browser; nothing is sent anywhere.
What UTM parameters do
UTM parameters are labels at the end of a link that tell Google Analytics (and most other analytics tools) where a visit came from. Without them, a click in a newsletter or a WhatsApp message often shows up only as “direct” traffic.
- utm_source: who sent the visit, such as newsletter, facebook or a partner’s name.
- utm_medium: the kind of link, such as email, cpc, social or referral.
- utm_campaign: which campaign, such as spring_sale.
- utm_term and utm_content are optional: the paid keyword, and which of several links in the same message was clicked.
UTM Link Builder example
Page https://example.com/shoes?color=red#reviews, source newsletter, medium email, campaign Spring Sale gives:
https://example.com/shoes?color=red&utm_source=newsletter&utm_medium=email&utm_campaign=spring%20sale#reviews
The existing color=red stays, the parameters go before #reviews, and “Spring Sale” is lower-cased so it matches other links of the same campaign.
Mediums Google Analytics understands
GA4 sorts visits into channels by the medium. It recognises, among others: email, cpc or anything starting with paid, social, referral, display, affiliate, organic, sms, audio and mediums containing video or ending in push. Other mediums still work, but the visits may show as “Unassigned” in channel reports; the page warns you when that happens.
Prefer the terminal?
The same in Python, keeping any existing query parameters:
python3 -c "from urllib.parse import urlencode; print('https://example.com/sale?' + urlencode({'utm_source': 'newsletter', 'utm_medium': 'email', 'utm_campaign': 'spring_sale'}))"urlencode writes spaces as + rather than %20; both work. If the address already has a ? or a #fragment, the parameters have to go before the # — this page takes care of that.
Frequently asked questions
Are UTM values case-sensitive?
Yes. Google Analytics reports “Facebook” and “facebook” as two sources. Lower case for every value, which the page does by default, keeps reports together.
Should I use UTM links on my own website?
No. Tagging links between your own pages starts a new campaign attribution for the visit and hides where it really came from. Use them only on links placed elsewhere: e-mails, ads, social posts, partner sites, QR codes.
What if the link already has UTM parameters?
The old utm_ values are replaced with the new ones, and the page says which. Other parameters are kept exactly as they were. You can also paste a tagged link under “Edit an existing tagged link” to change it.
Is anything sent to a server?
No. The link is built in your browser as you type.