UTM Link Builder

Add campaign tracking tags to any URL and copy a clean, ready-to-share link.

This UTM tag generator runs entirely in your browser. Nothing you type is uploaded.

How to use this tool

This UTM link builder turns a plain page address into a tracked campaign URL you can paste into ads, emails, or social posts. Start with the steps below:

  1. Paste the full website URL you want people to land on, including https://.
  2. Enter the campaign source (where the traffic comes from, such as google or newsletter).
  3. Enter the campaign medium (the marketing channel, such as cpc, email, or social).
  4. Add a campaign name so you can group the visits together in your reports.
  5. Optionally add the term (paid keyword) and content (to tell two versions of the same ad apart).
  6. Click Build tracking URL, then Copy link and use it anywhere.

How UTM tracking works

UTM parameters are small pieces of text added to the end of a URL. When someone clicks the link, those values travel to your analytics tool, which records exactly which campaign, channel, and source brought the visit. That is how Google Analytics campaign tracking groups your marketing traffic instead of dumping it all under "direct" or "referral".

final_url = base_url + "?" + utm_source + "&" + utm_medium + "&" + utm_campaign + "&" + utm_term + "&" + utm_content

Each value is URL-encoded so that spaces and special characters do not break the link. The five standard parameters are utm_source, utm_medium, utm_campaign, utm_term, and utm_content. Source, medium, and campaign are the ones most teams treat as required; term and content are optional. The tool appends the UTM string with a ? if your URL has no query yet, or with an & if it already does.

A real example

Say you are running a paid search ad and your landing page is https://www.example.com/sale. You set the source to google, the medium to cpc, the campaign to spring_sale, and the content to headline_a. The builder produces:

https://www.example.com/sale?utm_source=google&utm_medium=cpc&utm_campaign=spring_sale&utm_content=headline_a

When a visitor clicks that link, Google Analytics records the visit under the Spring Sale campaign, coming from Google paid search, on the "headline_a" creative, so you can compare it against other ad versions.

Common questions

Which UTM parameters are required?

There is no hard rule enforced by analytics tools, but the common practice is to always fill source, medium, and campaign. Term and content are optional and mostly used for paid keywords and for testing different ad creatives.

Should I use uppercase or lowercase?

UTM values are case sensitive, so Google and google show up as two separate sources in your reports. Pick lowercase and stick to it across every campaign to keep your data clean.

How do I add the UTM string to a link that already has a query?

This tool handles it for you. If your URL already contains a ?, the UTM parameters are appended with an & instead, so the existing query is preserved.

Can I use spaces in a campaign name?

You can type them, and the tool will encode each space as %20 so the link still works. Many marketers prefer underscores or plus signs to keep the URL readable.

Is my data sent anywhere?

No. The entire URL builder runs in your browser using JavaScript. Nothing you enter is uploaded to a server, so you can safely build links for private or unreleased pages.