mickmik 0 Posted January 8, 2018 Posted January 8, 2018 Hi everyone, Someone can explain how or where I put the code ? THX
Luke 40144 Posted January 8, 2018 Posted January 8, 2018 Hi, we don't have this feature right now, sorry.
Jdiesel 1333 Posted January 8, 2018 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
pir8radio 1305 Posted January 9, 2018 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.
mickmik 0 Posted January 9, 2018 Author Posted January 9, 2018 Hi, I'm not really geeky but really obstinate ! So what ?
Swynol 375 Posted January 9, 2018 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.
Guest plexman Posted January 9, 2018 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
dcrdev 254 Posted January 9, 2018 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.
mickmik 0 Posted January 10, 2018 Author 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
pir8radio 1305 Posted January 11, 2018 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
Jdiesel 1333 Posted January 11, 2018 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
mickmik 0 Posted January 11, 2018 Author Posted January 11, 2018 Waaaa, this is with Nginx ? so cool I'll try
Jdiesel 1333 Posted March 19, 2018 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
pir8radio 1305 Posted March 20, 2018 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
Jdiesel 1333 Posted March 20, 2018 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
fathibn 0 Posted December 12, 2018 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 ?
pir8radio 1305 Posted December 13, 2018 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
vaise 331 Posted April 4, 2020 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.
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