This should be pretty much anything that you need to know.
http://www.native-instruments.com/en/products/traktor/dj-mixer/traktor-kontrol-z2/overview/setup-examples/
You can also do it the oldschool way and grab the booth out and record it.
It depends on your setup.
If you play vinyl, the simply way is to record the booth out.
If you use DVS (traktor scratch) – record internal.
I dont know if the Z2 has a USB recording option, my controller has it – it shows in windows as an input device (outside of the DJ software) if switched on.