If you dog is excited when greeting people, try to calm everyone involved down. Dog’s tend to get over stimulated with high pitched happy voices, adding touch to the happy voice is just to much stimulation for some dogs.
Try instead to quietly approach the dog, ask the dog to sit, try just one pet without talking to the dog.