I've got mine in the same place, under the gas tank. I thought I had toasted it but I only had some dirty connections on the black wire. So, 58,000 mile of hard, hot riding and it still works in that location.
Another nice idea: write John's number on the back of the regulator. Might come in handy some day.