UTM parameters and affiliate links: where to put them, how to name them, how to keep them
November 28, 2026 · Hoplytic team · 5 min read
Read the video transcript
Should you put UTM parameters on affiliate links? Mostly no. Put them where they pay off.
On a newsletter link to your own page, your analytics shows which issue brought readers. The same goes for an ad to your landing page. On the affiliate link itself, the network won't return them with your sale, so leave them off unless the program asks.
Write down a scheme: lowercase, dashes not spaces, a fixed list of sources and mediums, and no personal data.
A reader lands on your page with UTMs, but those stay in your analytics. Copy the values into the network's sub-ID at the outbound click. Then they come back with your commission. Even better, put a click ID in the first sub-ID and store the UTMs against it.
If UTMs go missing, run the link through a redirect checker to see which hop dropped them.
Hoplytic's site script keeps UTMs for seven days, with no cookies, and adds them to the visitor's next tracked click. Then reports can group clicks and sales by UTM source or campaign.
The full guide is right below. Hoplytic: ad tracking made simple.
Key points
- UTMs belong on links that bring visitors to your own pages, where your analytics can read them; on the affiliate link itself they mostly help the merchant.
- A short written naming scheme (lowercase, fixed list of sources and mediums) matters more than which values you choose.
- Pass UTMs to the merchant only when the program asks for them, and never put personal data in them.
- To get UTM values back with your commission, copy them into the network's sub-ID at the moment of the affiliate click.
UTM parameters are everywhere in marketing, so it's natural to put them on affiliate links too. Sometimes that helps, often it does nothing for you, and occasionally it breaks things. This guide is about placing them where they pay off.
Short answer: put UTMs on the links that bring people to your own site (social posts, newsletters, ads to your landing page) so your analytics shows where readers came from. Leave them off affiliate links unless the program asks. If you want UTM values back with your commission, copy them into the network's sub-ID when the visitor clicks out.
Where UTMs do and don't help
| Link | Who reads the UTMs | Useful to you? |
|---|---|---|
| Newsletter link to your review page | Your analytics | Yes: you see which issue brought readers |
| Paid ad to your landing page | Your analytics (the ad platform also adds its own click ID) | Yes |
| Your affiliate link to the merchant | The merchant's analytics | Rarely: the network doesn't return them |
| Direct link from an ad to an offer | The merchant's analytics | No; use sub-IDs and your tracker's click ID |
The difference between UTMs and sub-IDs is covered in UTM vs sub-ID. In short: UTMs inform the site that receives the visit; sub-IDs come back to you with the sale.
The parameters
| Parameter | Meaning | Example |
|---|---|---|
utm_source | Who sent the visit | newsletter, youtube, pinterest |
utm_medium | The type of channel | email, video, paid-social |
utm_campaign | The campaign or issue | black-friday-tents |
utm_content | Which link or creative | top-button, video-desc |
utm_term | Keyword, mostly for search ads | best-2-person-tent |
Google Analytics 4 also accepts utm_id, utm_source_platform, utm_creative_format and utm_marketing_tactic, though Google says the last two are not currently reported. Most affiliates never need them.
A naming scheme that survives a year
UTM reports go wrong through inconsistency, not through bad choices. Newsletter, newsletter and news-letter become three sources. Rules that prevent it:
- Lowercase everything. UTM values are case-sensitive in Google Analytics.
- Dashes, not spaces. Spaces turn into
%20or+and look different in different tools. - A fixed list of sources and mediums. Write them down: perhaps six sources and four mediums. Campaign and content can be free text.
- Match your analytics' channel rules. GA4 sorts traffic into default channels partly by
utm_medium. Values likeemail,socialandcpcland in the expected channel; invented ones may end up as "Unassigned". - No personal data. Never put an email address or name in a UTM. URLs are logged by every server they pass through.
When to pass UTMs to the merchant
Some programs ask affiliates to add specific UTMs to links so the merchant's analytics can see affiliate traffic, or the network adds them itself. That's fine: follow their exact values. Digistore24, for example, documents UTM support on promo links. Two cautions:
- Don't override the network's own values. If the affiliate link already carries UTMs set by the program, adding yours can replace theirs.
- Keep links short where it matters. Every extra parameter adds length; some redirect chains and older systems cut very long URLs. Test the final link.
Turning UTMs into something that comes back
Here's the useful trick. A reader arrives on your page from ?utm_source=newsletter&utm_campaign=nov-week4, reads, and clicks an affiliate link. By then the UTMs are only in your analytics, not in the affiliate link. To see that commission next to "newsletter, nov-week4", copy the values into the network's sub-ID at the outbound click:
Landing: https://yoursite.example/tent-review?utm_source=newsletter&utm_campaign=nov-week4
Outbound: https://www.awin1.com/cread.php?awinmid=1234&awinaffid=5678&clickref=c7f3a9e1&clickref2=newsletter&clickref3=nov-week4
Doing this by hand means a script on your page that reads the UTMs and rewrites outbound links. A tracker with a site script does it for you. Even better than copying UTMs: put a click ID in the first sub-ID and store the UTMs against that click, so you keep every value without spending sub-ID slots on them.
Example: a newsletter setup
A weekly newsletter with three links to your site might use:
?utm_source=newsletter&utm_medium=email&utm_campaign=2026-w48&utm_content=top-pick?utm_source=newsletter&utm_medium=email&utm_campaign=2026-w48&utm_content=deal-list?utm_source=newsletter&utm_medium=email&utm_campaign=2026-w48&utm_content=footer
Source and medium never change. Campaign changes every issue, using a format that sorts by date. Content tells you which spot in the email people clicked. After a few issues you can see whether the top pick or the deal list sends more readers, and, once the values are carried to your affiliate clicks, which one earns more. Many email tools can add UTMs automatically; check they use your values rather than their own defaults.
Why UTMs go missing
- Redirects that drop the query string. A shortener or redirect that forwards to a fixed URL loses everything after
?. - Sites that strip unknown parameters, sometimes for caching, sometimes for privacy.
- Browsers removing known tracking parameters in some private modes. This mostly affects ad click IDs rather than UTMs, but it varies.
- The visitor navigates. UTMs are in the first page's URL only. After one internal click they're gone unless something kept them.
Run the link through the redirect checker to see at which hop a parameter disappears.
How Hoplytic handles UTMs
Hoplytic's site script reads UTM values and ad click IDs when a visitor lands on your page, keeps them for 7 days in your site's own browser storage (no cookies), and attaches them to the visitor's next tracked click. Reports can then group clicks and sales by utm_source or utm_campaign, while only the network's sub-ID values go on to the merchant. On the link itself, "Pass on other parameters" forwards incoming UTMs to the destination, off by default, for programs that ask for them.
Questions people ask
Should I add UTM parameters to affiliate links?
Only if the merchant or program asks you to, for example so they can see your traffic in their analytics. The affiliate network won't return UTM values with your sale, so they don't help your own reporting.
What are the five standard UTM parameters?
utm_source, utm_medium, utm_campaign, utm_term and utm_content. Google Analytics 4 also accepts utm_id, utm_source_platform, utm_creative_format and utm_marketing_tactic, though Google says the last two are not currently reported.
Are UTM parameters case-sensitive?
Yes, in Google Analytics and most tools. Facebook, facebook and FaceBook show as three different sources, so keep every value lowercase.
Why do my UTM parameters disappear?
Something between the click and the page dropped them: a redirect that doesn't forward the query string, a shortener, a consent tool or a site that strips unknown parameters. Check the final URL with a redirect checker.
More in Tracking fundamentals
Also: tracking glossary · ad platform macros · Markdown copy