In the NHL a shot on goal is when the puck would have gone in the net if there was no goalie/player there to stop it. Or to put it another way, just pretend there is nobody "in the net", meaning the empty net is just standing there. If the puck would have gone in the net, it is a shot on goal...