Here are some plugins that i have built for my personal use.
Maybe they can be usefull to someone else ? If you find these you're supposed to know what you are doing. Use them free of charge at your own risk ;)
phpMyVisites | Open source web analytics