Does sound like a dodgy earth,, check your straps, the one of the battery to chassis, there sometimes another strap , gearbox to chassis, check them both at either ends,,
Is your engine light on?
You need to get it on vagcom, that will point you in the Wright direction