1. Home
  2. Tools
  3. UTM Link Builder

UTM Link Builder

Add campaign tracking parameters to a link without breaking its existing query string or #fragment, then copy it. It runs in your browser.

History for this visit

Kept only on this page, in memory. It is not saved, and it disappears when you reload or close the page.

Links you copy will be listed here.

Your input is processed in your browser and is not sent anywhere. The address is never visited.

How to use it

  1. Enter the full address of the page you are linking to, starting with https:// or http://. It may already have a query string or a #fragment.
  2. Fill in the campaign fields. Source, medium and campaign are the ones most analytics set-ups expect; term and content are optional.
  3. Press Copy and add to history. The link is copied and listed under the history, where you can copy it again or load it back into the form.

What UTM parameters are

UTM parameters are short labels added to the end of a link: utm_source (where the visitor comes from, such as a newsletter), utm_medium (the kind of channel, such as email), utm_campaign (the name of the campaign), and optionally utm_term and utm_content. Many analytics tools read them to attribute visits to a campaign. Use consistent names, because the tool treats Email and email as different values unless you normalise them.

How the link is built

Your address is split at the first #, so the fragment is kept at the very end, after the new parameters. Any existing query parameters stay exactly as you wrote them, and the new ones are added after them with & (or after a ? if there was no query). If the address already contains a parameter with the same name as one you filled in, such as an old utm_source, it is replaced and the tool says so. Values are percent-encoded, so spaces become %20 and characters such as & cannot break the link.

Use them with care

Add UTM parameters to links that point to your site from outside, such as emails, ads and social posts. Avoid them on links between your own pages: they can overwrite the visitor’s original source in analytics and create many different addresses for the same page. For the SEO side of links, see our guides on internal linking, external linking and dofollow and nofollow links.

Related

More SEO and marketing tools: meta and Open Graph tag generator, robots.txt generator and word and keyword density counter. To take a link apart or encode values by hand, use the URL encoder, decoder and parser. For help with campaigns, see our marketing expertise.

Frequently asked questions

No. The link is built by your browser’s own JavaScript and is never visited or uploaded. The history lives only in the page’s memory and is gone when you reload or close it.

They are kept. For https://example.com/offer/?a=1#top the result looks like https://example.com/offer/?a=1&utm_source=…#top: the existing parameter stays first, the UTM parameters follow, and the fragment stays at the end.

The tool only needs one to build a link, but source, medium and campaign are the ones most analytics reports expect, so it warns you when any is missing.

It is a common convention, because values are usually case sensitive in reports. The option is off by default so your text is kept exactly as typed.

They do not change the page content, but they create additional addresses for it. A canonical link on the page, pointing at the address without the parameters, helps search engines treat them as one page.

Need a hand with this?

Let our engineers take it from here