Can I fit on either the flow or return pipework?

Fit it to the return pipework. By-pass flow is always from flow to return pipework.