What's the best way (or preferably script) to count the number of clicks on a link that goes to another site? I would need it to refresh every 24 hours (or an other timeframe) and start all over again. Maybe analytics has this function but I am unaware of it?
Create a simple script that does the redirect, and counts the requests. Then redirect all your links through a script, so http://www.google.com would become link.php&link=http://www.google.com In link.php you can increment the counter for $_GET['link'] (stored in a database), and then redirect with header('Location: ' + $_GET['link']);
Yes, simply put a MySQL query on the link out page updated the database to add +1 onto the current amount of outgoing links. Then have a cron using another simple to refresh the database to '0'.
Thanks Finney and lephron. I've found a helpful script called ccount. It does all I need to and its free. Hope it helps somebody!