I have been using last.fm[1] for this for years (just checked, from 2008!). They now do a rolling weekly and annual interactive chart which is fun to look at, here's mine for 2023[2].
They have a Spotify integration and I use PanoScrobbler on mobile.
[1]: https://www.last.fm/