fixed bug with new goal not begin default and added analytics