I have noticed a lot of sites either direct automatically to the affiliates site using the tracking links.

But some use a direct page -

so for example -

mydomain.com/betfair-offer

Is this a simple 301 redirect that is setup ?

Some appear with a page that informs your of the redirection. Which appears for only a few seconds.