Make analytics optional