Blue,
Sorry this isn't directly going to answer your question but check on sourceforge.net for any programs that will do analytics. It is the main source for Open Source software so ya might get a few pointers there. It is certainly possible but as regards dedicated tools to do this, sorry.