Some affiliate scripts offer direct links and anchor links like merchantsite.com/#affiliateid. Anchor links are great for SEO because search engines treat an anchor as an instruction to the browser to jump to a particular part of the page, it's like a regular link for them.