according to Appendix II of the Rule book, which is entitled Record Keeping:
so if a shot bounces over the goal or just to the side without making contact with the goalie, it should not be recorded as a shot on goal. This also means that hitting the pipe is not a save.
Some leniency has to be given to the stat keeper, because you cant see everything, everytime ... but if you are counting every wide shot and every pipe, its not fair to the other goalies in the state