Skip to main content

Statistics

The admin app shows anonymous listening statistics of the records and livestreams played from the server. They answer questions like: What is played most? When do people listen? How long is a record listened to on average? The statistics never show who listened to what.

What is counted​

The mobile app reports every finished play of a streamed record or livestream to Media: the record or livestream, the start, the listened time without pauses, and whether the record was played to the end or skipped. Plays shorter than 10 seconds are ignored. Records of offline playlists are played from the device and are not counted.

Media checks every report: the client must be allowed to play the record, the start must be within the last 24 hours, and the listened time is limited to the duration of the record. A client can send at most 50 plays at once and 60 reports per minute. Valid plays are kept in memory and added to the counters once a minute; when Media stops normally they are written first, after a crash the plays of the last minute are missing. If the database cannot be reached, the plays stay in memory and are written later, up to 100,000 plays; further plays are dropped. Media must run as a single instance, because only one instance may write the counters.

Privacy​

Media stores only counters, never single plays and never a client id:

CounterPer
Plays, plays to the end, skips, listened timeday and record
Starts and listened timeday and livestream
Plays, listened time, different listenershour
Different listenersday

The different listeners of an hour and of a day are counted in memory with keyed hashes of the clients, in the hour and on the day the play started, also if the play is reported later. Each day has its own key, which is never stored; keys and hashes are dropped after 26 hours, only the numbers are written to the database. After a restart of Media, the listeners of the last hours can be counted a bit too low.

The statistics are anonymous: they contain nothing, that belongs to a client. On very small instances, e.g. with two or three clients, a counter can still point to a person. Describe the statistics in your privacy policy, see Privacy policy.

Retention​

To keep the database small, the counters are kept in two steps:

  • Daily counters are kept for Keep daily statistics (90, 180, 365, 400 or 800 days, 400 by default). They allow evaluations per day.
  • On 1 January Media sums up the daily counters of the past year: one row per played record and livestream, the plays per weekday and hour, and per month and weekday. These yearly counters are kept for Keep yearly statistics (1, 2, 3, 5 or 10 years, 5 by default).

Daily counters of a year are only deleted after the year was summed up. Averages, e.g. the average listeners per day over five years, are calculated from the sums and are not stored.

Admins turn the statistics off in Settings → Statistics → Record listening statistics. Media then ignores the reports. The existing counters are kept and still deleted after their retention. The navigation item Statistics stays visible but cannot be selected.

Statistics in the admin app​

The navigation item Statistics shows the statistics of the last 7, 30, 90 or 365 days, of a chosen period, or of the kept years (Years):

  • Key figures with the change to the period before: plays, listening time, average listening time per play, share of plays to the end and of skipped plays, average listeners per day (as whole number), different records and the share of the catalogue played, the share of the plays of the ten most played records, the records played for the first time, listening time of livestreams and the average listening time per livestream start, and the clients online and listening right now, which updates live. Hovering a tile describes its key figure.
  • Course: plays, listening time or average listeners per day, or per year.
  • Listening times: a heatmap of the plays, the listening time or the average listeners in the hours (or days) with plays per weekday and hour (in the time zone of the admin app), per month and weekday, or per year and month. The cells are colored in five steps from little to much relative to the highest value; the legend below shows the steps and the highest value. Hovering a cell shows its period, e.g. Wednesday, 06:00 – 07:00, and its values.
  • Top 10 of records, artists, albums, genres, languages, livestreams and Similar titles, ranked by plays, listening time or Skip rate. The skip rate ranks the entries with the highest share of skipped plays and shows their skips and plays; only entries with at least 5 plays are ranked, livestreams cannot be skipped. Similar titles groups records whose titles only differ in case, track number, text in brackets or suffixes like - live or - remastered 2011, e.g. Yesterday and Yesterday (Live).
  • Rising and falling: the records, artists, albums, genres, languages, livestreams or similar titles whose plays increased or decreased most compared to the period before, with the plays of both periods.
  • Genre course: a small chart per genre of the five most played genres with its share of all plays per week (periods up to 92 days), per month or per year. All charts use the same scale.
  • Newly discovered: the records played for the first time in the period since statistics exist. Deleted records are not counted. Plays on days whose daily counters were already deleted are still known from the yearly sums. As long as there are no statistics before the period, nothing is shown.
  • Never played: the records without a play in the period.

Genres, artists, albums and languages are taken from the current tags of the records. Plays of deleted records are listed as Unknown. Days and years without data are shown as zero.

The download icon exports the period as PDF report with the key figures, the course, the top lists, the rising and falling entries, the newly discovered records and the genre shares, or as CSV (Excel) with all values. The CSV file is separated by semicolons and opens directly in Excel.

Online status​

The client list of the admin app shows the device icon of online devices in the success color and Online or, with a small animated equalizer, Listening instead of the last activity, and filters the online devices with the tag Online. What a device plays is not sent. Identity sends every change at once to the open admin apps over the socket /hub/client/status, so the list and the statistics update without reloading.

While the mobile app is in the foreground or plays something, it sends a heartbeat to Identity every 30 seconds and at once when the playback starts or stops. A device without heartbeat for 90 seconds is offline. Identity keeps the status in memory only, nothing is stored in the database, and checks every 5 seconds for devices without heartbeat. When the app goes to the background without playing, it ends the status at once.

Users hide their status in the mobile app with Settings → Privacy & data protection → Share online status. The setting does not affect the statistics.

Privacy policy​

If the GDPR applies to your instance, e.g. for an association, describe them in the privacy policy, which the mobile app opens in its settings. For example:

Listening statistics. When you play a record or livestream from the server, the app sends the record or livestream, the start, the listened time and whether it was played to the end or skipped. The server only adds these values to anonymous counters per day, hour and year, without your device or account. Daily counters are kept for up to 800 days, yearly counters for up to 5 years.

Online status. While the app is open or plays something, it tells the server every 30 seconds that it is online and whether it is playing something, but not what. The administrators see this status in the list of devices. It is kept only in the memory of the server and expires 90 seconds after the last message. You can turn it off in the settings of the app.

Backup of favorites and settings. The app stores a copy of your favorites and of the settings categories you choose, e.g. theme, language and list view, on the server, so an administrator can move them to your new device. The administrators cannot see the content. The copy is deleted when you turn the backup off in the settings of the app or when your device is removed.

Adapt the retentions to your settings.