I've always been partial to getting the reading as close to the motor as possible. The one place I would guard against is after the oil cooler. The pan is good, as would be the line from the engine to the oil cooler (I'm assuming a mechanical gauge).
Some companies make the oil filter adapters with NPT holes for the electric sensors, so that may be an option as well.