Using Access Counters


You may wish to add a simple counter to your Web page. AAPT provide the nph counter for AAPT Web sites. 

The nph counter displays as:

To add the counter to your Web page, enter the following script at the appropriate position in your page. The counter code must all be on a single line. 

<img src="/cgi-bin/nph-count?width=5&link=www.yourdomain.com.au">

  • Replace www.yourdomain.com.au with the domain of your AAPT Web site.
  • Be careful of spaces. The only space in the code is between img and source. There is no space between any other letters or symbols.
  • The width of your counter can be modified. 

Width determines the number of digits that are displayed in your counter. If the number of hits to your page exceeds the number of digits an extra digit space is added automatically to cater for the larger number. For example, if you have set a width of two and receive 34 hits, the counter will display as 34. If the count reaches 100 an extra placeholder is added so the counter displays 100. If you have set a width of 4 however, 34 hits will display as 0034 and 100 hits will display as 0100.

Access counters can provide only a rough indication of visitor numbers to your site. More accurate access information can be obtained from your access logs.

 

 




Copyright © AAPT Limited