An approach to atrial fibrillation (AF) frequency tracking in long-term ambulatory ECG recordings is presented, comprising f-wave extraction, dominant atrial frequency (DAF) tracking, and signal quality assessment. Since poor signal quality is commonly encountered in ambulatory monitoring, a recently proposed index is employed to assess f-wave signal quality in a database containing 38 patients with permanent AF. The index ensures that DAF outliers, typically associated with poor-quality segments, are excluded from further analysis. 40% of all 5-s signal segments were excluded from the database due to poor quality. The exclusion of DAF outliers significantly reduces the standard deviation of the frequency estimates (p≤0.01), allowing more reliable evaluation of the difference between day- and night-time DAF. The results show that signal quality assessment plays a central role in DAF tracking, and therefore should be employed in ambulatory monitoring.