I want to redirect users that arrive at my root url to another page that contains the referring site in the url, so that I can track which sources provide the most sales.
So if a user arrives at mysite.com from google, they will be redirected (using php header function) to mysite.com/page.php?ref=google.com. That way, I can see in my referral stats which search-engines are providing the most converting customers.
I already know how to do this, but my question is this: What would google and other search engines think of this? Would my search rankings suffer as a result of using a redirect? If so, how else can I achieve my aim?
Any help appreciated as always.
UPDATE: I'm tracking affilate sales. So the referral stats come from the sites I advertsise.
CONCLUSION: three helpful answers. Shame I can only accept one. Thanks guys.