A “hit” is when you land a move undefended.
This does not include when a move is blocked. When you make contact with the opponent, regardless of hit or block, you will see me write “touch” (which aligns with the prescribed use of Japanese terms ateru / ataru). Other people have other ways of writing, so read other people and write your own terms with proper context; lack of specificity is confusing.