So the question is, can the Google Analytics API be used to update statistics on our web pages?
Yes it is. But the authentication process and xml return can slow down. You can speed it up by restricting the returned rows / columns. In addition, authentication for how you want to display data (if I understand you correctly) will require the use of a client authentication method. You are sending username and password. Security is a problem.
I did exactly what you described, but had to put the loading schedule on the statistics page.
If I cache the results, is this more possible? Or just update our statistics occasionally?
Either one, but caching seems to work, especially because GA data is not real-time data. You can make an api call and save (or process, then save) the returned xml for display later.
I did not do this, but I think I could leave. It can even run as a scheduled task.
I really like Google Analytics for our site metrics, but maybe there is a better solution for this particular need?
There are some third-party solutions (googling should eradicate them), but you need to consider money and feasibility.
source share