added google analytics to api