updated analytics tracking code, minor text edits to API