Usual approach is to drill a small hole in the back of the prop driver and epoxy the magnet in there.
If it is done in the section at right angles to the prop shaft then no problems with it throwing out at high revs.
This is assuming you are using the ones we generally use, i.e. 3mm diameter and 1.5mm thick.