What are sub IDs? They are extra parameters you add to an affiliate link, such as ?aff=1234&sub1=review-page, so the program's reports show which page, placement or campaign each click and sale came from. The program ignores the value for attribution but stores it and hands it back to you in reports and postbacks.
Used consistently, sub-IDs are the cheapest analytics upgrade an affiliate can make. This guide covers how they work, a naming convention that scales and how to turn sub-ID reports into decisions.
How sub-ID tracking works
Your affiliate ID tells the program who to pay. A sub-ID tells you why the click happened. When a visitor clicks a link carrying a sub-ID, the program records it with the click. If that visitor converts, the conversion inherits the same sub-ID, so you can see revenue by whatever you encoded.
Programs name the field differently: sub1, subid, aff_sub, tid, s1 and so on. Many offer several slots (often between two and five), each with a character limit. Check your program's link generator or documentation for the exact parameter names and limits.
If you run a tracker, one sub-ID slot is usually reserved for the tracker's click ID so the program can return it in a postback. Plan your other slots around that.
What to track with sub-IDs
Track what you can act on. Typical uses for content publishers and media buyers:
- Page or article: which review, comparison or landing page sent the click.
- Placement: top button, comparison table, in-text link, sidebar banner, exit pop.
- Campaign or traffic source: email newsletter, social profile, a paid traffic campaign.
- Creative or variant: banner A versus banner B, or an A/B test arm.
- Device or GEO: only if the program does not already report these.
Do not encode personal data such as visitor email addresses or user IDs from your site in a sub-ID. It is unnecessary for optimisation and creates data protection obligations you do not want.
A sub-ID naming convention that scales
Most sub-ID reports become useless because values were typed ad hoc. A convention fixes that. Rules that work:
- Lowercase only, letters, numbers and hyphens. Some programs strip or reject other characters.
- Fixed order of elements, separated by a consistent character such as a hyphen or underscore, if you must combine several in one slot.
- Short codes, documented in a shared sheet, to stay under character limits.
- One meaning per slot wherever the program gives you several.
Affiliate sub-ID examples
| Slot | Meaning | Example value |
|---|---|---|
| sub1 | Tracker click ID (if used) | a7f3c91e |
| sub2 | Page code | rev-camsite-a |
| sub3 | Placement | tbl-top |
| sub4 | Source or campaign | nl-2026-10 |
With only one slot, combine elements in a fixed order: rev-camsite-a_tbl-top_nl. It is harder to read, but a spreadsheet split on the underscore restores the columns.
Tip: generate links from a template or a link-management plugin rather than editing them by hand. Typos such as tbl-tpo split your data and are almost impossible to spot later.
How to track affiliate links by page
Page-level tracking is the most common use for content sites. The practical options:
- Manual: add a page code to each link as you write. Fine for small sites, error-prone at scale.
- Redirect or cloaking plugin: many link managers can append the page slug automatically when a link is clicked. See our guide to affiliate link redirects and cloaking.
- Tracker campaign per page: each page links to a tracker URL, and the tracker passes page and placement data through to the program.
Whichever you choose, test a link from each template after any site change to confirm the sub-ID still arrives in the program's report.
Turning sub-ID reports into decisions
Export the sub-ID report monthly, or connect it to an affiliate reporting dashboard, and look at earnings per click (EPC) rather than raw clicks. Our guide to calculating EPC explains the maths.
A hypothetical example: a review page sends 2,000 clicks a month. Split by placement, the comparison table sends 1,200 clicks at an EPC of €0.40 and the sidebar banner sends 800 at €0.05. The decision writes itself: move the banner's space to a second table or an in-text recommendation, and stop optimising the banner.
Questions worth asking of every report:
- Which pages earn most per visit, not just per click?
- Which placements get clicks but no sales (curiosity clicks or poor fit)?
- Which traffic sources convert for one program but not another?
- Has a page's EPC dropped suddenly? That can signal a broken link or a program-side change.
Common sub-ID mistakes
- Changing the convention mid-year, which breaks comparisons. Version it instead and keep a mapping.
- Overwriting the tracker's click ID slot with a page code, so postbacks stop matching.
- Exceeding the character limit, so values are silently truncated and merge in reports.
- Forgetting non-article links: email footers, social bios and banner rotators need sub-IDs too, or their sales land in an unlabelled bucket.
- Never reading the report. Put a monthly review in the calendar.
Sub-IDs vs UTM parameters
They answer different questions. Sub-IDs travel to the affiliate program and come back in its reports. UTM parameters describe how visitors arrived at your own site and are read by your analytics tool. You will often use both: UTMs on your newsletter link to your site, sub-IDs on the affiliate link from that page. Our guide to UTM parameters for affiliates explains how to combine them.
Frequently asked questions
Why are my sub-IDs not showing in reports?
Check that you used the program's exact parameter name, that the value has no disallowed characters, and that redirects are not stripping the query string. If clicks show the sub-ID but conversions do not, raise it with the program. Our guide to conversions not tracking covers the full diagnosis.
Do sub-IDs affect commissions or cookies?
No. They are reporting labels. Attribution is decided by your affiliate ID and the program's tracking rules.
How many sub-IDs should I use?
As many as you will act on, and no more. Most publishers get the bulk of the value from page and placement.
Next steps
Write your naming convention down today, apply it to your top ten earning pages and review the first month's report. For tools that manage sub-IDs and click IDs for you, browse our affiliate tracking platforms directory.