They usually come with some double sided foam tape and/or zip ties. Either of which usually work. Clean the spot where you use double sided tape with a degreaser or rubbing alcohol for better adhesion.
Mall ninja here! Black peal and stick velcro on the switches themselves and electrical cable ties for the cords. Any place you use the stick on velcro, wipe the surfaces clean with rubbing alcohol first.