His hit scored the tying and winning runs in the Dodgers' 5-4 victory over the Arizona Diamondbacks on Sunday to salvage a split of the series in which all four games were decided by two runs or fewer. Los Angeles remained 4½ games behind NL West-leading San Francisco and a half-game behind St. Louis for the second NL wild card.
Gonzalez had struggled since the Aug. 25 deal that brought him, Beckett, Carl Crawford, Nick Punto to Los Angeles from Boston. He was 6 for 33 in eight games with his new team, then struck out twice and grounded out in his first three at-bats Sunday.
With the Dodgers down to their final two outs, Gonzalez lined an 0-2 pitch into the right field corner off J.J. Putz (1-5).
"I got ahead of Adrian right there and tried to elevate to get him to chase it, but I just didn't get it up enough," said Putz, who gave up a single to Mark Ellis with one out and a walk to Shane Victorino. "The walk is the one that hurts. I was rushing to the plate, trying to be quick and try to keep Ellis from trying to swipe the bag."
Facing a 3-1 count, Victorino was ready to pounce and his aggression carried over to the basepaths.
"I was going to go until Tim (Wallach) told me to stop," said Victorino, who came tearing around from first base to score. "He waved me and I said, 'Here we go.'"
Matt Kemp celebrated the Dodgers' ninth walk-off win of the season by running up to Gonzalez and soaking him with a container of water during a postgame interview.
"These are fun moments," Gonzalez said. "They don't come too often so you got to enjoy them."
"We haven't played too well at home and it's something we need to do a better job of," Ellis said, noting a walk-off win could be a catalyst. "Sometimes that can get a team rolling. To build off it, you just got to have good at-bats."
Despite blowing an early one-run lead, the Dodgers recovered after winning 2-1 behind Beckett on Saturday night.
"It's a matter of time before this offense gets clicking on all cylinders. We're capable of scoring 10, 15 runs," said Victorino, who joined the Dodgers from Philadelphia a month ago. "Sometimes it takes a certain time to get people going in the same direction."
Kemp hit his 18th homer leading off the second to put the Dodgers up 1-0.
Montero's two-run homer with two outs in the fourth inning gave Arizona a 3-1 lead after McDonald's homer leading off the third had tied the score 1-1.
Arizona extended its lead to 4-2 in the seventh when McDonald reached on an infield single to pitcher Shawn Tolleson, scoring Paul Goldschmidt, who singled, took second on Montero's single, and was sacrificed to third.
Dodgers starter Chris Capuano gave up three runs and four hits in five innings, struck out four and walked none. He made 78 pitches, his second-fewest of the season.
Arizona rookie starter Wade Miley allowed three runs and nine hits in 6 2/3 innings, struck out three and walked two.
Miley hasn't allowed more than two walks in 24 consecutive starts, extending the longest active streak in the majors this season. ... RHP Chad Billingsley is considering having another platelet-rich plasma injection in his injured right elbow. Manager Don Mattingly said Billingsley, who had the first one on Friday, is feeling "a little bit optimistic," but Mattingly said the club won't allow him to start throwing until he's pain-free. ... The Dodgers selected the contract of OF Bobby Abreu from Triple-A Albuquerque and recalled RHP Chris Withrow from Double-A Chattanooga before placing him on the 60-day DL. Abreu returned after hitting .353 in five games with the Isotopes since being designated for assignment on Aug. 1. He struck out as a pinch hitter in the ninth.
Yoan Moncada initially ruled safe after missing home plate; call triggers two challenge requests
Moncada was eventually ruled out after a lengthy review, but not before both the Brewers and White Sox asked for a challenge.
Hernández hits 2 of Toronto's 5 homers in 10-3 win over Mets
— All-Star Teoscar Hernández hit two of Toronto's five home runs and the Blue Jays beat New York Mets 10-3 Saturday night to stop a three-game losing streak.
Blue Jays blast 5 homers in win vs. Mets
Teoscar Hernandez goes deep twice and George Springer, Marcus Semien and Bo Bichette add homers of their own to lift the Blue Jays over the Mets.
Perez, Santana homer in Royals' 9-8 victory over Tigers
— Salvador Perez and Carlos Santana hit three-run homers in the Kansas City Royals' 9-8 victory over the Detroit Tigers on Saturday night.
Astros lose combo no-hit try in 8th; Rangers' skid hits 11
— Framber Valdez used so many pitches as he struggled to find the zone early on Saturday night that he was forced to leave the game after the sixth inning without giving up a hit.
Springer goes full extension to make incredible diving catch
George Springer robs Brandon Nimmo with a diving grab on the warning track in left-center field.