error check on ID. analytics collection included