Not in direct contact with the boat (the boat should NOT be used as a ground).
Putting it near the fuse panel is the easiest way, then your + and - wire runs from your accessories are about the same length.
Other than that, you can put it about anywhere.