Analytics code updated