Upgrade Analytics script