Dundee made three changes to their team. Jordan McGhee, Lyall Cameron and Zak Rudden started in the places of Aaron Donnelly, Malachi Boateng, who were on the bench, and the injured Scott Tiffoney.
In a pretty poor half Dundee struggled to create chances on goal, too many errors and slack passes did not help. Lamie was unlucky with a header which just went wide. Livingston looked more likely to score and maybe should have scored once.
Second half and Malachi Boateng was sent on. He took the place of Mo Sylla, who was hardly one of the most wasteful culprits.
But it seemed to work as Dundee looked more dangerous on the attack. They had a couple of headers which went wide. But soon after Dundee attacked again and Zak Rudden was taken out with a tackle which resulted with Livingston going down to 10 men.
But the Referee was called to view Var and he changed his mind and it was just a yellow card for Sean Kelly. Four minutes later it was a free kick 30 yards from goal.
It was well worth the wait as Luke McCowan took the free kick and put the ball over the wall and into the top corner to score a wonderful goal.
After 70 minutes Dundee sent on Zach Robinson and Ryan Howley for Amadou Bakayoko and Lyall Cameron.
Dundee had a few more headers which just went wide, Livingston had the ball for spells but the Dundee defence done well and theu had to at times.
Zach Robinson was unlucky with a effort as we moved into the final minuts, Dundee scambled the ball away as injury time was ticking away. Then Trevor Carson made a great save from a deflected shot which he got a hand on the ball. It looked like it was going in.
Finally the final whistle blew and it was three more vital points for Dundee, and another clean sheet.
Dundee: Carson, Portales, Shaughnessy (c), Lamie, McGhee, Cameron (Howley 70), Sylla (Boateng at half time), McCowan, Beck (Donnelly 90), Bakayoko (Robinson 70), Rudden. Unused Subs: Legzdins (gk), Kerr, Pineda, Reilly, Robertson.
Referee: Alan Muir
Att: 4,769