Goats are browsers rather than grazers.
That means that they prefer to eat woody shoots and stems of trees and shrubs (including your flowering plants) over grasses like hay.
In this regard goats are more closely related to deer than to other domestic livestock like sheep or cattle, which are both grazers.
Like Tea Drinker mentioned they also like variety and will try pretty much anything if left to their own devices.
gardening.stackexchange.com/users/390/brian buck
Some goats are immune to electric fences.
I usually chase my goats out of the roses and various other plants with a stick.
I have also resorted to waving my arms and rather ugly words.
I never touch them (well today I whacked the female for the first time)
she had just finished off the last of the newly potted plants, in our enclosed anti-goat terrace.
They are lovely but the male goat pisses on the children's toys.
Yes, he is a goat, not a dog.
I have a 3 foot wooden fence and it is just something fun to jump over.
I also have a four foot electric fence that deters all other animals but goats.
My advice is to love your goats more than the plants because they will eat all your favorites, perch on everything like parrots, bleat early in the morning and their mating habits are not good morning material.
gardening.stackexchange.com/users/2147/crazygoatlady
Sure: a 6-foot high fence.
Preferably with some electrification.
Given that goats will, on occasion, eat things as diverse as cardboard, newspaper, clothing and cat food, nothing you can spray on your plants is going to dissuade them.
gardening.stackexchange.com/users/1431/FuzzyChef
Good quality electric fence will do the trick.
It only needs to be 32 or 36 inches high.
It will also keep them from standing on your car.
gardening.stackexchange.com/users/1559/doug
We have goats on our farm.
Larger ones and small, Dwarf Nigerian ones.
One things is true about animals in a fence, they'll test the fences.
Horse, donkey, pig
, goat... they'll test the fence and if the fence has a weakness, they'll likely find it.
We use goat/sheep fence to keep the goats within their fields.
This is a woven wire fence with 4" x 4" openings.
The woven wire is more expensive than the welded wire
but it is considerably more durable.
Our goat fence is 4' high and that is certainly sufficient to contain a goat as long as there is nothing nearby upon which it can climb.
We utilize electric tape to encourage the larger animals to respect the fence (a horse can put tremendous pressure on fence posts) but the goats tend to be happy with their pasture.
To keep them off of a particular area, I'd think step-in posts with electric netting and a sufficiently powerful solar charger would be a good choice.
gardening.stackexchange.com/users/259/itsmatt
Try applying fresh cow dung or goat dung on leaves.
The stinky odor keeps the goats away from them.
Check the type of plant before spraying it.
Sometimes it might harm the leaves.
gardening.stackexchange.com/users/10956/Aimy
A tea of goat dung has been use since before I was a kid that was 65 years ago
and my grandmother told me about that
and she passed at 87 abut
40 yrs ago they lived and didn't get diseased and the tea helps the plant to thrive.
secondly after raising a herd of over a hundred goats I've found that a 39 inch woven wire fence with two strands of barbed wire with a strand of electric wire between them and one half way up on the woven wire does good also if you can rotate them bi-daily and into areas that has some brush that seems to entertain them and they aren't so apt to want to got out as quick.
gardening.stackexchange.com/users/14596/Ron E Bequeath
I have a couple of goats I like to let run around my yard, problem is I have a few flowering plants out there too. The goats seem to target these heavily, I was wondering if there was some way to keep them from eating specific plants/groups of plants? They get all the free choice hay they want at their pen, so I know they're not starving.
Keeping goats from eating my plants
gardening.stackexchange.com
<flowers><pests>
gardening.stackexchange.com/questions/4757
gardening.stackexchange.com/users/1411/Tracie
Goat prefer to eat woody stems than grasses. Apply some goat dung to the leaves or put up a high or electric fence. Goats are browsers rather than grazers. They prefer to eat woody shoots and stems of trees and shrubs over grasses. You can simply chase  goats out of the roses and other plants with a stick. Nothing you can spray on your plants is going to dissuade them, except perhaps applying fresh cow or goat dung on the leaves. A 6 foot high fence or step-in posts with electric netting and a sufficiently powerful solar charger would be a good choice. In the end you probably need to love your goats more than the plants because they will eat all your favorites.
Goats are browsers rather than grazers. S1: They prefer to eat woody shoots and stems of trees and shrubs over grasses. You can simply chase  goats out of the roses and other plants with a stick. In the end you probably need to love your goats more than the plants because they will eat all your favorites. Nothing you can spray on your plants is going to dissuade them, except perhaps applying fresh cow or goat dung on the leaves. A 6 foot high fence or step-in posts with electric netting and a sufficiently powerful solar charger would be a good choice. A 39 inch woven wire fence with two strands of barbed wire with a strand of electric wire between them may work.