1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
How does the system work for calculating radio streaming statistics?
- server logs are used to calculate daily statistics:number of listeners, total and average listening time, total and averagetraffic
- live connections, both up to the minute and 5-minuteaverages, come from live server statistics (the same statistics obtained via"Radio broadcast: radio list" -> My radio -> Edit stream -> Advanced settings: Link to Webmediastats/Web Radio Stats
- a script that runs on connection/disconnection to provide geolocationand unique players and connections per month/week
The IP address provides us with the country of connection, justas with any web-based geolocation services. Disconnection timestamps arealso logged. Geolocation totals are calculated per unique IP address.
Re the number of listeners: the icecast platform does not generatestats directly and only provides live stats without recording this data. Wetherefore have to provide such data ourselves: from the live stats for eachserver, we retrieve the live stats provided by the icecast platform andcount the number of connections for each radio, every minute. Theoretically,this is consistent with data logged to the database, as such data is basedon the same calculation. This live data is the same data accessed via the"Webmediastats" link provided via your platform by going to "Radio broadcast:radio list" > My radio > Edit stream > Advanced settings: Link toWebmediastats/Web Radio Stats - for daily stats, a scriptcalculates the number of connections and connection time from the Apachelogs, which may obviously differ slightly from the other data.
Interms of bandwidth, this is calculated on the basis of the connection timeand bitrate for the given stream.
Theaverage per listener is the total listening time per listener divided by thenumber of listeners.
Stream 1 — 30,000,000secs and 100,000 listeners
Stream 2 — 25,550,000 secs and 135,000listeners
Total 55,550,000 secs and 235,000 listeners. Average:236.38 secs or 3.93 mins per listener
The cumulativeaverage is the total average listening time per stream.
Using thesame figures:
Stream 1 — 300 secs average
Stream 2— 189.26 secs average
Cumulative total: 489.26 secs or 8.16minutes.
Link to this FAQ: