I prefer hot glue. no matter what you use you don't want to cover the probe itself as this can create false readings by trapping heat in.
Foil tape is made from Aluminum. Aluminum is a good conductor of both heat and electricity. when used to attach a thermostat probe, it can act like a heat sink. altering the probes readings.