Move Analytics code