Link to home
Start Free TrialLog in
Avatar of EE70212
EE70212

asked on

How To Track File Clicks

When visitors goes to an URL, and clicks on one of the displayed file names,
I would like to record date, time, filename, and increment a counter for said
file name, and also the grand-total of suck clicks.

The I want to displayed the top x (say 50) files that were clicked, as well
as the total number of clicks on all the files since a certain date,
and display that also.

How to do it in PHP, CGI or whatever, in Linux hosting environment?
Avatar of Adam314
Adam314

What webserver?
Do you have access to the access logs?
instead of showing the direct links of the file you can display the download link through your PHP or CGI script and then redirect it. For example

/Abc.php?file_name=abc.zip
This Abc.php script will save the counter and then then redirect into the actual location of the file.
ASKER CERTIFIED SOLUTION
Avatar of elliottbenzle
elliottbenzle

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial