This protocol describes the referencing and grounding strategy to record EEG and Neuropixels data from a head-fixed mouse in-vivo.