Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

From what Simple Analytics says they collect on their website, it sounds like the only information missing from GoAccess (or server logs in general) is screen width.


I'm able to get the screen size with goaccess. I placed a bogus <img> in the document. e.g.,

<img src="/images/1px.png?"+screen.width+"x"+screen.height+"x"+screen.colorDepth+" />


That's a nice idea, but it requires wrapping script tags around the "pixel", right?


That's right. e.g.,

<script> document.write("<img src=\"/images/1px.png?" + screen.width + "x" + screen.height + "x" + screen.colorDepth + "\" />"); </script>




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: