Skip to content
ToolsLeb ToolsLeb

UTM Link Builder

Build a correctly encoded campaign link with UTM parameters so you can see which campaigns bring visitors in your analytics.

Any existing query parameters, credentials, or #fragment are preserved.

Share on Social Media:

The UTM Link Builder adds campaign tracking parameters to a link so your analytics can tell you where visitors came from. Enter the Base URL of the page you're promoting, fill in Campaign source, Campaign medium and Campaign name, optionally a term and content, and press Build Link. You'll get a single, correctly encoded URL ready to paste into an email, social post or ad.

What the five parameters mean

  • utm_source: who sent the visitor, e.g. newsletter, facebook, linkedin, partner-site.
  • utm_medium: what kind of channel, e.g. email, social, cpc, referral, qr. Google Analytics 4 uses source and medium to sort traffic into channels, so standard values such as email, cpc and social land in the right default groups.
  • utm_campaign: which campaign, e.g. spring_sale or 2026-11-product-launch.
  • utm_term (optional): the paid keyword, mainly for search ads.
  • utm_content (optional): which link or variant was clicked, e.g. header-button versus footer-link, for comparing versions of the same message.

Naming rules that keep reports clean

  1. Use lowercase everywhere. Analytics treats Facebook and facebook as two different sources, splitting your numbers.
  2. Pick one separator and stick to it: spring_sale or spring-sale, not both. Avoid spaces. The builder encodes them safely, but they make links ugly and easy to mistype.
  3. Write your conventions down in a shared sheet so everyone on the team tags links the same way.
  4. Never put UTM tags on internal links between pages of your own site. They overwrite the visitor's real source, and your reports end up crediting "homepage-banner" for traffic that actually came from Google.
  5. Don't include personal data such as email addresses in UTM values. They end up in analytics reports and server logs.

What the builder handles for you

If your base URL already has a query string (for example ?ref=partner), the UTM parameters are added after it rather than replacing it. A #fragment is kept at the end, where it has to be for the link to work. Every value is URL-encoded, so characters such as & or spaces can't break the link.

A worked example

Base URL https://example.com/shop?ref=1, source newsletter, medium email, campaign spring_sale gives https://example.com/shop?ref=1&utm_source=newsletter&utm_medium=email&utm_campaign=spring_sale. In Google Analytics, visits from that link appear under the newsletter / email source/medium and the spring_sale campaign.

Links are built on our server from what you type and aren't stored or shortened. Test the finished link once before sending it to a large audience.

Frequently Asked Questions

Yes. Any existing query string, such as ?ref=partner, is kept and the UTM parameters are added after it. A #fragment is moved to the very end, where browsers expect it, so the link still jumps to the right section of the page.

Yes. The final URL is rebuilt using RFC 3986 percent-encoding, so spaces, slashes, ampersands, and other special characters in your UTM values won't break the link.

Yes — using consistent naming conventions (like always lowercase, always "email" not sometimes "Email") is important, since analytics platforms treat differently-cased or worded values as entirely separate sources.