LepStats — Free hit counter/tracker (web statistics)
LepStats is a program written in Perl, giving a wide range of information about each visitor to your site. It provides reports based on time period (hour, day, month, year), system (visitor’s operating system, browser, screen dimension, colour), countries and also displays your referrers and pages visited. Server log files are not needed, as it uses its own log files. The tracking code can be installed on multiple pages and it is hidden to your visitors. For Unix/Linux servers. Version 3.0 available!
Download [file size (*.zip): 330K]
Instalation instructions
INCLUDED FILES
1. cgi-bin/lepstats/
— lepstats_template.html [HTML template for stats output]
— lepstats_tracker.cgi [tracking script]
— lepstats_vars.cgi [subroutines and User defined variables]
— lepstats.cgi [script to view the stats]
3. cgi-bin/lepstats/logs/
— 23 log files [various logs used by the scripts]
4. lepstats/
— 11 images [various images used by the scripts]
— styles.css [style sheet for scripts]
— lepstats.js [JavaScript source file]
5. lepstats/flags/
— 267 images [various country flag images]
6. readme.txt
CONFIGURATION
1. The “cgi-bin/lepstats/lepstats_tracker.cgi” and “cgi-bin/lepstats/lepstats.cgi” use this path to Perl: #!/usr/bin/perl. Change this if necessary.
2. Open “lepstats_vars.cgi” and edit the “User defined variables” as needed.
3. Open “lepstats.js” and follow the instructions there.
4. Open the page you’d liked tracked and add this script tag [REPLACE “www.yourdomain.com” WITH YOUR DOMAIN!]:
<!-- LEPSTATS S -->
<script language="javascript" type="text/javascript" src="http://www.yourdomain.com/lepstats/lepstats.js"></script>
<noscript><img src="http://www.yourdomain.com/cgi-bin/lepstats/lepstats_tracker.cgi?js=n" border="0" width="1" height="1" alt=" "></noscript>
<!-- LEPSTATS E -->
INSTALATION
1. Upload a directory called “lepstats” including all files in your CGI-BIN in ASCII and chmod:
— directory “lepstats” to 755
— file “lepstats_tracker.cgi” to 755
— file “lepstats_vars.cgi” to 755
— file “lepstats.cgi” to 755
2. Upload a directory called “logs” including all files in ASCII and chmod:
— directory “logs” to 777
— all files 777
3. Upload a directory called “lepstats” in your Public HTML directory including all files and “flags” directory:
— images in binary
— remaining files in ASCII
4. Upload your page with the script tag and you should be ready!
EXECUTION
The script should be active after uploading the files. Visit one of your pages to register at least one hit (do NOT change “@ignoreIPs” line with your IP in “lepstats_vars.cgi” file at this stage) and to test the script.
NOTE! Registering at least one hit will prevent messages “Software Error”, caused by division by zero “0” (“0” exists by default in some of the log files) in some sections. In “Countries” section the same will occur when a visitor’s IP contains only numbers (you need at least one hit from a visitor having letters [Internet domain] in the IP — “.com”, “.us” for example).
Now visit: “http://www.yourdomain.com/cgi-bin/lepstats/lepstats.cgi” to view your statistics. If everything is OK change “@ignoreIPs” line with your IP/IP’s in “lepstats_vars.cgi” file if you wish.
This program is free software; you can redistribute it and/or modify it in any way. It is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY. Installation instructions included with the *.zip package.
HotScripts.com |
Scripts.com |
The CGI Resource Index