updated analytics code
updated analytics code