If you don't have those accounts yet, you can set then up at the following links...
For EBay: www.ebaypartnernetwork.com
For Amazon: affiliate-program.amazon.com
Then when you have received your affiliate codes, log into your HubPages account and click on the "my account" tab. Then select the "Affiliate Settings" button. On that page you can enter your affiliate codes for proper tracking.