zlacker

[parent] [thread] 3 comments
1. Valent+(OP)[view] [source] 2018-09-19 15:25:12
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.
replies(1): >>joshyi+z52
2. joshyi+z52[view] [source] 2018-09-20 14:55:49
>>Valent+(OP)
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+" />

replies(1): >>Valent+YQ3
◧◩
3. Valent+YQ3[view] [source] [discussion] 2018-09-21 13:50:09
>>joshyi+z52
That's a nice idea, but it requires wrapping script tags around the "pixel", right?
replies(1): >>joshyi+Pu5
◧◩◪
4. joshyi+Pu5[view] [source] [discussion] 2018-09-22 13:57:14
>>Valent+YQ3
That's right. e.g.,

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

[go to top]