This is a discussion on More accurate web analysis within the PHP Language forums, part of the PHP Programming Forums category; I'm trying to more accurately track visitors on one of my sites. Most of the visitors are from offices ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I'm trying to more accurately track visitors on one of my sites. Most of
the visitors are from offices where they share an IP address. So, from one IP address, there might be 10 or more individual users. Instead of tracking unique IP addresses, I'd like to be able to track: the number of unique vistors per month the number of first time visitors (first time ever) per month and then page hits per month for each individual page as well as the site total When it comes to tracking users, the Apache logs seem to track only IP addresses so 10 users sharing the same office IP address only seem to register as 1 unique visitor. I was using cookies to track individual computers, but if the user does not accept the cookie, the counts start to go way off. Hopefully someone has some ideas on how to more accurately count individual computers rather than just individual IP addresses. Thanks |
|
|||
|
>I'm trying to more accurately track visitors on one of my sites. Most of
>the visitors are from offices where they share an IP address. So, from one >IP address, there might be 10 or more individual users. Instead of tracking >unique IP addresses, I'd like to be able to track: > >the number of unique vistors per month You can't tell how many people are in front of any given monitor. Many people have more than one computer. Many computers are shared between people. Many computers get a new IP address every time they dial up. >the number of first time visitors (first time ever) per month You can't do this face-to-face with any of (and probably not with combinations of): - Names on a picture ID (names change, many users have "John Smith") - Credit card numbers (users have multiple credit cards, and they can change banks, and people occasionally share credit cards) - Driver's license numbers (people move between states) so how on Earth could you do it over the web? >and then page hits per month for each individual page as well as the site >total > >When it comes to tracking users, the Apache logs seem to track only IP >addresses so 10 users sharing the same office IP address only seem to >computers, but if the user does not accept the cookie, the counts start to >go way off. Use PHP sessions. They CAN work without cookies by passing the session ID in the URL. This isn't ideal, but PHP can do better than cookies alone. Also, session IDs may help out tracking dialup users whose IP addresses change every time they dial up, if they accept cookies. Be aware that many browsers will not keep cookies over a long time. Some can be set to lose cookies when the browser is closed. (ALL cookies are session cookies whether you want it or not.) Some users erase cookies periodically, even if they accept them for one session. You might be able to track the user as he wanders around your site for one, er, session, but not track him between visits weeks apart. Test if a user accepts cookies (set it on the main entry page; test it on a later page. Can you set cookies on a redirect, and expect them to be set at the destination page?). You can come up with multiple stats: pessimistic: all users that don't accept cookies from the same IP are considered as one, and optimistic: all users that don't accept cookies from the same IP are considered different. Reality is between the two. >Hopefully someone has some ideas on how to more accurately count individual >computers rather than just individual IP addresses. Is it a different computer if I change out the CPU? Gordon L. Burditt |
|
|||
|
"SC" <no_spam@thank.you> wrote in message news:<InGad.43$py.77925@news.uswest.net>...
<snip> > When it comes to tracking users, the Apache logs seem to track only IP > addresses so 10 users sharing the same office IP address only seem to > register as 1 unique visitor. In that case, may use custom log format. More info here <http://www.webmasterworld.com/forum88/2489.htm> -- | Just another PHP saint | Email: rrjanbiah-at-Y!com |
![]() |
| Thread Tools | |
| Display Modes | |
|
|