How do I set up sub-IDs to track which page earns?

Updated October 2026 · How we answer

Short answerAdd a short tracking code, often called a sub-ID, to each affiliate link so the program reports which page or placement produced the sale. Use a clear naming scheme so the reports stay readable.

Adding sub-IDs to links

Most networks let you append a parameter to the tracking link, such as a value that names the page or button. Keep the name short and consistent, like the post slug or a placement code. Check the network's documentation for the exact parameter name, because it varies.

Make sure the sub-ID survives any redirects you use. If the value is dropped along the way, the report will show the sale without revealing where it came from. Test one link from each section after the change so you know the new scheme is working.

Reading the reports

Once sub-IDs are in place, compare earnings by sub-ID to see which pages convert. Group similar pages together so the patterns are easier to spot. Revisit the naming scheme when you add new sections, so old and new data stay comparable. Once the naming scheme is set, write it down with examples so anyone editing the site uses the same format for new links.

Common setup problems

If sub-IDs appear blank, the parameter may be misspelled or stripped by a plugin. Some programs limit the length or the characters allowed. Test a link in a private browser window and check the report a day or two later.

Common mistakes

  • Using long, random sub-IDs that make reports impossible to read later.
  • Changing the naming scheme midway and comparing data that no longer lines up.
From our shopsCaseMorph: Type an idea, see a custom phone case in seconds, then print a one-of-one.