logs event location to cookie