Alan Bennett's first goal for Cheltenham helped the Robins overcome Dagenham & Redbridge.
Gavin Tomlin hit the post for the away side before Bennett put the hosts ahead with a diving header into the bottom corner from Luke Garbutt's free-kick.
Jon Nurse levelled with a close-range finish, but James Spencer fired home the winner from Marlon Pack's pass.
Cheltenham could have extended their lead but Chris Lewington produced fine saves to deny Spencer and Josh Low.
VIEWS FROM THE DRESSING ROOM
Cheltenham Town assistant manager Neil Howarth told BBC Gloucestershire:
"Six points, and a great result in the cup at Wycombe, it's the end of a very good week.
"It's a very difficult team to pick, with the treatment room empty, players performing well, and everyone wanting to play.
"You do open yourself up to criticism if you only play one up front at home, but with the midfield three we played as one of the best in the league we can control that area well and create more chances than we would with two forwards on."