The Random Affiliate ID add-on gives each new affiliate a random ID instead of the next number in sequence. Affiliate IDs then no longer reveal how many affiliates your program has, for example in referral links that use the ID.
By default, affiliate IDs grow one by one: 1, 2, 3 and so on. When your affiliate referral links use the affiliate ID, anyone can guess the size of your program from it. Statisticians call this estimate the German tank problem. With the add-on on, a new affiliate gets an unused random ID between 1 and 999,999, for example 27375.
Before you start
- Ultimate Affiliate Pro installed and active (install guide).
Install the Random Affiliate ID add-on #
- Download the Random Affiliate ID zip file from your account on ultimateaffiliate.pro.
- In your WordPress admin, go to Plugins›Add Plugin and click Upload Plugin.
- Choose the zip file, click Install Now, then Activate Plugin.
The add-on now has its own card in Ultimate Affiliate Pro›Modules. See Pro add-ons: what they are and how to install them for the full process.
Turn on Random Affiliate ID #
Go to Ultimate Affiliate Pro›Modules›Random Affiliate ID.

When on, every new affiliate gets a random ID. When off, IDs follow the normal sequence.
Default: Off
Click Save Changes.
Test it #
- Register a new test affiliate on your Become an Affiliate page.
- Go to Ultimate Affiliate Pro›Affiliates and open the new affiliate. Their ID is a random number, not the next one in sequence.
Referral link format
The ID shows in referral links only when the referral format uses the affiliate ID. If your links use the username or a custom slug, see Friendly affiliate links and custom slugs.
Frequently asked questions #
Do existing affiliates get new IDs?
No. Existing affiliates keep their IDs, so their referral links keep working. Only affiliates created after you turn the add-on on get random IDs.
Can two affiliates get the same ID?
No. The add-on checks that a random ID is free before it uses it.
What happens if I turn the add-on off later?
Affiliates keep the IDs they have. New affiliates get the next ID after the highest one in use.
Does it change referral links that use usernames?
No. Usernames and custom slugs are not affected; only the numeric affiliate ID is random.