`` On the Digital charts the track remained in the pole position for 24 non-consecutive weeks , surpassing Ed Sheeran 's `` '' Perfect '' '' ( 2017 ) as the longest-running song atop the chart , at the time . ''
Shallow remained on top of the digital charts for 24 non-consecutive weeks , beating Ed Sheeran 's Perfect and becoming the longest-running song atop the charts .