Foden got the scoreboard ticking over with just two minutes on the clock, scoring the first of the game's six tries. But in what was an end-to-end clash in which the lead changed hands four times it was the final 60 seconds that will dominate the conversation over the weekend.
After having gone six points behind, Saints scored a sensational try in the 79th minute, George North starting a counter attack close to his own line with Jamie Elliott finishing the move 95 metres upfield.
Stephen Myler's conversion put Saints 24-23 ahead with 30 seconds to play. But a couple of controversial decisions from referee Martin Fox gave Billy Twelvetrees the match-winning penalty and the visitors' unbeaten run was over.
That said, aside from the tries that bookended the second half - Samu Manoa going over five minutes after the re-start - Saints barely got out of their territory as they regularly fell foul of Mr Fox.
And Foden says that for all the drama at the end there was plenty to work on following what had gone before.
"You have to try and take the positives out of it," the full back told SaintsTV. "We knew we were going to be up against it coming up a Gloucester team that was desperate to win.
"We know how tough it is to come here and win. Gloucester were desperate to win and in the second half we played mainly in our own half. It was won on a coin toss at the end, which didn't go our way.
"We threw the ball around and created a few chances at the end. That shows we're a dangerous side, but there's plenty to look at and we'll move on.
"But we didn't play our best rugby, we know that, and there's plenty to work on before we go full steam ahead next Friday against Sale Sharks."
After starting the season with a bonus point win over Exeter, Saints have yielded five points from their two road games against two of the Aviva Premiership's more fancied sides.
But on Friday night they return home to host in-form Sale Sharks at Franklin's Gardens, and Foden says that a big home support will give all of the players a massive boost.
"We started with a good win at home against Exeter, and all the new boys were buzzing to get out there at Franklin's Gardens," he added. "So it'll be nice to have the crowd's support behind us on Friday.
"It's great to have the fans travelling away, but there's nothing like playing at Franklin's Gardens with 13 thousand people behind us."
Tickets are on sale now for Saints v Sharks, which kicks off at 7:45pm this Friday night under the Franklin's Gardens lights. It's a crunch game, so your support will count - book your place now by CLICKING HERE and following the straightforward instructions!