There are numerous threads on this forum about the placement of thru hull, in hull and transom mount transducers.
I personally prefer thru hull but the position is important. Airmar have a lot of info on their site.
If it is the large shoe sized transducer then performance is markedly improved with the high speed fairing block.