As close to the exhaust manifold as you can get it. Stock on blazers is right under the left side ex manifold.
If you change from the single wire 02 to a a heated 3 wire sensor you can place it almost anywhere between the manifold and the cat convertor. If you dont have a cat you should still place it as close to the EX manifold as possible.