Avoid Encouraging The Behavior
You might see it as scolding, but overreacting when you catch the dog eating chicken poop like beating the dog will help to stop
The easiest way to keep your dog from eating chicken poop is to keep your dog away from chickens and their living coops. Dogs are playful and instinctual, and will do what they will for interaction and sustenance, including eating their fellow animals poop.
You can also engage your dog with exercise to tire them out and keep them focused on you, while obedience training is an option to enhance their listening skills for when you give them a direct order.