He played college football for the Arizona State Sun Devils, finishing as the NCAA Division I leader in field goals made at the time prior to being selected by the Cleveland Browns in the seventh round of the 2017 NFL draft.
During his freshman year in 2013, Gonzalez played every game, connecting on 25 of 30 (83.3%) field goals and converting all 63 extra point attempts.
[14] During his junior season in 2015, Gonzalez scored on 26 of 34 (76.5) field goals and converted all 52 extra point attempts.
[3] On December 12, he was named a unanimous All-American, becoming the third in school history and the first since Terrell Suggs earned the honor in 2002.
[29][30][31] Gonzalez competed with incumbent kicker Cody Parkey for the starting job during Cleveland's 2017 training camp.
[32] On September 10, 2017, in the season-opening 21–18 loss to the Pittsburgh Steelers, Gonzalez recorded his first career extra point and field goal, a 24-yard attempt.
[33] On October 22, 2017, in a Week 7 12–9 loss to the Tennessee Titans, he scored all nine points on three field goals, including a career-long of 54 yards.
[35] In Week 1, in the 21–21 tie against the Steelers, Gonzalez had a game-winning 43-yard attempt blocked in overtime that would have given the Browns the win.
[36] On September 16, in a Week 2 21–18 loss to the New Orleans Saints, Gonzalez missed two field goals and two extra points, including a PAT that would have given the Browns a 19–18 lead.
[50] In Week 15's matchup against the Buffalo Bills, Gonzalez suffered a quad injury in warm-ups, and had to be placed on injured reserve after the game, ending his season.
[53] On March 24, 2023, the Panthers traded Gonzalez to the San Francisco 49ers in exchange for a conditional swap of late-round picks in the 2025 NFL Draft.
[57] He was elevated from the practice squad three times before signing to the active roster after Austin Seibert had been placed on injured reserve.
[58] In six regular season games in 2024 with the Commanders, Gonzalez made 5 of 7 field goals and 19 of 19 extra points.
[59] In his first-ever playoff appearance, on January 12, 2025, against the Tampa Bay Buccaneers, with three seconds remaining in the game, Gonzalez kicked a dramatic, game-winning 37-yard field goal that bounced off the upright before going in.