Updating analytics code