I see that in some scripts, they integrate somehow your google analitics data, and show you some grpahs. For example VIVVO: https://www.google.ro/search?hl=en&...urce=og&sa=N&tab=wi&ei=Nf_7ULzJJYrIswawooGIDg how they collect your data?
Here's some more information about the Google Analytics API, API stand for Application Programming Interface if you don't already know.
You will have to learn on how to use an API, there is a lot of documentation for the Google Analytics. I added the link in the previous post.