The insertion of a G tube, known as a gastrostomy, can be performed using different techniques. The most common method is percutaneous endoscopic gastrostomy (PEG), where an endoscope is used to place the tube through the abdominal wall and into the stomach. This procedure is usually done under local anesthesia with mild sedation and typically takes about 30 to 45 minutes.