![]() |
|
|
Counting File DownloadsYou can use EZ Webstat to count the number of times a file has been downloaded and the number of files you are hosting. Display statistics to show the number of files available for download, total number of files downloaded, and downloads for individual files. This is the same type of information seen on shareware, script, and image download sites, but you can use it for free. File Tracking CodeIn order to track downloads, create a link to your file using the following method: <a href=http://www.ezwebstat.com/dlcount.php?id=username&url=http://www.yourwebsite.com/yourfile.zip> yourfile.zip </a> Replace username with your user name and yourfile with the name of the file you want tracked. This script will keep a running total of the number of times a file has been downloaded. Display the Number of Downloads StatisticYou can display the download statistic for individual files using the showhits.php script. Simply add a link to the script where you want the count to be displayed: <script language=JavaScript type=text/javascript src=http://www.ezwebstat.com/showhits.php? id=username&st=js&mpdl=http://www.yourwebsite.com/yourfile.zip> </script> Use the &mpdl= variable to link to your file. This method will show the number of times that file has been downloaded. You can also display statistics for all downloaded files combined. Follow the instructions for displaying a statistic, and add the &type variable using the following types:
For example, <script language="JavaScript" type="text/javascript" src="http://www.ezwebstat.com/showhits.php?id=username&st=js&type=totaldlfiles"> </script> will show the number of files that have the &mpdl tag in the link and have been downloaded at least once. |
|
|||||