UTM parameters vs sub-IDs: which one tracks affiliate links?
November 19, 2026 · Hoplytic team · 2 min read
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
- UTMs are read by analytics on the site that receives the visit; affiliate networks usually ignore them.
- Sub-IDs are stored by the affiliate network and returned with the sale, so they're what links a commission to a source.
- Use UTMs on traffic to your own pages, sub-IDs (ideally a tracker's click ID) on affiliate links.
- A tracker can read UTMs on arrival and carry them to the network as sub-IDs.
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 parameters | Sub-IDs | |
|---|---|---|
| Names | utm_source, utm_medium, utm_campaign, utm_term, utm_content | Network-specific: aff_sub, sub1, s1, subId1, clickref, sid, tid… |
| Read by | Analytics on the site receiving the visit (Google Analytics and similar) | The affiliate network |
| Returned with the sale | No | Yes: in reports, API and postbacks |
| Best for | Visits to your own site from email, social, ads | Labelling affiliate clicks; carrying a click ID |
| Standard | Same five names everywhere | Different 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
- Lowercase, no spaces:
facebookandFacebookbecome two sources. - One value per slot meaning: if sub2 is the source on one link, don't make it the keyword on another.
- No personal data in either: networks, merchants and analytics tools all see them.
- Click ID first: put the tracker's click ID in the first sub-ID slot; it carries everything else.
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