I use hot glue on shells all the time. An O-gauge shell is way too think for hot glue to cause a problem.
You must clearly always be mindful of where the flywheels are, adjusting clearances is one of the primary issues in wiring a shell. Keeping the wires from getting pinched between the shell and the frame is also pretty high on the list.