Spotify AB plans to offer artists better data about their listeners.

The world’s biggest subscription-music service, with 20 million paying subscribers and about 55 million free users, is rolling out a test version of what it calls Spotify Fan Insights, initially for a limited group of artists.

A custom “dashboard” will show demographic and...