updated to use google analytics