UTM parameters vs sub-IDs: which one tracks affiliate links?

November 19, 2026 · Hoplytic team · 2 min read

The short version: this guide in 58 seconds.
Read the video transcript

UTM parameters or sub-IDs: which one tracks affiliate links?

UTMs are read by analytics on the site that receives the visit. Sub-IDs are read by the affiliate network. Networks don't return UTMs with the sale. They send sub-IDs back, so that's what links a commission to a source.

So use UTMs for visits to your own pages, and sub-IDs on affiliate links, ideally holding a tracker's click ID.

The names differ on every network. A few are on screen.

Use lowercase with no spaces, or one source splits into two. Put the click ID in the first sub-ID slot. And no personal data in either one.

Hoplytic records UTM tags, ad platform macros and the referrer when a visitor arrives. It passes the click ID into the network's sub-ID slots, and reports group by any of them.

The full guide is right below. Hoplytic: ad tracking made simple.

Key points

Both are just parameters on a URL, which is why they get mixed up. The difference is who reads them and whether you ever get them back.

Short answer: UTM parameters tell analytics on the receiving site where a visit came from; affiliate networks don't return them. Sub-IDs are the network's own slots: it stores them with the click and sends them back with the sale. Use UTMs for traffic to your own pages and sub-IDs (or a tracker's click ID in one) for affiliate links.

Side by side

UTM parametersSub-IDs
Namesutm_source, utm_medium, utm_campaign, utm_term, utm_contentNetwork-specific: aff_sub, sub1, s1, subId1, clickref, sid, tid…
Read byAnalytics on the site receiving the visit (Google Analytics and similar)The affiliate network
Returned with the saleNoYes: in reports, API and postbacks
Best forVisits to your own site from email, social, adsLabelling affiliate clicks; carrying a click ID
StandardSame five names everywhereDifferent on every network: see the reference

Three common setups

Ads straight to an offer

No UTMs needed. Your tracking link captures the ad platform's macros and passes a click ID in the network's sub-ID. The sale comes back with the click ID, and the tracker knows the campaign, ad and placement.

Ads to your own landing page, then the offer

UTMs (or the platform's macros) on the ad tell you which ad sent the visit. On the page, each affiliate link goes through your tracker, which carries the source on to the network in a sub-ID. A site script can tie the page visit to the outbound click.

Content site, organic traffic

Use a sub-ID per placement: sub2=review-top-button, sub2=comparison-table. That tells you which part of which page earns, which UTMs on your own pages can't.

Rules that keep data clean

On Hoplytic

Tracking links record UTM tags, the ad platform's macros and the referrer on arrival, and pass the click ID plus any values you choose into the network's sub-ID slots. Reports group by any of them, so utm_campaign → device or sub2 → country works the same way.

Questions people ask

Can I add UTM tags to an affiliate link?

You can, and the merchant's analytics may see them, but the affiliate network won't return them to you with the sale. Use the network's sub-ID parameter for anything you want back.

Do UTM tags hurt affiliate tracking?

Usually not, but some merchant sites or networks strip unknown parameters, and a few redirect chains break on very long URLs. Keep affiliate links clean and put your labels in sub-IDs.

What should I put in utm_source and utm_medium?

Source is where the visit came from (newsletter, facebook, propellerads), medium the type (email, paid-social, push). Keep values lowercase and consistent, or reports split one source into several.

More in Tracking fundamentals

Also: tracking glossary · ad platform macros · Markdown copy