What type of controller are you using to interface between the analyzer and the injector?
Shortest is always best, but if this isn't practicle beacuse of poor mixing and streaming in low flows, and a longer distance is needed, run the plant at minimum flow and then time how long it takes from you increasing the dose manually to the analzyer picking it up. Add a few more seconds (whatever your comfortable with) and put that in as your dwell time on the controller. It all depends on how robust your plant is and if you have you have a CPP system to shut the plant if your residual goes hihi or lolo. I've had a plant with a 20m sample line (from sample point to analzyer) which was 10m down stream of the injection point that worked fine once we got the dwell time right, otherwise it was hunting all over the place.