I like to put the tstat probe on the uth under the glass. This way it is less likely to be moved and send your tstat to full power.
I put my thermometer probe on the glass in the tank to track the internal temp under the substrate. If this one is moved its no big deal. I also use a temp gun to check and track the substrate surface temp.
You can do either way but this way is safer. IMO.