Affiliate Marketing

Affiliate Sub-IDs: Track Which Page, Link and Channel Earns

Without sub-IDs, an affiliate program report tells you that you earned $1,200 last month from a merchant. It does not tell you whether that came from your buying guide, your newsletter or a single…

Without sub-IDs, an affiliate program report tells you that you earned $1,200 last month from a merchant. It does not tell you whether that came from your buying guide, your newsletter or a single comparison table on a review you wrote two years ago. You cannot improve what you cannot see, so most decisions about what to write, update or remove end up based on guesses.

Sub-IDs, also called sub-tracking parameters, click references or tags, fix that. They are labels you add to affiliate links that programs pass back in their reports, and they are the single most important tool for connecting your content to your commissions. This guide explains how sub-IDs work, how to design a sub-ID scheme, how to apply them at scale, how to use them across email, video, social and paid traffic and how to analyze the results.

What Is a Sub-ID?

A sub-ID is an extra parameter in an affiliate link that carries your own label through the tracking system. When a visitor clicks and converts, the program's report includes the label next to the click and commission.

Illustrative example:

https://track.example-network.com/click?aff=12345&offer=678&sub1=web-espgrind-table-a&url=...

Here, sub1=web-espgrind-table-a might mean: website, espresso grinder guide, comparison table, variant A. When this link produces a sale, the report shows that exact label, so you know precisely which page and placement earned it.

Different programs use different parameter names, such as sub1, subid, tag, ref, u1 or clickref, and some allow several sub-ID fields. Check each program's documentation.

Why Sub-IDs Matter

With sub-IDs, you can calculate:

  • EPC per page, to compare content.
  • EPC per placement, to see whether tables, buttons or in-text links earn most.
  • EPC per channel, to compare search, email, video and social.
  • Revenue per email or video, to see which pieces earn.
  • Test results, comparing variant A with variant B.
  • Reversal rates by page, to find pages that over-promise.

Without them, you can only see results by program, which hides almost everything useful.

Designing a Sub-ID Scheme

Keep your scheme consistent, short and structured. A common pattern encodes four parts:

PartExamplesPurpose
Channelweb, email, video, social, paidWhere the click came from
Page or assetespgrind, newsletter-0412, vid-mixer-reviewWhich content
Placementquick, table, intext, button, finalWhere on the page
Variant (optional)a, bFor tests

Example: web-espgrind-table-a means website, espresso grinder guide, comparison table, variant A.

Rules for a good scheme

  • Use only characters programs accept. Letters, numbers and hyphens are safest.
  • Keep within length limits, which vary by program.
  • Document the scheme so you, and anyone working with you, apply it consistently.
  • Never include personal data, such as email addresses or names. Sub-IDs travel to third parties.
  • Use short, stable page IDs rather than full URLs, which can change and exceed limits.
  • Keep a lookup table mapping short IDs to full page URLs and titles.

Example lookup table

Page IDPage URLPage type
espgrind/espresso/grinders/best-for-beginners/Buying guide
espmach-a/espresso/machines/machine-a-review/Review
dialin/espresso/guides/dial-in-espresso/Tutorial

Applying Sub-IDs at Scale

Editing links by hand becomes impossible as a site grows. Options include:

  • Link management tools or plugins that generate affiliate links with sub-IDs based on the page and placement.
  • Redirect links on your domain, such as /go/product/, that append sub-IDs automatically depending on where the click came from.
  • Content templates that insert placement-specific sub-IDs into product boxes, tables and buttons.

Whichever method you use, test regularly that sub-IDs pass through to program reports. Template and plugin updates sometimes strip them.

Tip: When you set up sub-IDs on a new program, make a test click from three placements, then check the program's report a few hours later. If all three labels appear correctly, the setup works. If any are missing, fix it before the page earns another click.

Sub-IDs Across Channels

ChannelHow to apply sub-IDs
WebsitePage and placement in each link, via templates or link management
EmailA sub-ID per email or sequence, or links to your own pages with campaign parameters
VideoA sub-ID per video description link, or a vanity URL per video
SocialA sub-ID per platform and, where practical, per post
Podcasts and offlineUnique codes and memorable URLs
Paid trafficYour tracker's click ID in the sub-ID field, returned by postback

When links pass through your own site first, standard campaign parameters in your analytics can identify the source, and outbound click events connect it to affiliate clicks.

Sub-IDs and Paid Traffic

For paid campaigns, sub-IDs carry your tracker's click ID rather than a descriptive label. The program returns it in a postback when a conversion happens, and your tracker matches it to the campaign, ad and keyword that produced it. This is what makes profit-by-keyword reporting possible.

Analyzing Sub-ID Data

Export program reports with sub-IDs each month and join them to your analytics data.

By placement

Illustrative figures for one buying guide:

PlacementClicksNet commissionsNet EPC
Quick picks620$210$0.34
Comparison table480$190$0.40
In-text after verdict260$140$0.54
Final recommendation90$35$0.39

Quick picks earn the most clicks, but in-text links after detailed verdicts earn the highest EPC, because readers who click them have read more. Both deserve to stay; neither should be removed based on clicks alone.

By channel

Compare EPC and revenue by channel to see where your best readers come from. Email often shows higher EPC than search, because subscribers trust you more.

By page

Combine sub-ID revenue with page visitors to calculate RPM for each page, then sort pages into stars, under-monetized pages, niche earners and underperformers.

Sub-IDs for Testing

Sub-IDs make testing far more precise. When you test a change, give each version its own label:

  • Variant labels: web-espgrind-table-a for the current table, web-espgrind-table-b for the new design.
  • Program rotation: when splitting clicks between two merchants for the same product, the program report and your sub-ID together show which merchant performed better for which page.
  • Email tests: email-0412-subj-a and email-0412-subj-b for two subject line versions sent to random halves of a list.

Because conversions and reversals arrive later, keep test labels unchanged until all commissions from the test period have completed validation. Otherwise you will compare pending results with approved ones.

Common Sub-ID Problems and Fixes

ProblemLikely causeFix
Sub-IDs missing from reportsTemplate or plugin stripped the parameterTest links; fix template; log the change
Labels truncatedExceeded the program's length limitShorten page IDs; use a lookup table
Labels garbledUnsupported characters or encoding errorsUse only letters, numbers and hyphens
Same label used for different pagesNo central schemeCreate a lookup table; never reuse IDs
Commissions show no sub-ID for code salesCodes do not carry sub-IDsTrack codes separately per channel
Different programs use different fieldsParameter names varyMap each program's field in your scheme document

Sub-IDs Versus Campaign Parameters

Affiliates often confuse sub-IDs with campaign parameters such as UTM tags. They do different jobs:

Sub-IDsCampaign parameters
Read byThe affiliate programYour own analytics
Appear inProgram reportsAnalytics reports
Main useConnecting commissions to pages and placementsConnecting visits and on-site behavior to sources
Where they goOn the affiliate linkOn links to your own pages

Use campaign parameters on links that bring people to your site, such as from email or social, and sub-IDs on the affiliate links that send them to merchants. Together, they let you follow a reader from the email they opened, to the page they read, to the commission they produced.

Data Hygiene for Sub-IDs

  • Use naming conventions consistently, and never reuse an ID for a different page.
  • Keep the scheme document and lookup table current.
  • Log changes to templates and link tools that might affect sub-IDs.
  • Audit monthly that sub-IDs appear in reports for each major program.
  • Back up exports, so history survives if a program account closes.

Example: Finding a Hidden Earner

Illustrative. A home office site adds sub-IDs to every link for the first time. After two months, the report reveals that a short tutorial on cable management, which the publisher considered minor, produces the highest EPC on the site: readers who need cable trays are ready to buy them immediately.

The publisher updates the tutorial with photos and a "tools needed" table, links to it from three desk buying guides and adds a cable management section to their newsletter. The tutorial's revenue triples over the following quarter. Without sub-IDs, its commissions would have been invisible inside the program's total.

Common Mistakes

  • Using no sub-IDs at all.
  • Using inconsistent labels that cannot be grouped later.
  • Putting personal data, such as email addresses, in sub-IDs.
  • Using full URLs that exceed length limits.
  • Assuming sub-IDs work without testing.
  • Changing templates without checking sub-IDs still pass through.
  • Collecting sub-ID data but never analyzing it.

Frequently Asked Questions

What is a sub-ID in affiliate marketing?

It is a label added to an affiliate link that the program passes back in its reports, showing which page, placement or channel produced each click and commission.

Add the program's sub-ID parameter, such as sub1 or tag, with your label. Many programs' link builders include a field for it.

What should a sub-ID contain?

A short, consistent code for channel, page, placement and optionally a test variant, using letters, numbers and hyphens.

Can I put email addresses in sub-IDs?

No. Sub-IDs travel to third parties, so never include personal data.

Do all affiliate programs support sub-IDs?

Most do, under different parameter names. Check each program's documentation and test that labels appear in reports.

How are sub-IDs used in paid traffic?

They carry your tracker's click ID, which the program returns in a postback so you can see which ad and keyword produced each conversion.

For a guide to tagging your own links with campaign parameters for analytics, see Google Analytics Help on URL builders and campaign parameters.


Sub-IDs turn program totals into decisions. To check that every sub-ID survives in your links, split them into parts with the free URL Parser.