first implementation using google analytics