[thelist] What screen size are my visitors using

john at johnallsopp.co.uk john at johnallsopp.co.uk
Thu May 27 09:57:14 CDT 2004


> Use JavaScript to document.write (assuming you are using HTML 4.01

That would just write the window size to the browser wouldn't it? How
would I get to the accumulated data? I want to look at a record of a
week's traffic and see what window size people are using most often, and
the ranges.

> or add using DOM
> an <img> with the data in the query string for the URI you put in the
> src attribute.

Let me get that right. Somewhere before the page loads, a script runs
adding a new image like src="http://www.mydomain.com/pic.jpg?x=100&y=200"
(I can't remember how the last bit goes, right now, but that kinda thing).

How do I collect that in PHP .. or are you thinking of just looking
through the logs?

Can I do src="http://www.mydomain.com/myprog.php?x=100&y=200" .. is that
what you're thinking?

Cheers
J


More information about the thelist mailing list