Toolstia / UTM link builder

Build a UTM campaign link

When someone clicks a link in a newsletter, a social post or an ad, your analytics often cannot tell where they came from unless the link says so. UTM parameters solve that by appending a few labeled values to the web address. This builder takes a page address plus a source, medium and campaign name, with optional term and content fields, and returns a correctly encoded tagged link that you can paste into an email, a post or an ad platform.

It is most useful for marketers running several campaigns at once and for small businesses that want to know whether the newsletter or the Facebook page sent the orders. The link is built in your browser from what you type, and only the finished address needs to leave the page, when you paste it somewhere.

How it works

  1. Enter the page address.
  2. Fill in the source, medium and campaign name.
  3. Copy the tagged link.

What the tags mean

Source is where the link sits (newsletter, facebook). Medium is the type of channel (email, social, cpc). Campaign is the name of your promotion. Term is the keyword for paid search, and content tells apart two links in the same message.

Keep names consistent

Analytics treats "Email", "email" and "e-mail" as three different mediums. Pick one spelling, preferably lower case, and use it every time.

Existing parameters

If the address already has a query, such as ?id=5, it is kept. Older utm tags on the address are replaced by the new ones, and any #section at the end is kept in place.

Do not tag internal links

Use UTM tags for links on other sites and in emails and ads. On links inside your own site they can overwrite where a visitor really came from.

A finished example

Enter example.com/sale?id=5#top as the address, News Letter as the source, email as the medium, spring sale as the campaign, running shoes as the term and blue&button as the content. The tool adds https:// because the scheme was missing, keeps id=5, and returns https://example.com/sale?id=5&utm_source=News%20Letter&utm_medium=email&utm_campaign=spring%20sale&utm_term=running%20shoes&utm_content=blue%26button#top.

Spaces become %20 and the ampersand inside the content value becomes %26, so it cannot be mistaken for the start of another parameter. The #top fragment stays at the very end, where it belongs.

The tool does not change your wording

Values are encoded but not lowercased or cleaned up. News Letter stays News Letter, so the link carries a capital N and a space. Because analytics reports usually treat different capitalization as different values, decide on a style such as lowercase words joined by underscores, for example spring_sale and news_letter, and type them that way every time.

A short written list of approved sources, mediums and campaign names, shared with everyone who builds links, prevents more reporting mess than any tool can.

Choosing source, medium and campaign

Source answers who sent the traffic: a site, a platform or a list, such as facebook, google or the name of a newsletter. Medium is the category of channel, such as email, social, cpc or referral. Campaign is the initiative: a sale name, a product launch or a month.

Term is mainly for paid search keywords, and content separates two links in the same message, for example header_link and footer_link, or two ad creatives. Leave optional fields empty when you do not need them; the tool leaves them out of the address.

How existing query strings are treated

Any parameter already in the address is kept and placed before the new tags, so ?id=5 survives. But any existing parameter whose name starts with utm_ is removed first, including ones the tool does not create such as utm_id, then your new values are added. If a destination relies on a utm_id, add it back by hand after copying.

If you leave out the scheme, https:// is assumed. The address must contain a dot in its host name, so a bare word such as localhost is rejected.

Where tagged links are a poor idea

Do not tag links from one page of your own site to another. A visitor who arrives from Google and then clicks a tagged internal link may have their session attributed to the internal campaign instead. Also be aware that tagged addresses are longer and visibly messy, so they can look suspicious in plain text. Put them behind a link or button in an email, or shorten them with a link shortener for social posts, since the tags survive shortening.

Using the result in print and QR codes

A tagged link works well inside a QR code on a flyer, a poster or a package insert, with a medium such as print or qr and a campaign name for the placement. Pass the finished address to a QR code generator. Use a different source value for each location, such as shop_window and bus_stop, so you can compare how each placement performs.

Questions

Which fields are required?

The address, source, medium and campaign.

Does the tag change the page?

No. The page looks the same. Only your analytics reads the tags.

Can I shorten the long link?

Yes, with any link shortener. The tags stay inside the short link.

Is anything uploaded?

No. Your link stays in your browser and is never sent anywhere.

Why does the tool say the address is not valid?

The address must be a full web address with a host name that contains a dot, such as example.com. Words with no dot, or text with spaces in the host, are rejected.

Do UTM tags affect search ranking?

They are meant for analytics only. If the same page can be reached with and without tags, make sure the page carries a canonical link to the clean address so search engines treat them as one page.

Can I use spaces in values?

You can, and the tool encodes them as %20. Many teams use underscores or hyphens instead, because they are easier to read and match in reports.

Do I need all five fields?

No. Source, medium and campaign are required, while term and content are optional and are simply omitted when blank.

Will the tags work in every analytics tool?

UTM parameters are widely recognized, including by Google Analytics, but how they appear in reports depends on the tool. Check that your analytics shows them correctly using a test click before a large send.