Wideband O2 sensor should be before the cat for best accuracy. After the cat can still be useful for full-throttle tuning because the amount of O2 used up by the cat is very small compared to the amount of exhaust flow at full throttle. At part throttle, the cat would affect downstream O2 readings more.