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

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

  • Options
    LoOkOuTLoOkOuT
    edited May 2006
    Try this: http://broome.us/archives/2006/04/18/screensize-for-slimstat/
  • Options
    3stripe3stripe ✭✭
    edited May 2006
    Yeah I looked at that actually. Don't think the host has mysql at the moment though...
  • Options
    AWStats claims to be able to do it. "Screen size (need to add some HTML tags in index page)."
  • Options
    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>

    :]
  • Options
    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?
  • Options
    Just write you a little PHP script that records all the user info to a text file?
  • Options
    *starts thinking about a VanillaStats add-on
  • Options
    Wouldn't this be do able by using something like the integration of mint or google analytics?
  • Options
    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 :)
  • Options
    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.