software | projects | photos | archive | about | contact | subscribe 

Home > Software > Live Web Stats

Live Web Stats

Analyzing website statistics usually involves looking at some charts and tables that get updated every day. But what if you could see who was on your site right now? Live Web Stats lets you see, in real time, where visitors are coming from and how they are navigating around your website.

Live Web Stats uses PHP and MySQL to log and track visitors. Data gathered includes any search query they used to arrive, any Google Adsense or Yahoo Publisher Network adverts they followed and via which link they might have left.

As all the data is kept on your server, you are free to create pages that present the statistical information in a way that best suits you.

See the live demo or alternatively, below is a timelapse video of visitors that came to this website over a 30 minute period.

Requirements:

Access to your own PHP and MySQL enabled website. (It is not essential to have phpMyAdmin installed but it is useful.)

FAQs:

Q1: How do I install Live Web Stats on my website?
Q2: Is there a trial version?
Q3: How much does Live Web Stats cost to buy?
Q4: Is this 100% accurate?
Q5: Why are some scrolling links on the demo page different colours?

Q1: How do I install Live Web Stats on my website?
A1:

  1. Unzip the downloaded "lws.zip" to find the following files
    • readme.txt
    • license.txt
    • livewebstats.sql
    • lws/styles.css
    • lws/track.js
    • lws/db_fns.php
    • lws/getstat.php
    • lws/live_web_stats.php
    • lws/track.php
    • lws/in.png
    • lws/out.png
  2. Set up a mysql database called "livewebstats" (or whatever you wish, using phpMyAdmin if you have it) and allow user access to it.
  3. Import using the file "mywebstats.sql" the data structure for the 3 tables; "in", "out" and "ref".
  4. Edit the two lines in "db_fns.php" marked "TODO" with your username, password and name of the database (set up in step 2 above).
  5. Open the file "track.js" with notepad and edit the top line marked "TODO" with your domain name.
  6. Place the "lws" folder in the root of your web folder such that there is a path to http://[your_domain]/lws/live_web_stats.php
  7. For each web page on your site that you wish to track, put

    <script type='text/javascript' src="http://[your_domain]/track.js"></script>

    right after the

    <body>

    tag.
  8. Open http://[your_domain]/lws/live_web_stats.php in a browser and watch the visitors come in.

Q2: Is there a trial version?
A2: No, but here is a demo page.

Q3: How much does Live Web Stats cost to buy?
A3: The price for version 1.0 is $10. (Please also read the notes on the column to the right if you intend to purchase Live Web Stats.)

Q4: Is this 100% accurate?
A4: No, it isn't 100% accurate... but close. The odd page could be missed. But the better your server, the better the tracking script will work.

Q5: Why are some scrolling links on the demo page different colours?
A5: Each visitor is represented by a different colour. If you mouseover the link, you can see their IP address.

Live Web Stats [comments]

($10)

A Paypal account is not required for purchase. Credit cards are accepted. Before completing your order please first read the license agreement and the instructions below the screenshot.

Screenshot:

Purchase via the "Buy Now" button above. This takes you to the Paypal website where you can pay. (Payment via credit card is also accepted by Paypal.) A download link will then be emailed to you.

Problems? Try the FAQs first. Comments, like suggestions for the next version are very welcome.

Related tags

, ,