Typically when a vehicle shakes and idles rough it can trigger the check engine light. Is your check engine light illuminated?
If so you need to get it scanned to retrieve the codes. Which can help diagnose the issue.
Repair Safety Notice: This information is for general instructional purposes only. Vehicle repair can be dangerous. Verify all information, follow manufacturer service procedures, use proper tools and safety equipment, and consult a qualified repair shop when needed.