It was just a bonus that the drive cleared the left-field wall.
Gonzalez hit a three-run homer in the 12th inning and the Atlanta Braves beat the St. Louis Cardinals 6-3 on Saturday to move into a tie for the NL East lead.
With runners on first and third and the outfielders playing shallow to guard against a sacrifice fly, Gonzalez hit the winning shot off Mitchell Boggs.
"I tried to hit a fly ball deep," Gonzalez said. "I got it deep enough."
The Braves improved their major league-best home record to 51-20 and grabbed a share of the division lead with the Philadelphia Phillies, who lost to the New York Mets 4-3.
Albert Pujols had three RBI for St. Louis, giving him 102 for the year and 10 consecutive seasons with more than 100 RBI.
"I play aggressive," Pujols said when asked about the milestone. "Nobody can take that away from me. ... I try to do everything I can to help my team."
Gonzalez was 0 for 5 before connecting for his fifth homer since he joined Atlanta in a July trade with Toronto. He struck out with the bases loaded to end the first inning and struck out again in the seventh with two runners on base.
Gonzalez made the most of his one hit.
"He crushed that ball," Braves manager Bobby Cox said. "He had a few chances today and he didn't get it done, but boy he did in that inning. He's a great player."
Boggs said he "didn't back off" when facing Gonzalez but left the pitch too high.
Catcher Brian McCann, who called the win "the funnest game of the year," said the Braves were not watching the Phillies' score.
"We're not looking at that game," he said. "We just have to keep playing."
Boggs (2-3) walked Rick Ankiel with one out in the 12th and pinch-hitter Eric Hinske followed with a single up the middle.
Cardinals manager Tony La Russa visited the mound but left Boggs in to face Gonzalez, who now has 22 homers on the year.
Rookie Craig Kimbrel (3-0) struck out two in a perfect 12th to get the win.