AEM UEGO instructions it says the following about locations to put the O2 bung on.
For NA: at least 18" away from the exhaust.
For Turbo: at least 36" from the turbo, do not put it before the turbo.
Closer then that will make the sensor overheat. Putting it behind the CAT will make it have incorrect readings because the cat will burn off unburnt fuel!
More info can be found on Page 8
here.