So I have done it a couple ways, but I should mention that near the exhaust is not the preferred placement.
The horizontal placement just below the tank is good, and add in a heatshield to keep temps down.
I also have a rear tank in a coupe and that pump is mounted in the frame rail, again...