That way your ghost track plays back but no sound is being sent to the master bus. So in a Steinberg DAW you would use the Input and Output above each channel strip in the mixer and set Output to none.
You cannot use mute because that silences the ghost track. I use 'ghost tracks' - I duplicate the track that is triggering the compression and disable the track output of the duplicate so it is silent.