Here's a pic looking up up under the rear of the tank on the left side. I gather the connector is zip tied to the existing loom (circled, the plug socket hole just below). So if you can reach under, no need to remove the tank unless you want to run some wires.
2018 BMW G310 GS (Goose) - Akrapovic Carbon exhaust, Barkbusters, RZM Adjustable levers, Rally Raid Touring screen, Rally Raid bar risers, Hepco Becker engine guards and Orbit C-Bow side cases, SW-Motech ION Tank Bag, SW-Motech ION pegs, Shad rack mount plate and top box.
2017 BMW G310 R (Hooli) - SW-Motech Evo adjustable foot pegs, Dominator S/S GP exhaust
2018 BMW R1200GS Tour