^^Thats pretty much what I do except I use what 3M calls mounting tape. It has a little cushioning to it which may help isolate electronics from shocks amd vibration.
Shoe Goo will do the job though, just a little more work to clean up when you have to remove it.