Emergency stop button

I purchased one of these emergency stop buttons from the shop here - but i’m not sure how it should be wired.

Do I need to put it between the power supply and the ramps board? I’m using a 12V 6A power brick.

I’ve connected it between the main power and the power supply AND the spindle. So my stop button power off all the machine.