It is usually just a single line of code, but it will depend on your affilate tracking. You should find that code in the help files.