100 pts. :: M E T R I C S :: .stp 001
• metrics is a term used in measuring things, i.e. effectiveness, frequency ...
• web metrics is specifically measuring the statistics associated with some web site.
• The most common web metric is a web site counter that counts the number of visitors to a particular site (like the one at the bottom of the index page to this site).
This project is as you have guessed about web metrics; here is what you have to do:
P A R T O N E - get it working. 50 pts.
(i) Download the code for your web counter (to your UNIX server): c o d e
(ii) Place the code in a relevant place (i.e. /etc is NOT a good choice), and extract using the tar command (remember that one; you should ... if not man tar).
(iii) Some of the code is specific to my server, i.e. the path to the directory that I have files installed is defined as the $path variable , you may (probably) have to change this variable in the source code to reflect where you have it installed.
(iv) Call the code from somewhere on one of your pages, probably the index page, but it could be any or all of your pages.
(v) There is a permissions thing to do too; read the README it is all in there.
Basically read the README and you will have it.
P A R T T W O - modify
• [30 pts; for a B] Make an additional page that calculates the percentage of users that "hit" your site using IE, Firefox, or other.
• [40 pts; for an A] This counter just counts every "hit" to the page; this is ok, but somtimes we are more interested in so called "uniques". Which is the number of hits to a page by unique users, i.e. different users. In this case you only want the counter to increment if the user's IP is different than IP"s checked against some log file (there are a couple of ways to do this, probably the easiest is to write a script to grab the users IP and plop it into your own simple IP log file created by the script).
• [55 pts; That's right 5 bonus points] The above modification will truly calculate "uniques", but sometimes we want sort of "unique" hits, i.e. do not count every refresh of the page, but allow for a hit from a given IP once a day say or what ever time interval you choose. Modify the script to clear out the log file for our purposes of testing every 2 minutes, and thus allow another hit from a given IP after this time increment.
Hits: 4904