It reached the top of the charts in March 2019 , becoming Gaga 's fifth number-one single and Cooper 's first .
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 .