Quick PHP Scripts: Visitor Tracking Script

What this is: This is a very simple script to keep track of your website’s visitors (ex IP, referral URL, browser,etc)What you need: Some minor understanding and access to your SQL server is required to get this script working, as well as some understanding of how to cut and paste.This will record each visitor’s IP, User agent, URL visited, and, if available the URL of the referring website. Simply copy and paste the provided code and then make the few simple modifications requested and you will be able to know much more about traffic to your sites. To implement this on multiple sites you may want to create multiple tables, one for each site worked the best for me. 

Author: Marcos Sausilitos

Learn more