Direct answer
A shot that hits the woodwork and does not go in is generally not on target under Opta’s definition. The operator’s designated source and rule control the wager.
What to check
Check whether the ball went in off the post or simply rebounded. Both can be shots, but they are not necessarily both shots on target.