How do you get your dog to stop eating its poop?

You have to feed Him/Her Pinapple