WDT: Tools Counter Script
uprm.edu | wdt | feedback | accesibility | code | web toolkit | DevNet
Basic Webpage Counter
Description

This tools allows you to count visits to a webpage. This tool does not offer statistics, just a plain count of visits.

Implementation

Anybody with an account in uprm.edu may use this tool. The counter can only be used in webpages hosted by any server in the uprm.edu domain.

This tools works by adding a small JavaScript to your webpage. This JavaScript calls a tool hosted at our servers. This tools will return the total hits for the given page.

Getting Ready:

To use this tool users must request a page ID by calling ext 2055 or by email to wmaster at uprm.edu. Send your contact information, your uprm email account and the url of the page. Once you recieve this ID make sure you record this number in a safe place for future reference.

Using the counter in your pages:
To include a counter in a web page you must add one Javascript to your page.

This java script is the one that calls the counter. The actual code for the javascript is not included instead you call an external script. When you call the external script you must provide some arguments to the counter tool.

This is an example of the javascript need in your webpage.
<script type="text/javascript"
src="http://www.uprm.edu/app/ckcounter.php?id=1">
</
script>

The argument to the counter tool is the one after the ? question mark just like in any other cgi.

The counter requires one argument:

ckcounter.php?id=1

id
Is a unique number assigned to a web page by the WDT when you request a counter.

NF

Last Revision: May. 04, WDT, wmaster@uprm.edu