add a generic error dialog template
track the EOP segment in analytics