Usually the bonus codes are entered during the registration procedure, when a new user will be prompted to add the code. It is usually either right at the start, or at the very end of the process. Alternatively, some sites leave it until a player makes their first deposit.