updated analytics code :)