There is provided herein a system and a method for guiding insertion of a gastroenteral tube including: an electromagnetic field generator configured to generate an electromagnetic field covering a treatment area; wherein said electromagnetic field generator is external to the patient; a registration sensor configured to mark anatomic locations on the patient's torso; a gastroenteral tube comprising a tip sensor configured to sense its position and/or orientation relative to the electromagnetic field generator; and a processing circuitry configured to: calculate an orientation of the subject relative to the field generator based on the anatomic locations marked by the registration sensor, load a predefined anatomic map representing a torso; aligning the map based on the anatomic locations marked by the registration sensor, and showing on the map a path of the gastroenteral tube insertion; wherein the path is generated according to changes in the strength of the electromagnetic field sensed by the tip sensor's during the insertion of the gastroenteral tube, independent of the subject's movement and independent of deviations in the position and/or orientation of said field generator.