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.
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.
One row per link. A header row is optional. Commas inside a value must be quoted. The first five columns are destination, source, medium, campaign and content; the sixth is term.
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.
| Field | What it should name | Example |
|---|---|---|
utm_source | The place that sent the visit | newsletter, partner-site |
utm_medium | The channel category | email, referral |
utm_campaign | The initiative or launch | spring-guide |
utm_content | The specific link or creative | button-a, text-link |
utm_term | The paid keyword or term, when relevant | page-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.
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:
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.
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.
| Case | Expected result |
|---|---|
| Valid single link | URL contains all required UTM keys |
| Relative destination | Error: absolute URL required |
| Existing UTM value | Value replaced, not duplicated |
| Email in source | Personal-data warning |
| Uppercase source | Lowercase option normalizes it |
| Batch with one bad row | Good 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.