Hello all. I would like to track the number of clicks of each particular link over various time frames -- today, this week (last 7 days), this month and total clicks, and hopefully I want to be able to select specific date ranges.
The problem I have is sorting out the logic behind it. My thinking is that I need to log each click with the link's $id and the date/time of the click. As $id would not be unique but date/time would be. Then I would write a script to allow me to extract the click details by $id from the mysql database using date/time field to order based on the time variations.
The only problem is, I am not sure this a sound way to go. Any thoughts would be appreciated.
Thanks, Bob