iroks / Icecast2GoogleAnalytics

Icecast statistics in Google Analytics
20 stars 7 forks source link

Icecast2GoogleAnalytics

v1

https://coherent-receiver.com/google-analytics-and-icecast - for more details
https://github.com/ned-kelly/docker-icecast-google-analytics - dockerised version
https://coherent-receiver.com/multi-channel-receivers-for-radio-station-monitoring - hardware platform for broadcasting monitoring, transcoding or hybrid radio

Please don't hesitate to contact us if you have additional requirements, wishes or ideas

v2

Dependencies

Grafana: docker run -d -p 3000:3000 grafana/grafana
InfluxDB: docker run -p 8086:8086 -v $PWD/influxdb:/var/lib/influxdb:rw influxdb

https://blog.maxmind.com/2019/12/18/significant-changes-to-accessing-and-using-geolite2-databases/
https://db-ip.com/db/download/ip-to-city-lite

Proxy properties configuration

Admin route is configured from the configuration file (transparent Icecast Server access possible using Spring Security)
zuul.routes.admin.path=/icecast/admin/
zuul.routes.streaming.path=/icecast/streaming/

zuul.routes.streaming.url=http://A.B.C.D:PORT/

Tracking Pixel

Tracking Pixel is configured under .../pixel/.

HLS Distribution


For HLS distribution HLS: ffmpeg -i http:/... -c:a aac -b:a 128k -ac 2 -f hls -hls_time 4 -hls_playlist_type event stream.m3u8cd /var/