I run my UV on the return to the fishtank, kill anything left after the microbes in the filter have done their magic. So perhaps the latter would be best. And I would always run CO2 on the filter output, but in my experience using a filter to diffuse CO2 doesn't make much difference to the effectiveness of the filter but can lead to gas bubbles and noise. Hope that helps. If would want to put in a online heater stat as well I would also suggest on the return to tank, but then think of all the potential leak points. Not sure it makes any difference whether you are UV sterilising CO2 rich water or CO2 depleted water.