The dog whisper did a show on this. You might be able to do a google search to find it. Basically he found that the dog he was working with liked bananas and he would feed the dog a bit of banana in the middle of where there was poop then he picked it up and offered it and when the dog refused he then feed it more banana.
Supposedly they are missing a mineral in their diet (according to him) and that is why the dog eats poop. Hope that helps.
I've been watch just about every show of the dog whisper to prepare myself for a new Yorkie.