| Download Tracker ASP Script - ASP Web Pro |
|
ASP ScriptsDOWNLOAD TRACKERAnother popular web statistic that is valuable to track is how many times an item has been downloaded. This may seem a little more indepth than our other web statistic scripts, but just take it step by step and you will make it. This little script will track the title of each item that is downloaded and it will track how many times it was downloaded each day. The first thing you need is a file to be downloaded. For our purposes, we will say that we want to download this file: http://www.aspwebpro.com/downloads/document.txt. Second, create a web page called downloads.asp within you root directory. Then, add a hyperlink on your web page like this:
Third, create a new table called tblDownloads in your Access database and give it these fields: The fourth step is creating the downloadtracker.asp page. First, create an /includes folder within your root directory. Next, create a blank page and copy the below code into it. Lastly, save the page as downloadtracker.asp and save it within your new /includes directory.
Just create a /downloads folder within your root directory and place all of your downloads within it. Believe it or not, that's it! Now you can track which items are being downloaded from your website, how often, and how many downloads occur.
|
||||||
|
Main Menu Other Resources
Last Updated:
|
||||||
|
© 1997-2012 ASP Web Pro, Inc. | Terms of Use
|