LLNL Page Statistics Generator Instructions
by
Tim Harsch

    OK, you want statistics on some page on the site that the world gets to see.  Problem: the powers that be say you can't have any affiliation with a commercial site so those free page stats counter that are hosted by some other site are no good...  Well, I too ran into that and found a nice Page Stats program written by some guy named Dave McNeil and modified it for our purposes.  Take a gander at this:

You are visitor number , since March 11th 1999.
Click here to see the Stats Page.

    Now that you know what you are gonna get, let's figure out how you can get it...

Step 1:
    Choose a set of counter images from this list that you like (note the counter name in parantheses):
- or -
    Go to DigitMania find a counter you want email me and I will make add it to the list.

Step 2:
    Choose a name to track your page with.   Typically this is the name of the .html file so that if your page name is instructions.html the name you would choose is "instructions".  However, if the name you would like conflicts with any in the list below choose another one or you will be sharing stats with someone else.

Step 3:
    Login to BBRP and execute this command at the prompt:
    /d1/www/bbrp/bin/pagestats -command init -filename (The name you chose for your page)
eg
    /d1/www/bbrp/bin/pagestats -command init -filename instructions

If you can't logon to BBRP email me and I will do it for you.

Step 4:
    Insert HTML like this into your page:
<img src="http://greengenes.llnl.gov/bbrp/bin/pagestats?command=display&digit=0&filename=(your page name here)&number=(your counter name here)">
eg
<img src="http://greengenes.llnl.gov/bbrp/bin/pagestats?command=count&digit=5&filename=instruction&number=marsil">
<img src="http://greengenes.llnl.gov/bbrp/bin/pagestats?command=display&digit=4&filename=instruction&number=marsil">
<img src="http://greengenes.llnl.gov/bbrp/bin/pagestats?command=display&digit=3&filename=instruction&number=marsil">
<img src="http://greengenes.llnl.gov/bbrp/bin/pagestats?command=display&digit=2&filename=instruction&number=marsil">
<img src="http://greengenes.llnl.gov/bbrp/bin/pagestats?command=display&digit=1&filename=instruction&number=marsil">
<img src="http://greengenes.llnl.gov/bbrp/bin/pagestats?command=display&digit=0&filename=instruction&number=marsil">

    Notice that the first line (digit=5) has command=count and the rest have command=display... that line increments the counter and the rest only display it.

Step 5:
    Check your Page Stats at
    http://greengenes.llnl.gov/bbrp/counter/(your page name).html
eg
    http://greengenes.llnl.gov/bbrp/counter/instructions_stats.html

Thanks and praise can be sent to Tim Harsch... please send all complaints to /dev/null  :-)