U of A University Information Technology Services
Web Page Hit CounterYou will need to edit the page's HTML to add the counter code. Either SSH to your account (SSH Secure Shell for Windows or Macintosh SSH) and open the file with Pico or edit the HTML in an editor such as Dreamweaver. Copy and paste the following into the file in the place where you would like the counter to show on the page. Disclaimer: The web page hit counter provided by ITS may produce inaccurate results. The hit counter results will include hits obtained when search engines, such as Google, index a Web page. On comp.uark.edu: On cavern.uark.edu: This code must all be on one line in your file! This line of code will display only a number. You will also need to type in any preceding text such as "You are visitor number: " or any desired formatting such as font size/color and/or a table. To use number images (that you have drawn, downloaded, etc.), make sure the files are GIF files and the filenames are zero.gif, one.gif, two.gif, etc. (You will have ten images). Upload the images to your account and change the counter code to the following: On comp.uark.edu: On cavern.uark.edu: The -myIP SwitchAt this time, this switch will only work on cavern.uark.edu accounts. -myIP allows you to specify your computer's IP address so that the computer you are using to work on your page will be ignored by the counter, and you won't get a false count from reloading the page to check while editing. To use this switch, you will include the IP address of your computer in the code:
replacing "000.000.00.00" with the actual IP number of the computer you will be using. Remember that Unix is case-sensitive. You must type "-myIP" using the mixed case lettering. You cannot combine this switch with the -n switch. The count will be displayed as only a number (as with the default). When the page is loaded from the IP address specified in the switch, the count will be displayed as a link to reset your counts for that page in addition to displaying the last date that your page was visited.
|
http://uits.uark.edu/web/index_4760_ENG_HTML.htm





