this is what they show as a demo in the readme
<?
session_start();
include("stats.php");
include("bro.php");
$conn = db_connect();
// set the page id
// we could set this variable to "Gallery" for photogallery, etc.
$page_id = "Homepage";
// set the visitor id
// I'll set this variable to session id, which is the simpliest way
// This way I won't be able to get information if the user has been on my
// page before - the better way is the usage of cookies.
$visitor_id = session_id();
// and finaly log the access to the database
log_access($conn,$page_id,$visitor_id);
?>
seems a little extensive. i checked out the program and the output looked good but didnt realize there was so much involved with the logging.
there is also this script
http://www.xentrik.net/phlogger/
which is free, but is more of a hit/stat trackter host so people can sign up and get stats hosted by you. it only uses a javascript tag to track on the pages you want. i have used this one in the past.