Doesn't matter.
The computer counts how many times the magnet passes the sensor for a given period of time. With this information and the circumference of the wheel it can calculate distance covered, speed and other data.
If you have the magnet REALLY close to the hub, chances of the sensor counting the magnet twice per revolution increases, especially at slow speeds, so don't put it that far down.