Update Analytics code