Updated Analytics code.