Connecting pixcube with magnet

I have a pixcube orange and a zubax fg401m, any tips or guides on how to connect and test the magnet through the CAN bus