Tool 03 · Measure

UTM link builder and inspector

Build one campaign URL or a CSV batch, replace existing UTM values without duplicating them, and inspect a link for inconsistent case, spaces, duplicate keys and personal data.

Version 2.0.0 · Last tested 2026-11-28 · Maintained by Mark · Test cases · How we test

Related tests: UTM-01 to UTM-06 · Known limit: does not read Analytics data or confirm that a campaign reports correctly.

Spaces are replaced with hyphens. Existing UTM keys are replaced, not duplicated. Other query parameters and the fragment are preserved.

Campaign URL

This result describes the pasted input. It is not a Google ranking, indexing or eligibility decision.

Naming

Five fields, one vocabulary.

A campaign link is useful only if the same vocabulary is used every time. The builder accepts the standard parameters and normalizes spaces. It does not invent campaign names for you.

FieldWhat it should nameExample
utm_sourceThe place that sent the visitnewsletter, partner-site
utm_mediumThe channel categoryemail, referral
utm_campaignThe initiative or launchspring-guide
utm_contentThe specific link or creativebutton-a, text-link
utm_termThe paid keyword or term, when relevantpage-title-check

Use lowercase, hyphens and a short shared note. If the team cannot agree on the allowed values, the report will not be comparable.

Modes

Single, batch, inspect.

Single link is for one destination and one message. The result preserves existing non-UTM parameters and the fragment, and replaces existing UTM keys rather than adding another copy.

Batch takes CSV rows and returns a table plus a CSV download. It is useful for a launch with several landing pages or several links in one email. The tool reports errors row by row.

Inspect parses an existing URL. It flags missing source, medium or campaign, duplicate keys, uppercase values, spaces, unusual characters and values that look like personal data.

Read the full UTM naming guide.

Worked example

A link that survives the report.

Destination https://example.com/guide, source newsletter, medium email, campaign spring-guide, content button-a. The builder returns:

https://example.com/guide?utm_source=newsletter&utm_medium=email&utm_campaign=spring-guide&utm_content=button-a

If the destination already contains utm_source=old, the builder replaces that value. It does not append a second utm_source. Existing non-UTM parameters such as ref=sidebar remain in the URL.

Personal data

Do not put people in a URL.

URLs appear in browser history, server logs, analytics reports, referrers and screenshots. An email address, a name, a phone number or an account ID in a UTM value can leak further than intended.

The inspector warns when a value contains @ or a long run of digits. It cannot know whether a value is personal in your context. Treat every parameter as public.

Redirects can strip parameters. A short link, a login redirect or a URL rewrite may drop the query string. Open the final link and confirm the landing page and the campaign value before sharing it.

Limits

What the builder does not do.

  • It does not read Google Analytics, Search Console or any other account.
  • It does not know how your analytics property maps source, medium or campaign.
  • It does not shorten links, create QR codes or test redirects.
  • It does not guarantee that a destination accepts the parameters and keeps them after a redirect.
  • It does not prevent a person from copying a link and changing a value.

Test record

Cases that exercise the builder.

CaseExpected result
Valid single linkURL contains all required UTM keys
Relative destinationError: absolute URL required
Existing UTM valueValue replaced, not duplicated
Email in sourcePersonal-data warning
Uppercase sourceLowercase option normalizes it
Batch with one bad rowGood rows built; bad row marked ERROR

The Test Lab runs the current cases in your browser.

Questions about campaign links.

For a naming question, include the URL and the report you expected to see. Do not send analytics exports or account credentials.

Should I use utm_content or utm_term?

Use utm_content to distinguish two links or creatives in the same message. Use utm_term for a paid keyword or term. If your analytics setup does not use one of them, leave it out.

Why lowercase?

Analytics systems can treat Newsletter and newsletter as different values. A single case convention avoids a cleanup project later.

Can I use spaces in a campaign name?

The builder replaces spaces with hyphens because encoded spaces are hard to read and easy to mistype. Use hyphens directly in the shared naming note.

Does the inspector check the landing page?

No. It parses the URL only. Open the link and confirm the destination, the status and the campaign value in your analytics tool.