It's not possible for a code not to register when used. It's a very simple process, there's no chance for fail. When registration form is submitted, it checks the url and submits the id from there as well. Even the check for IP doesn't affect this, it just prevents the gold coins to be sent later. It's just a plain parameter in the url, not a cookie or something like this that may occasionally fail depending on the user environment. The only possible way for it not to register if there's no id in the url and the link is plain registration instead of referral. Like if a user don't put this link at all, or uses it but registers in another tab without it, or decides to browse other links and then returns to registration through menu or homepage etc.