I've created this task https://dev.blesta.com/browse/CORE-4596 to add a redirect option. To do it now, you'd need to write some PHP code that would accept the affiliate code and write the necessary cookie, then do the redirect on its own. It's not complicated but requires some PHP knowledge.