Here's my idea but getting stuck on how it's done.
looking to hand out links to a capture page where affiliates place their companies id on the end
the capture page will redirect customer to a product page. The links on that page however will be coded to whatever capturepage sent the customer
simply the links on the page will be coded to the referrer