I have one dog that does this. This may not be an option for you, but once I started feeding raw, prey model, no more eating poop!

Their stools are so small now cause their little bodies use up all the nutrients that I guess there's nothing fun left to eat.
Other than that, I could never get her to stop eating it. I had just ordered some SEP and by the time it came, I didn't need it, so there it sits unopened.