UTM Link Generator

Build campaign tracking URLs with UTM parameters for Google Analytics, correctly encoded, in your browser.

Independently verified for accuracy

Calculator by Toolsloft ↗
Tracking URL
https://example.com?utm_source=newsletter&utm_medium=email&utm_campaign=summer%20sale

Build a campaign tracking URL by adding UTM parameters to any link, so Google Analytics and other tools can attribute the traffic. Fill in the source, medium, and campaign, plus optional term and content, and the tool produces a ready-to-share link with the values correctly encoded. It appends to existing query strings without breaking them.

How this is calculated

The tool appends utm_source, utm_medium, and utm_campaign (and optional utm_term and utm_content) as query parameters, following the standard Google Analytics UTM scheme. Values are percent-encoded per RFC 3986, and the correct separator (? or &) is chosen based on whether the URL already has a query string.

How to use

  1. Enter the destination URL starting with http:// or https://.
  2. Fill in the campaign source, medium, and campaign name.
  3. Add an optional term and content, then copy the generated link.

Examples

  • Email campaign: newsletter / email / summer sale → ...utm_campaign=summer%20sale
  • Existing query: A URL with ?x=1 keeps it and appends with &

FAQ

Which parameters are required?
Source, medium, and campaign are required, matching Google Analytics guidance. Term and content are optional and are only added when you fill them in.
What if my URL already has a query string?
The tool detects an existing question mark and joins the UTM parameters with an ampersand, so the original query is preserved.
Are spaces and special characters handled?
Yes. Values are percent-encoded, so a campaign like "summer sale" becomes summer%20sale in the link.

Embed this calculator

Add this free calculator to your own site. Copy the code and paste it where you want it to appear.