You want to measure the temps inside so placing it exposed to the inside of the cooler is better, also place bottles of water on top of your heating source, this helps to hold temps even and stable, if there's a loss of power your temps should hold for a bit.
Here's a helpful post http://ssscales.com/archives/804