When your dog eat poop, it's not something to take too serious as it might not be so strange. It could be because it's nervous.
I suggest that you keep a closer watch on your dog, keep the environment clean as possible as you can and also you could get your dog examined by the vet.
Thanks