An electrocardiogram (EKG) is a diagnostic test that measures the electrical activity of the heart. It's a simple and quick procedure that can help diagnose and monitor many heart conditions.