moving google analytics method to post request click handler