Dundee made one change as Dara Costello replaced Zach Robinson who dropped to the bench. Malachi Boateng returned to the match day squad as did Curtis Main with both recovering from knocks. John McCracken also made it to the bench.
Simon Murray had a shot blocked and cleared by the Dundee defence, who had a couple of efforts as well. The first real chance fell to Dundee on the 25th minute with a trademark Owen Beck cross was met by Jordan McGhee at the back post but his header was tipped over the bar by the County keeper.
The game was end to end as it was good to watch, it would depend who scored first. McGhee then had a effort which went over the bar.
Right on the stroke of half time, Dundee took the lead when the ball was played upfield and collected by Luke McCowan who slipped the ball into Scott Tiffoney who slotted the ball under the onrushing County goalkeeper.
Dundee started the second half slowly and County looked the better side, but Dundee went close when McCowan put a shot just wide of the post.
Then Dundee got the vital second goal when Scott Tiffoney smashed the ball home with a decent strike.
Dundee then put on Ricki Lamie for Dara Costelloe to give the defender to keep the defence airtight and it would get his match fitness up.
Then Owen Beck was replaced after he had taken a knock Owen Dodgson was his replacement.Dundee looked comfy and had a few chances before the end,
Bakayoko who had minutes before picked up a booking, was replaced by Zach Robinson along with Curtis Main coming on for goal hero Tiffoney.
A vital win foe the dark blues and puts them in a good position in the top six. Big game this Saturday at Easter Road.
Dundee: Carson, McGhee, Shaughnessy (c), Donnelly, Beck (Dodgson 73), Cameron,Sylla, McCowan, Costelloe (Lamie 68), Bakayoko (Robinson 81), Tiffoney (Main 81). Unused Subs: McCracken (gk), Astley, Mulligan, Robertson, Boateng
Referee: Calum Scott
Att: 5,846