Is bad gas causing my car's engine to miss and lose power? on 2002 Volkswagen Beetle

I filled up with gas yesterday, and today my 2002 New Beetle Turbo Z started hesitating and the check engine light started flashing then stayed on. I drove it home but had to put the automatic transmission in neutral at each stop light. Could it be bad gas, and if so, how can it be fixed?

1 answer
Is there a Check Engine Light on? It is more likely an ignition coil failure but proper basic diagnostic tests need to be done before jumping to conclusions.