This work introduces a method to perform an optogenetic single-unit recording reliably from an awake mouse using a custom-made glass optrode.