Help with cookies .....
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
webwiz posted this at 01:20 — 11th June 2009.
He has: 629 posts
Joined: May 2007
Nowt to do wi' cookies, mate. Check out Google Analytics - that may be what you are looking for.
Greg K posted this at 01:14 — 12th June 2009.
He has: 2,145 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
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.