It would depend on the design of your aftermarket gauge. If it's a thermobulb type, you could put it anywhere it would pick up heat but it may not be accurate if you get too far from the heat source. The stock location is best for that. If your gauge is an electrical sender type, it has to be grounded to work so just putting it inline in the heater hose won't get the job done without running a ground circuit for it.