Here is a goal: How would a person attach a magnet to a compact or other piece of makeup?

Which way makes more sense to accomplish this goal?

(I). Remove the magnet from its backing and with a heated hot glue gun with a glue stick loaded into the gun attach a dot of hot glue to the middle of the magnet and then stick the hot glue onto the compact or cosmetic and hold it until it cools..
(II). Remove the magnet from its backing and with a heated hot glue gun with no glue stick loaded into the gun attach a dot of hot glue to the middle of the magnet and then stick the hot glue onto the compact or cosmetic and hold it until it cools..
(I).