Webstat, Copyright (c) 1998 Lars Akerman 
(http://www.cgiexpert.com)


Version 1.00 - Original version


1. Description
--------------

  Webstat application is a freeware CGI application for generating and showing 
  web statisics for your site. With webstat you do more than just count hits.
  Webstat is created using CGIExpert. If you would like full source code for this
  application, it is included in CGIExpert professional (http://www.cgiexpert.com)
  
  note: Webstat application is a windows application designed for Windows 95 or NT

  A demo of the application can be found at: http://www.cgiexpert.com/scripts/webstat.exe
  

2. "Intallation"
===============
 a) Add webstat.exe and webstat.htm to a directory of a www-server 
 (running on Win95 or WinNT) that is configured to execute CGI applications.
 
 b) Create to empty files named webstat1.stat (short history) and 
 webstat2.stat  (long history). If possible, the files are automatically created 
 when first statistics is created.
 The files must have read and write access by everyone.


3. Generating statistics
========================
Add the following html code in each document that is supposed to generate statistics:

<script language="JavaScript">
<!--
document.write('<a href="/scripts/webstat.exe">','<img src="/scripts/webstat.exe?action=stat&referer=',escape(document.referrer) ,'" border=0></a>')
//-->
</script>

note1, '/scripts/webstat.exe' must be changed to your specific location
note2, Same tcp/ip address and browser combination does only generate statistics 
       if it occurs with an interval of minimum 30 minutes.

4. Showing statistics
======================

To show statistics, you just click the webstat icon or call the webstat.exe application
from your browser with no additional parameters.


You can customise your webstat statistics by just editing the file webstat.htm
The following "tags" is then of importance:

// Values

%DATE%   - The current date
%TIME%  - The current time
%HITS_TODAY% - Number of hits the current day
%HITS_1D% - Number of hits the last 24 Hours
%HITS_7D% - Number of hits the last 7 Days
%HITS_30D% - Number of hits the last 30 Days
%HITS_365D% - Number of hits the last 365 Days
%HITS_TODAY% - Number of hits the current day
%HITS_1D% - Number of hits the last 24 Hours
%HITS_7D% - Number of hits the last 7 Days
%HITS_30D% - Number of hits the last 30 Days
%HITS_365D% - Number of hits the last 365 Days
%TOP_30% - Top hits the last 30 Days
%TOP_30_DAY% - Top hits day the last 30 Days
%TOP_365% - Top hits the last 365 Days
%TOP_365_DAY% - Top hits day the last 30 Days

// Tables

%LASTVISITORSTAT_X% - Last visitors statistics. (X: Maximum to show)
%BROWSERSTAT_X_Y% - Browser statistics (X: Out of Last 'X' visitors, Y: Maximum to show)
%REFERERSTAT_X_Y%  - Referer statistics (X: Out of Last 'X' visitors, Y: Maximum to show)
%REMOTEADDRSTAT_X_Y%  - Remote address statistics (X: Out of Last 'X' visitors, Y: Maximum to show)
%REMOTEDOMAINSTAT_X_Y%  - Remote domain statistics (X: Out of Last 'X' visitors, Y: Maximum to show)

// Chart

The following line is used to show a chart

<img src="%SCRIPT_NAME%?ACTION=CHART&WIDTH=600&HEIGHT=200&DAYS=90&ACCURACY=1D&%RANDOM%" width=600 height=200>
Chart parameters:
WIDTH : The width of the chart to generate
HEIGHT : The height of the chart to generate
DAYS: Number of days to use when calculating
ACCURACY: Number of Days (D) or Hours(H) to in each column in the chart



(For more information please visit: http://www.cgiexpert.com/cgiexpert_webstat.htm).



5. For more information and documentation
=========================================
please visit http://www.cgiexpert.com/cgiexpert_webstat.htm


