HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.

Need free script to log screen resolution of visitors

3stripe3stripe ✭✭
edited June 2006 in Vanilla 1.0 Help
I would normally use Slimstat, but it doesn't monitor your erm, monitor sizes, is there another free stats program that can do this? I would use Google Analytics but it's not accepting new accounts right now. It doesn't need to look good, I just want to harvest some stats over the next week before deciding what screensize I should build for!

Comments

  • 3stripe3stripe ✭✭
    edited May 2006
    Yeah I looked at that actually. Don't think the host has mysql at the moment though...
  • AWStats claims to be able to do it. "Screen size (need to add some HTML tags in index page)."
  • lechlech Chicagoland
    edited May 2006
    <script language="JavaScript" type="text/JavaScript"> info = "res="+screen.width+"x"+screen.height; // call an image for this resolution size, and/or log it to your script... // img = '<img name="img" src="script.php?'+info+'">'; img = info+'.'; {document.write(img);} </script>

    :]
  • I'm assuming you're meant to switch the comment around when you use it for real? Also, why is document.write in its own block?
  • Just write you a little PHP script that records all the user info to a text file?
  • *starts thinking about a VanillaStats add-on
  • Wouldn't this be do able by using something like the integration of mint or google analytics?
  • lechlech Chicagoland
    Bergamot, it just works and I've had that in my JS code bin for years now. That current example will just spit out the resolution of the current screen into the browser. Do with it as you please :)
  • Cheers lech my friend, nice and simple looking, should do just what the doctor ordered. I'm guessing 10%+ of visitors will still be 800x600...
This discussion has been closed.