If you have to mount magnets, you are using a hall effect pick-up.
A magnetic pickup generates its own field and senses disturbances caused by the passage of ferrous materials like ring-gear teeth. This type of sensor could be used on the flywheel ring gear for a tach (if the tooth count is known). However, if you wanted to use one for speed, you would have to mount it to the rear axle, count teeth on that ring gear and convert for wheel circumference per ring gear revolution.