I have my thermostat probe taped to the underneath of the heat mat with my balls enclosure, as it being between the tank and mat was not allowing even transfer of heat through the glass and required me to set the temp higher (as there was an air pocket between the uth and bottom of tank that buffered heat transfer). You should be just fine taping the probe to the underneath of the pad as well, it should give you the same readings as it would between the pad and glass, so long as you make sure you secure the probe as flush to the uth as possible without covering the probe itself with tape or any other fixant. Putting anything directly over the probe (like tape or hot glue) can cause it to register temperatures improperly and could be a safety hazard for your snake and possibly yourself as well. Especially hot glue in this sense, so if you're going with glue to secure everything be careful; I highly recommend aluminium tape or electrical tape.
I wouldnt glue the thermometer probe down in the enclosure simply because I think it's a hassle to clean around wires but that's just me, id rather be able to pull everything out and clean with as minimal effort as possible.