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

The short version: this guide in 68 seconds.
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

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

LinkWho reads the UTMsUseful to you?
Newsletter link to your review pageYour analyticsYes: you see which issue brought readers
Paid ad to your landing pageYour analytics (the ad platform also adds its own click ID)Yes
Your affiliate link to the merchantThe merchant's analyticsRarely: the network doesn't return them
Direct link from an ad to an offerThe merchant's analyticsNo; 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

ParameterMeaningExample
utm_sourceWho sent the visitnewsletter, youtube, pinterest
utm_mediumThe type of channelemail, video, paid-social
utm_campaignThe campaign or issueblack-friday-tents
utm_contentWhich link or creativetop-button, video-desc
utm_termKeyword, mostly for search adsbest-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:

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:

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:

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

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.

Copy the one line and paste it before </body> on every page.

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