The physical distance between the shunt and battery neg terminal doesn't matter. What matters is the
wiring path. The shunt can be 200 feet from the battery as long as nothing bypasses the shunt. If ALL DC negative connections are on the load side of the shunt and then the shunt and then a
single connection to the battery that is good. 1 foot, 10 feet, 200 feet it doesn't matter. All
current will flow through the shunt and the
current will be the same along every point of that DC negative connection between the shunt and the battery/
If you have
wiring which bypasses the shunt that is a
charger or devices wired directly to the battery such that their current doesn't flow through the shunt then the shunt can see that flow of energy and over time errors will be introduced into SoC and other measurements.
So keeping it correct is a bit easier if the shunt and primary DC negative busbar are near the battery. You are less likely to make
mistakes and bypass the shunt but as long as you understand nothing should connect to the battery neg terminal except the shunt then where it is physically doesn't matter only where it is logically in the design.