I'm monitoring traffic from Google, and if the traffic source is google, I want them redirected to the same URL, but with an appended GET variable, such as http://example.com/article should be redirected to http://example.com/article?source=google
I have hooked in to the hook wp, and added an action to check the referrer. If the referrer is google, it redirects them to the 2nd version of the URL. Unfortunately I'm developing locally and can't really test the referrer properly, so I'm wondering, as far as google analytics, and other tracking services, will the referrer stay as Google with wp_redirect, or will the referrer be changed to my own site?
I am using a 302 redirect.