Using Glue with Magnets [Article]
You'll need to consider the type of surface the magnet is being attached to when considering what type of adhesive to use. If the surface
Attaching Magnets in Your Design [Article]
If you need to fasten a magnet to your design or device, you can use either mechanical or adhesive-based methods.