This behavior is called coprophagia, a fancy term for eating feces

Adding meat tenderizer containing papain, in small quantities to our dog’s food, will sometimes prevent poop eating. Make sure it does not contain other additives such as MSG or salt. Some people also suggest adding pumpkin, pineapple, or stool deterrent supplements as alternatives. Our vet can also give our dog medicine, that will make his stool taste extremely bitter.

Whether your dog eats poop or not – it is extremely important to provide your pet with a proper diet.

For puppies, eating feces may simply be a learning experience. Puppies learn things by putting nearly everything that comes in front of them in their mouth. Most puppies will develop a distaste for poop in fairly short order. So, if your dog is a puppy, you can relax… chances are that they will change their behavior in due time. Just make sure you keep an eye on things and try to remove waste whenever possible so that your dog doesn’t develop bad habits.

The Dog Trainer : Why Do Dogs Eat Poop? :: Quick and Dirty Tips ™

Dogs will sometimes eat their own poop to relieve stress. This usually only occurs when the dog is extremely anxious. You could try putting some bad-tasting substance, such as hot sauce, on the dog droppings. The idea is that the dog eats the poop and it tastes so horrible he'll stop doing it. You could try this method, but it means that you aren't picking up the droppings right away, which is the best means of both preventing coprophagia and keeping your yard clean. You also would have to do this consistently, which means running around with a bottle of tabasco sauce and pouring it on poop. Tip: Try other remedies first.

Why Do Dogs Eat Other Animals' Poop?

Thanks for another great article.
My dog did eat her poop,and loved cat poop when she could find it. I tried changing her food and other things, nothing stopped her.
I now give her a homeopathic remedy and that works for her.

Use Dis-Taste to discourage the disturbing habit of stool eating

I chose a pug to help convey the meaning of this Stop Eating Poop remedy for dogs because pugs both mow on their own turds and suck in general. OK listen. I love all nature's creatures. Mostly the human women kind, but all creatures nonetheless. However, if I had to select a few of them to exterminate from every facet of my life, my list would go: 1) ; 2) Cats; 3) Pugs. I'm an advocate of owning a dog as a pet, but I am not an advocate of owning the kind of dog that is both ugly and hack-snot-coughs in your face with its particles-of-shit-laced breath every opportunity it gets.Possible Remedies
Some dog owners have used hot pepper or Tabasco sauce on feces to deter poop eating. This type of remedy may work for you. But in some cases ‘flavoring’ actually increased the poop eating behavior.So if you have a dog, pug or otherwise, that consumes its own poop, and you would like it to stop eating its own poop, here's a tub of Solid Gold S.E.P., or Stop Eating Poop, for you. Mix recommended measurements in with the offending dog's food twice daily for the first two weeks, and then once daily thereafter, to make its stool taste bitter and unappealing. Even to the dog itself. Contents include Glutamic Acid, which accounts for the offputting taste, yucca to help control excrement odor, and peppermint and parsley to fight bad breath. Geez, sounds like 3 miracles in one.Another idea is to feed your dog broccoli, cabbage, or Brussels sprouts. The idea behind these remedies is that the fruit or vegetable makes the poop so undesirable that the dog will not touch it. Some of these additives seem to work in some dogs, but not all.

Adding enzymes to the dog’s food may also help. ProZyme, for example, is one popular and readily available brand. A similar home remedy is to add meat tenderizer to the dog's meals to stop coprophagia.