It really doesn't matter. There is, however, a belief that putting the magnet towards the hub is better because weight at the rim slows acceleration by making more weight's inertia to overcome. In theory that's true but in reality the position of the magnet is irrelevant so put it where it can talk to the sensor.