mickmik 0 Posted January 8, 2018 Share Posted January 8, 2018 Hi everyone, Someone can explain how or where I put the code ? THX Link to comment Share on other sites More sharing options...
Luke 37132 Posted January 8, 2018 Share Posted January 8, 2018 Hi, we don't have this feature right now, sorry. Link to comment Share on other sites More sharing options...
mickmik 0 Posted January 8, 2018 Author Share Posted January 8, 2018 OK -clear- THX Link to comment Share on other sites More sharing options...
Jdiesel 1114 Posted January 8, 2018 Share Posted January 8, 2018 Are you able to use Cloudflare and it's Google analytics app? I've never tried myself so I can't confirm. https://www.cloudflare.com/apps/google-analytics Link to comment Share on other sites More sharing options...
pir8radio 1292 Posted January 9, 2018 Share Posted January 9, 2018 Hi everyone, Someone can explain how or where I put the code ? THX Depending on how geeky you are you can run an nginx reverse proxy and inject any code you want anywhere. Link to comment Share on other sites More sharing options...
mickmik 0 Posted January 9, 2018 Author Share Posted January 9, 2018 Hi, I'm not really geeky but really obstinate ! So what ? Link to comment Share on other sites More sharing options...
Swynol 375 Posted January 9, 2018 Share Posted January 9, 2018 are you wanting to use google analytics to see who is accessing your emby server? there are probably easier ways using a firewall with syslog. otherwise NGINX reverse proxy but my knowledge of NGINX is limited. Link to comment Share on other sites More sharing options...
Guest plexman Posted January 9, 2018 Share Posted January 9, 2018 (edited) https://gist.github.com/jirutka/5279057 Didn't try it tho, just googled it. Edited January 9, 2018 by plexman Link to comment Share on other sites More sharing options...
dcrdev 251 Posted January 9, 2018 Share Posted January 9, 2018 https://gist.github.com/jirutka/5279057 Didn't try it tho, just googled it. I do similar things with another self hosted tracking platform I use, only with Apache and mod_substitute. I don't know much about nginx, but that code snippet appears to place the tracking code in the head tag - that's not good, you want to place it before the closing body tag. You should always load these tracking scripts at the very last minute, otherwise they are going to have a detrimental affect on loading times. Link to comment Share on other sites More sharing options...
mickmik 0 Posted January 10, 2018 Author Share Posted January 10, 2018 are you wanting to use google analytics to see who is accessing your emby server? there are probably easier ways using a firewall with syslog. otherwise NGINX reverse proxy but my knowledge of NGINX is limited. Yes thats the point ! But Google analytics is ... more sexy Link to comment Share on other sites More sharing options...
pir8radio 1292 Posted January 11, 2018 Share Posted January 11, 2018 (edited) Yes thats the point ! But Google analytics is ... more sexy I don't know..... what stats are you looking to get? I bet I have some that google doesn't... I can get just about any info you want down the the emby user level, for just about any stat... Here are a few. I can pretty much trace the path every visitor to my emby server took... If I wanted.... This is all using nginx and a log analyzer... You can taylor nginx to grab emby headers to get all kinds of info. Plus the google analytics code is java script based which means it will not load in the various apps, it will only work for web browser users. But a reverse proxy will catch all requests, no matter what app is used. Monthly Roku (or any emby client) version used: The screen resolutions of my visitors: Reasons Emby had to transcode a file: Edited January 11, 2018 by pir8radio 2 Link to comment Share on other sites More sharing options...
Jdiesel 1114 Posted January 11, 2018 Share Posted January 11, 2018 I don't know..... what stats are you looking to get? I bet I have some that google doesn't... I can get just about any info you want down the the emby user level, for just about any stat... Here are a few. I can pretty much trace the path every visitor to my emby server took... If I wanted.... This is all using nginx and a log analyzer... You can taylor nginx to grab emby headers to get all kinds of info. Monthly Roku (or any emby client) version used: The screen resolutions of my visitors: Reasons Emby had to transcode a file: This is amazing. You just sold me on setting up my reverse proxy again. 1 Link to comment Share on other sites More sharing options...
mickmik 0 Posted January 11, 2018 Author Share Posted January 11, 2018 Waaaa, this is with Nginx ? so cool I'll try Link to comment Share on other sites More sharing options...
Jdiesel 1114 Posted March 19, 2018 Share Posted March 19, 2018 I don't know..... what stats are you looking to get? I bet I have some that google doesn't... I can get just about any info you want down the the emby user level, for just about any stat... Here are a few. I can pretty much trace the path every visitor to my emby server took... If I wanted.... This is all using nginx and a log analyzer... You can taylor nginx to grab emby headers to get all kinds of info. Plus the google analytics code is java script based which means it will not load in the various apps, it will only work for web browser users. But a reverse proxy will catch all requests, no matter what app is used. Monthly Roku (or any emby client) version used: The screen resolutions of my visitors: Reasons Emby had to transcode a file: Which log analyzer are you using? I'm going to give this a go Link to comment Share on other sites More sharing options...
pir8radio 1292 Posted March 20, 2018 Share Posted March 20, 2018 Which log analyzer are you using? I'm going to give this a go I'm using weblog expert: https://www.weblogexpert.com/info/IISLogs.htm Link to comment Share on other sites More sharing options...
Jdiesel 1114 Posted March 20, 2018 Share Posted March 20, 2018 I'm using weblog expert: https://www.weblogexpert.com/info/IISLogs.htm Thanks. I started playing around with Open Web Analytics Link to comment Share on other sites More sharing options...
fathibn 0 Posted December 12, 2018 Share Posted December 12, 2018 I don't know..... what stats are you looking to get? I bet I have some that google doesn't... I can get just about any info you want down the the emby user level, for just about any stat... Here are a few. I can pretty much trace the path every visitor to my emby server took... If I wanted.... This is all using nginx and a log analyzer... You can taylor nginx to grab emby headers to get all kinds of info. Plus the google analytics code is java script based which means it will not load in the various apps, it will only work for web browser users. But a reverse proxy will catch all requests, no matter what app is used. Hi, Can you share some code with us. weblog seems to be IIS dedicated, so how did get these details out of the Emby server log ? Link to comment Share on other sites More sharing options...
pir8radio 1292 Posted December 13, 2018 Share Posted December 13, 2018 Hi, Can you share some code with us. weblog seems to be IIS dedicated, so how did get these details out of the Emby server log ? it works with nginx (or apache) logs as well... I use nginx as a reverse proxy in front of my emby server, and use those nginx logs for the stats. 1 Link to comment Share on other sites More sharing options...
vaise 307 Posted April 4, 2020 Share Posted April 4, 2020 I'm using weblog expert: https://www.weblogexpert.com/info/IISLogs.htm Hi @@pir8radio. That system costs a bit of money. Looks great though. I bet some of the stuff you got in there needed a bit of coding. I quickly got up goaccess in a docker pointed it to my nginx emby.log (access.log) and I got lots of cool stuff - but more 'generic' rather than emby specific like yours. The users would be very handy. I wacked it on a subdomain password protected on cloudflare too for access from everywhere. I wonder if goaccess can be modded to get more stuff like that. V. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now