Hg, a global software investor, has agreed to acquire a controlling interest in Trackunit, a leader in software-led telematics for construction, from Goldman Sachs and GRO Capital.