First thing you need to do, is to find out which wire at the switch provides power from the bikes electrical system .
I'm not familiar with your electrical knowledge, do you have and know how to use a multimeter ?
If you have one and know how to use it, with the key in the 'ON' position, take the red wired probe of the meter and place it in contact with the metal conductor of one of the wires, the black wired probe goes to bare metal on the engine .
Do this with each wire at the switch, until you find the one that has 12 VDC, or whatever your battery voltage is .