homepage Welcome to WebmasterWorld Guest from 54.234.228.64
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
Forum Library, Charter, Moderators: Receptional & mademetop

Website Analytics - Tracking and Logging Forum

    
Logging screen resolution
Without JS
Sinner_G




msg:900953
 1:36 pm on Jul 14, 2003 (gmt 0)

I always thought access logs did not save that kind of data. Now I know that you can find out a users screen resolution through a bit of JavaScript and then configure your web server to log that, but does any web server (IIS, Apache, whatever) log this without JS?

 

hakre




msg:900954
 2:19 pm on Jul 14, 2003 (gmt 0)

sinner_g,

in my knowledge it is not possible to do so, because the webserver only delivers data to the browser and can only log the query (url, and head data of the http request).

for this, the data of the screen resolution could only be delivered and then logged by the server if the browser (or a script in the browser) will put it into the request.

a workaround could be a session based solution with some other stuff like java or flash but i don't think that's what you meant.

- hakre

Sinner_G




msg:900955
 2:22 pm on Jul 14, 2003 (gmt 0)

Thought so. I was asking mainly because I saw some log analysis tools said they could do it, but I guess it's only those that add some code to your files.

Thanks
Sinner

killroy




msg:900956
 2:52 pm on Jul 14, 2003 (gmt 0)

well you could write it into cookis using JS.

Perhaps those logging software use cookies to track sessions. Then it'd be trivial to ad resolution info via JS.

The usual applies, no JS, no log, NO cookies, no log and so on...

SN

hakre




msg:900957
 3:01 pm on Jul 14, 2003 (gmt 0)

thats exactly what i meant: cookies can be part of the head data in a http request. only if this is supplied, the server can log (like the refferer some browser supply).

antarve




msg:900958
 12:43 am on Aug 17, 2003 (gmt 0)

Please take a look at
[sawmill.net...]
I found it yesterday, so I did not practice it yet.

MaxGrenk




msg:900959
 11:00 am on Aug 18, 2003 (gmt 0)

Antavre!

... bloody brilliant... pulled the script... pasted it into a page... works like a charm!

Thank you for sharing... it is all there, the only trouble is where :)

Thanks,
Max

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved