I would advise getting the data by contacting the Google Analytics API by sending the appropriate HTTP request to the analytic account. It will respond by sending an XML feed, which you can parse in the database if you want, or in a flat file.
Here is a link to the Google Data API
, - , , HTML5 <canvas> javascript, : .. .