You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.

Help with cookies .....

They have: 42 posts

Joined: Jun 2009

Hey guys i want to know how can i use cookies to get visitor information
example their screen size , browser etc.
i want to put a piece of code so i can get this information and if its possible to send this information directly to a email .....

Thanks

He has: 581 posts

Joined: May 2007

Nowt to do wi' cookies, mate. Check out Google Analytics - that may be what you are looking for.

Greg K's picture

He has: 1,905 posts

Joined: Nov 2003

For browser information, you can get that from the web server, via something like PHP.

For other information such as screen size, you will need javascript for that. Now javascript can also get you the browser info, but I prefer to use server side for that in case they don't have javascript turned off.

If you are wanting to get it for statistical info, try using a counter that provides this. One I prefer is 123stat.com. You can get a free trial account, and they will give you a sniplet of javascript to put on your pages. If you look carefully, you can see how they get the info.

-Greg

[This space intentionally left blank]

Cool Geek Supplies: www.ThinkGeek.com