What you need:
- 6x1 mm Neodymium Magnet- Super Glue
Just glue the magnet correctly in the hole, let the glue dry for a minute. Attach to the extruder motor axis.