restoring analytics