FormatterHQ

UTM Campaign URL Builder

Tag links for newsletters, ads and social posts with UTM parameters so Google Analytics shows exactly which campaign brought each visitor.

Output TEXT
Ready.

How to use the UTM Campaign URL Builder

  1. Fill in the Website URL, Campaign source (required), medium, campaign name, term, content and ID in the options panel.
  2. Click Build URL. With auto-update on, the output refreshes as you type.
  3. Review the result in the output editor.
  4. Copy it to the clipboard or download it as a file.

Build tracked campaign links with the UTM builder

UTM parameters are tags added to a URL's query string that analytics tools read to attribute visits. Without them, traffic from a newsletter or a PDF often shows up as "direct" and you cannot tell which campaign worked. This UTM builder assembles the link and normalises the values so your reports stay tidy.

The parameters

ParameterAnswersExamples
utm_sourceWho sent the visitor?google, newsletter, linkedin
utm_mediumWhat kind of channel?cpc, email, social, referral
utm_campaignWhich campaign?autumn-sale, product-launch
utm_termWhich keyword (paid search)?running-shoes
utm_contentWhich link or creative?header-button, banner-b
utm_idCampaign ID for data importspring_2026_01

Example

https://www.example.com/pricing?utm_source=newsletter&utm_medium=email&utm_campaign=autumn-sale&utm_content=header-button

Consistency is everything

Analytics treats Email, email and e-mail as three different mediums. The builder lowercases values by default and replaces spaces with dashes (or underscores or plus signs), so the same campaign never splits into several rows. Existing query parameters on your URL are preserved, and old UTM values are replaced rather than duplicated.

For GA4, use medium values that match its default channel definitions — email, cpc, social, affiliate, display — otherwise traffic lands in "Unassigned".

Worked example: one campaign, several links

Keep the campaign name identical everywhere and let the other parameters describe where each click came from:

Link placed inutm_sourceutm_mediumutm_content
Newsletter header buttonnewsletteremailheader-button
Newsletter footer linknewsletteremailfooter-link
LinkedIn postlinkedinsociallaunch-post
Printed flyer QR codeflyerprintqr

All four use utm_campaign=autumn-sale. In Google Analytics 4 you can then compare them under Reports → Acquisition → Traffic acquisition, switching the primary dimension to Session campaign or Session source / medium, and add Session manual ad content to see which button or post performed best.

When not to use UTM tags

Never add UTM parameters to internal links on your own site: they overwrite the original source and start a new session. Google Ads adds its own gclid through auto-tagging, so manual tags are only needed for other platforms. Long tagged URLs are easier to share as a QR code — generate one with the QR code generator — and you can inspect any tagged link with the URL parser.

A naming convention for your team

Agree on a short list of allowed sources and mediums and write it down, for example newsletter/email for your mailing list, linkedin/social for organic posts and linkedin/cpc for paid ones. Use the campaign name for the initiative (black-friday-2026) and utm_content to tell apart links inside the same message (hero-button, footer-link). With a consistent scheme you can compare campaigns over months without cleaning data, and the builder's normalisation options keep everyone's links in the same format.

Privacy

The tool runs entirely in your browser. Nothing you type or paste is sent to our servers.

Frequently asked questions

Which UTM parameters are required?
utm_source is required by Google Analytics; utm_medium and utm_campaign are strongly recommended. The others are optional.
Are UTM parameters case-sensitive?
Yes. Analytics reports "Email" and "email" separately, which is why the builder lowercases values by default.
Do UTM parameters affect SEO?
Not if you only use them on external campaign links. Keep canonical tags on your pages pointing to the clean URL, and never use UTM tags for internal links.
Can I shorten a UTM link?
Yes. A link shortener or a QR code keeps the parameters intact while making the link easier to share.

Last updated September 26, 2026

Related tools

XML Sitemap Generator Turn a list of URLs into a valid sitemaps.org XML sitemap with optional lastmod, changefreq and priority — ready for Search Console. Hreflang Tag Generator Generate hreflang annotations for multilingual sites as <link> tags, sitemap entries or HTTP headers, with code validation. .htaccess Redirect Generator Generate Apache .htaccess 301/302 redirects from old → new URL pairs, plus force-HTTPS, www and trailing-slash rules. Meta Tag Generator Generate SEO meta tags for your page head: title, description, keywords, robots, canonical, Open Graph and Twitter cards. Open Graph & Twitter Card Preview Paste your page’s meta tags and preview the link on Facebook, X/Twitter, LinkedIn, Slack and Discord, with fixes for missing tags. Robots.txt Generator Create a robots.txt file: allow or block paths, block AI crawlers and specific bots, set crawl-delay and add your sitemap URL. SERP Snippet Preview & Meta Length Checker Check title tag and meta description length in pixels and characters and preview your Google search result on desktop and mobile. Angular Formatter Format Angular component templates with structural directives, bindings and pipes. ASCII Table Complete ASCII table with decimal, hex, octal, binary, HTML codes and descriptions of control characters, plus extended Latin-1. ASCII to Text Convert ASCII or Unicode character codes (decimal, hex, octal or binary) back into readable text. ASN.1 Decoder Parse DER/BER ASN.1 structures from PEM, Base64 or hex into a readable tree with OID names, strings, times and integers. Atbash Cipher Encode and decode the Atbash cipher, which mirrors the alphabet (A↔Z, B↔Y). Running it twice returns the original text.