It has been a while since I was supposed to handle this, but Google Analytics has an XML output type, so you can parse this to get the data in your own system. However, I believe that there is no way to get the xml file programmatically, so someone else needs to log in and generate the file and submit it to your application.
Good question though, I would like to see if there is a 100% automatic solution.
Giovanni galbo
source share