While the queen is on the comb, you should lower the cage over the queen. The worker bees will escape from the spikes but the queen will remain. Using a queen marking pen or numbering kit - you should put a dot on the back of her thorax.
Marker available
HERE .