I am trying to develop a script to collect web stats for my website. Need to collect basic things such as Ip address, time/date, page accessed, browser info as well as collecting referrer type (organic, referral, direct) if it is a search engine it needs to get the keywords and search engine used. This then gets put into a mySQL database. Anyone know if there are bits of this script already made. Don't want to re-invent the wheel.
Sure, there are plenty of free scripts around that can at least get you started on that if not work right out of the box. There are about 200 different free scripts for web stats here: http://www.hotscripts.com/category/php/scripts-programs/web-traffic-analysis/