I am thinking of setting up a link shortener for myself, and I want to know how to track unique and total clicks.
Well, the total clicks are easy to do. I think the unique clicks are more challenging.
Also, how do you do 301 and 307 redirection? Is this code correct?
header('HTTP/1.1 301 Moved Permanently');
header('Location: http://www.example.com');
exit();
header('HTTP/1.1 307 Temporary Redirect');
header('Location: http://www.example.com');
exit();
your advice/ideas/code snippets are welcome.:)
Regards,
John