Cody McDonald netted from close range after Cobblers goalkeeper Lee Nicholls misjudged a Matt Fish long ball to put the hosts ahead in the fourth minute and Myles Weston smashed in off the post to secure the win and Allen felt the players were deserving of a first home success since November 17.
"You saw from Myles' celebration and the celebration of the whole team and in the dugout what it meant and you could sense the relief from all our supporters that turned out," he said.
"The players deserve all the credit for the club to go top of the league and 10 points clear of fourth place is some going.
"The run that we have had here does start to get on everyone's back wherever you go. People do mention it but I have had to try and deflect and dilute that feeling. We have had two fantastic wins away at Southend and Bristol Rovers so when people talked about a crisis I didn't buy into that.
"We were due a bit of luck. It is sometimes difficult to play in front of your home fans when you have been top for four and a half months. Everybody raises their game but we are delighted to have won."
Despite Nicholls' goalkeeping error Northampton manager Aidy Boothroyd refused to point the finger at his stopper, instead crediting his side's display.
"It swirled around all night and we paid the price with a mistake from the very reliable Lee," he said. "I think he is probably the best goalkeeper in the league along with Matt Duke.
"He has been outstanding for us and I am sure he will continue to be. Gillingham are top of the league but I honestly think we were the better side for the majority of the game.
"Myles Weston was in Ben Tozer's pocket for most of the game but he scores and the scoreline looks much more comfortable than it was. Gillingham are top of the league for a reason because they get results but if we perform like we did in the first half then we won't be too far away."
- Sports & Recreation
- Myles Weston