Then in that case you will have to go open source like a Plex or Kodi box. Raspberry pis work nicely for this.
Even PLEX includes Google Analytics now I believe.
Check out Vero 4k+, it runs on OSMC (open source media center) with Kodi installed. I run it on my 4k Philips TV and it works perfectly for any kind of media content...