How to Add UTM Parameters to a URL
Updated 2026-06-21
To add UTM parameters to a URL, append a question mark to your base link followed by tracking tags joined with ampersands, for example ?utm_source=newsletter&utm_medium=email&utm_campaign=spring_sale. These tags tell analytics tools exactly which channel and campaign sent each visitor.
What each UTM parameter means
There are five UTM parameters. Three are essential and two are optional:
- utm_source (required) — where the traffic originates: newsletter, facebook, google.
- utm_medium (required) — the channel type: email, cpc, social, referral.
- utm_campaign (required) — the specific promotion: spring_sale, product_launch_2026.
- utm_term (optional) — paid keywords for search ads.
- utm_content (optional) — distinguishes two links in the same email, like header_button vs footer_link.
A complete tagged URL looks like https://example.com/pricing?utm_source=twitter&utm_medium=social&utm_campaign=launch.
Build a tagged URL the right way
- Start with the clean destination URL (no existing query string).
- Fill in source, medium, and campaign. Use lowercase consistently — analytics treats Email and email as two different mediums, splitting your data.
- Use underscores or hyphens instead of spaces. A raw space becomes %20 and looks broken in reports.
- Keep names short and predictable so your campaign list stays readable months later.
The hardest part is doing this by hand without typos. The URL & UTM Builder assembles each parameter into a correctly encoded link for you, so the question mark, ampersands, and escaping are always right. Everything runs locally in your browser — your URLs and campaign names are never uploaded anywhere.
Tag a whole list of links at once
If you are launching across many landing pages or affiliate links, building them one at a time is tedious. Paste a list of base URLs and the builder appends the same tracking parameters to every line, giving you a ready-to-paste batch. This is ideal for:
- Rolling out one campaign across dozens of product pages.
- Handing partners a sheet of pre-tagged links.
- Re-tagging an existing set of links with a new campaign name.
Common pitfalls to avoid
- Double question marks. If your URL already contains a ?, the next parameter must join with &, not another ?. The builder handles this automatically.
- Tagging internal links. Never add UTM tags to links between pages on your own site — it resets the session and corrupts attribution. Tag only inbound links from outside sources.
- Inconsistent casing or naming. Decide on a convention (for example, always lowercase, always underscores) and stick to it. Sloppy naming fragments your reports into near-duplicate rows.
- Forgetting the medium. Leaving out utm_medium dumps traffic into the vague "(not set)" bucket in most analytics tools.
Once your link is built, copy it into your email, ad, or social post. When visitors click through, your analytics dashboard groups them precisely by source, medium, and campaign.
Ready to tag your links cleanly? Open the URL & UTM Builder and build one URL or a whole list in seconds, entirely in your browser.