Allow me to spread the word about ListenBrainz. ListenBrainz is a FOSS project that aims to crowdsource listening data from digital music and release it under an open license. Basically it's Last.fm but better. Whatever you use to listen to music, you can probably link it up with ListenBrainz. All ListenBrainz listening data is available for all to use, commercially or not. Why should we give our listening data only to proprietary companies like Spotify and depend on them, when we can share it. If you've kept track of your what music you've listened to up to this point, don't worry, there are several ways to import them into ListenBrainz so you can keep an overview of all your music listening.
I am not working for ListenBrainz in any way, I just really like this project, and I had not seen much on Lemmy about them, so I'm happy to spread the word.
Where ever you listen to your music, in most cases you can hook it up with ListenBrainz, to save your listening data on a FOSS alternative for Last.fm. And to get all sorts of beneficial features, like for instance recommendations that are truly independent, and getting updates on new releases.