changes to tracking lib -- fixed localstorage error when dequeueing events*