It goes after all your equipment (yes, after your heater too). If you have a pool and spa combo, the type of system you have will depend on if you place the cell before of after the diverter valve to isolate the spa. If you have a pool only, it will be the last item in your plumbing before it goes back to the pool.