If that is the reason you pay a bonus, then you already lost. People will just do the minimum required to achieve he bonus requirements and will not keep the companies interest in mind. I’ve seen places where people prioritized stuff that was no longer in the companies interest, but made them eligible for a bonus.
You could just as well fold the bonus into the fixed salary and be better off in most cases.