New guide: how to warm up a dedicated IP without hurting your reputation. Read now →
Log in
MigoSMTP
Sending and campaignsUpdated 26 Oct 2026

UTM Parameters in Email Links: Campaign Tracking, Naming Rules, Analytics Pitfalls and Privacy

How to tag email links with UTM parameters for web analytics: the five parameters, naming conventions, dynamic values, link length and deliverability, redirects, cross-device and privacy issues, and common mistakes.

CB
Written by Chloe Bennett
Customer Success Manager, Migrations
Reviewed by Amara Okafor
  • Published14 Jul 2025
  • Read time6 min
  • Length1,267 words
Share this guide

Open rates are unreliable and click data from your sending platform stops at the link. To learn what a campaign did after the click, such as visits, sign-ups and purchases, you need your web analytics tool to know where the visit came from. The standard way is to add UTM parameters to the links in the email. Done consistently, they let you compare campaigns, segments and creative variations in one place. Done carelessly, they produce a mess of near-duplicate names, wrongly attributed traffic and long, ugly links that may even harm trust. This guide explains the parameters, a naming convention that stays clean, how to add dynamic values, how UTM tags interact with tracking redirects and filters, the privacy cautions, and a checklist. For the sending-platform side of click tracking see click tracking domains.

Parametersutm_source, utm_medium, utm_campaign (core), plus utm_content and utm_term (optional)
RuleUse lowercase, fixed vocabulary and one convention for every campaign
WarningUTM tags are visible in the address bar; never put personal data in them
Pair withClick tracking in the platform for link-level data and UTMs for post-click behaviour

The five parameters

ParameterPurposeExample for email
utm_sourceWhere the traffic comes from: the specific sender or listnewsletter, product-updates, partner-x
utm_mediumThe channel typeemail
utm_campaignThe campaign name or promotionautumn-sale-2025
utm_contentDistinguishes links or variants within the same campaignhero-button, footer-link, variant-b
utm_termPaid search keyword; rarely used in emailLeave unused for email
https://www.example.com/sale?utm_source=newsletter&utm_medium=email&utm_campaign=autumn-sale-2025&utm_content=hero-button

Analytics tools classify traffic by medium and source. Using email as the medium keeps it in the email channel in reports. Misspellings such as "e-mail" or "Email" create separate rows. Some tools are case-sensitive, so a convention of lowercase only prevents splits.

A naming convention that scales

  1. Fix the vocabulary. Decide the allowed sources (for example newsletter, transactional, lifecycle, partner), the single medium (email) and a pattern for campaign names.
  2. Use lowercase, hyphens and no spaces. Spaces become %20 and make links harder to read.
  3. Include dates in campaign names where useful (autumn-sale-2025-10), so reports sort naturally and old campaigns are not confused with new.
  4. Keep campaign names short and meaningful. Detailed audience information belongs in your sending platform, not the URL.
  5. Document it in a shared sheet or builder, and make it the only source of tags. Everyone who builds links uses it.
  6. Separate lifecycle and marketing. For automated flows, use stable campaign names (welcome-series) and distinguish steps with utm_content (step-1, step-2).
  7. Review the list every quarter, and retire unused values.

Dynamic values

Many platforms insert values automatically: the campaign name, send date or segment. Use dynamic fields to reduce typing errors, but check the rendered result, because merge tags can produce spaces, capital letters or special characters. Never put a recipient's email address, name or any identifier in a UTM value. URLs are logged in many places (analytics, browser history, referrers, proxies), and personal data in them can breach privacy rules. If you need a per-recipient link for personalisation, use an opaque token that your own systems resolve. See template variables.

TopicWhat happensGuidance
Click-tracking redirectsThe platform wraps the link in its tracking URL, then redirects to your page with UTMs intactUse a branded tracking domain. Test that parameters survive. See click tracking domain
Link shortenersHide the destination and add another hopAvoid in email. See shorteners
Link lengthLong query strings make plain-text emails uglyKeep tags short; consider a short campaign code that your analytics maps to detail
Redirects on your siteServer-side redirects may drop query stringsMake sure redirects preserve the query. Check login or locale redirects
Anchors and fragmentsA fragment (#section) must come after the query stringPut UTMs before the #
Single-page appsRoute changes may strip parameters before analytics reads themCapture the parameters on first load
Consent bannersAnalytics may not load until consent is givenUnderstand the reporting gaps in regions with strict consent rules

Why email traffic ends up as "direct"

  • Missing UTMs. Links without tags in an email may be attributed to direct traffic or to the webmail referrer. Tag every link to your site, including those in transactional and plain-text parts. See plain-text alternatives.
  • Mail apps that open links in an in-app browser without a referrer. UTMs solve this.
  • Redirects that drop parameters. Test them.
  • Forwarded links. Recipients who share your link send further visitors with your tags attached. Treat inflated campaign numbers with caution.
  • Privacy features that strip tracking parameters from links in some browsers and apps. Expect under-reporting.
  • Cross-device journeys. A reader clicks on a phone and buys later on a laptop; attribution may credit another channel.

Reporting tips

  • Build a report that filters medium = email and groups by campaign, then by content, to compare links and variants. See A/B testing.
  • Compare clicks in your sending platform with sessions in analytics. They will never match exactly (bots, prefetching, blocked scripts, privacy tools), but a stable ratio is healthy, and a sudden change signals a tagging or redirect problem.
  • Track outcomes, not only visits: sign-ups, orders and revenue. Attribution settings affect which channel gets credit.
  • Exclude security scanners where possible. Corporate gateways sometimes click every link, inflating clicks. See tracking pixels and Mail Privacy Protection for related distortions.

Deliverability and trust

Long query strings and many different tracking domains in a message can look suspicious to filters and readers. Keep links on your own domain, use HTTPS and avoid piling parameters. Make sure the visible link text does not misrepresent the destination. See content filters and links and buttons.

Governance and training

Naming rules only work if people follow them. Put the convention in a short guide, include it in onboarding for anyone who builds campaigns and add a review step before send that checks the links in the preview. Where several teams share one analytics property, agree who may create new sources and mediums, because one team's improvised value shows up in everyone's reports. Use a spreadsheet or builder that generates the final URL from dropdown values, so that a typing mistake cannot happen. Archive the list of campaign names with their dates and owners, which makes year-on-year comparison possible and saves the next analyst from guesswork.

Example: a launch campaign

A retailer sends three emails for a spring launch: a teaser, the launch announcement and a last-chance reminder. All use medium email and source newsletter, and the campaign name spring-launch-2025. The content tag separates the hero button, the product grid and the footer link, and the reminder uses a different content value for its discount banner. After the send, the report shows sessions, sign-ups and orders by content, revealing that the footer link brought a surprising number of visits from readers who scrolled to the end. The team moves a stronger call to action there next time. Without consistent tags, that insight would have been buried in direct traffic.

Checklist

  1. Agree and publish the naming convention.
  2. Use a link builder or platform feature that enforces it.
  3. Tag every link to your own site in both HTML and text parts.
  4. Never include personal data in parameters.
  5. Send yourself a test and click each link; confirm that the visit appears in real-time analytics with the right source, medium and campaign.
  6. Check that redirects preserve parameters.
  7. Review reports monthly and merge or remove inconsistent names.

UTM tagging is simple, and that is why it fails: nobody owns the convention. Give it an owner, keep the vocabulary small and test before every send, and your email reports will be trustworthy for years.

Track campaigns with confidence Branded tracking domains and detailed click logs.

Explore the SMTP relay

References and further reading

Frequently asked questions

Which UTM parameters do I need for email?

At least utm_source, utm_medium and utm_campaign. Add utm_content to distinguish links or variants.

Why does email traffic show as direct in analytics?

Links without UTM tags, redirects that drop parameters or in-app browsers can lose the source. Tag every link and test.

Can I put the recipient's email in a UTM parameter?

No. URLs are logged widely, so personal data in them is a privacy risk. Use opaque tokens instead.

Do UTM tags affect deliverability?

Not directly, but very long links and many tracking domains can look suspicious. Keep links tidy and on your own domain.

Why do click counts differ from analytics sessions?

Bots, prefetching, blocked scripts and privacy tools cause differences. Watch the trend, not exact equality.

Topics#utm#analytics#tracking#links#campaigns
Was this guide helpful?Your answer helps us improve our documentation.

Start sending in minutes.

Create an account, add your domain and send your first email.

Get started Talk to sales