visitor.js is a javascript library that provides information about the client.
Including:
- Continent, Country and city
- Date of last visit
- Referring website or search engine (including search term)
- Time spent on the website
- Browser and operating system
- IP Address
- Language
- Browser
- OS
- Screen size
And more.
http://www.visitorjs.com/
Visitorjs might be very handy, it's not free however.