473,396 Members | 2,039 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

More accurate web analysis

SC
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
Jul 17 '05 #1
3 1646
>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
Jul 17 '05 #2
In article <In***************@news.uswest.net>,
"SC" <no*****@thank.you> wrote:
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.


You don't really have many options here. Apache, as you found, only
logs IP addresses, so you can't really use that metric. However, if you
force people to authenticate with a username and password, you'll be
able to track that unless they share usernames and passwords. If it's
their unique username and there's a company policy against sharing
passwords (make it a termination offense), you'll have what you need.

Since there's no unique way to track users of shared computers, this may
be your only way for a unique users metric. It's up to management to
decide if this is important to them to track this information as they'll
have to enforce rules for you to get it. If they aren't willing to do
this, you have no other way to track unique hits from shared computers.

--
DeeDee, don't press that button! DeeDee! NO! Dee...

Jul 17 '05 #3
"SC" <no*****@thank.you> wrote in message news:<In***************@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
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

303
by: mike420 | last post by:
In the context of LATEX, some Pythonista asked what the big successes of Lisp were. I think there were at least three *big* successes. a. orbitz.com web site uses Lisp for algorithms, etc. b....
21
by: Rabbit63 | last post by:
Hi: I want to show a set of records in the database table on the clicnt browser. I have two ways to do this (writen in JScript): 1.The first way is: <% var sql = "select firstname from...
116
by: Mike MacSween | last post by:
S**t for brains strikes again! Why did I do that? When I met the clients and at some point they vaguely asked whether eventually would it be possible to have some people who could read the data...
1
by: poison.summer | last post by:
Hello I use the following function to print out the time. But I wonder whether I can be more accurate like print out the microsecond Thanks a lot! void Print_time() { time_t now;
15
by: sparks | last post by:
We get more and more data done in excel and then they want it imported into access. The data is just stupid....values of 1 to 5 we get a lot of 0's ok that alright but 1-jan ? we get colums...
17
by: Christoph Schneegans | last post by:
Hi! I would like to announce XHTML Proxy, a service that allows more accurate testing of XHTML documents. <http://hixie.ch/advocacy/xhtml> states that "Sending XHTML as text/html Considered...
2
by: nhaider | last post by:
Hi All I am trying to insert the field value which is depended on formula into the table. The given field me.field28 and me.nodlyd are working but me.field34 is not working and the givne error...
4
by: Army1987 | last post by:
In the FAQ I read: If you just need to do something with probability 1/N, you could use if(rand() < (RAND_MAX+1u) / N) This has an obvious bias problem which is easily fixed (not perfectly,...
4
by: | last post by:
Using VS.NET I am wondering what methods developers use to deploy ASP.NET website content to a remote server, either using FTP or network file copy. Ideally there would be a one-button or...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.