Add action for google analytics
Fix google analytics bug