301/302 and HTTP Refer

For (my) future reference…

If you’re using HTTP Status code 301 or 302 to redirect, some services do not retain the header for HTTP to tell you the referring URL.


/GET advertisement.net/site1.php?redirect=bofe.org

site1.php has this code:

There’s no way for bofe.org to know that 90% of the hits from advertisement.net actually came from advertisement.net. bofe.org’s logs look like users just typed it in.

The key, tell advertisement.net to redirect to a Unique URL.

/GET advertisement.net/site1.php?redirect=bofe.org/1234.php

where 1234.php redirects to the preferred destination.

Now you can effectively track the effectiveness of the advertisement that you were running with advertisement.net.


About andyhillky
I'm cool.

Comments are closed.

%d bloggers like this: