Adding classes to cache google analytic statistics so we do not have to ...

...retrieve them each time the page is loaded.
Can you write a method that does this conversion?