Skip Navigation Links 

U of A University Information Technology Services

Was this page helpful?
 [+]





...Or log into AskIT
and request help.

 

Web Page Hit Counter

You 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:
<!--#exec cmd="/export/home/services/www/cgi-bin/user_count.cgi" -->

On cavern.uark.edu:
<!--#exec cmd="/cgi-bin/user_count"-->

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:
<!--#exec cmd="/cgi-bin/user_count.cgi -n /~userid/numdir"-->
where "userid" is your actual comp.uark.edu username and "numdir" is the name of the directory (or path and directory) where your number graphics are located.

On cavern.uark.edu:
<!--#exec cmd="/cgi-bin/user_count -n /prevdir/userid/numdir"-->
where "userid" is your actual cavern.uark.edu username, "prevdir" is the previous directory before your home directory (as is used in your page's URL), and "numdir" is the name of the directory (or path and directory) where your number graphics are located.

The -myIP Switch

At 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:

<!--#exec cmd="/cgi-bin/user_count -myIP 000.000.00.00"-->

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.

 

 

Thank you for visiting ITS. This page can be found at:
http://uits.uark.edu/web/index_4760_ENG_HTML.htm
Follow us with RSS   Bookmark us using Add This   Follow us on facebook   Follow us on twitter   Follow Us