reset first visit metric before beforeunload event sent