With an assist, Carrick set a new career high in scoring (5-2=7) in his 22nd game of the season, also his best in 10 pro seasons.
St. Louis evened the score in the middle frame. Just minutes after Stolarz shut down Pavel Buchnevich on a breakaway opportunity, the Blues capitalized on an odd-man rush with Nathan Walker feed Oskar Sundqvist for a one-timer.
The Ducks nearly took the lead again in the final minutes of the second period as a St. Louis turnover created a 2-on-0 rush for Trevor Zegras and Isac Lundestrom, but Gillies made a sprawling save to rob Lundestrom at the far post.
St. Louis took the lead with just over 12 minutes to play as Walker snapped a wrist shot over Stolarz's shoulder and just under the bar.
Playing the second half of a back-to-back and the final game of a five-in-seven nights road trip, the Ducks refused to go down quietly, tying the game on a mad netfront scramble. Anaheim gained the line on a pretty passing play, springing Cam Fowler for a point-blank chance in front. Gillies made the initial save but could not corral the rebound, and Terry got to it first, punching the loose puck home to tie the game with just over six minutes to play.