473,396 Members | 1,917 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.

how do you track visitors? php cookies?


hi all!

I am starting to study the best way to track site visitors.
Logfiles stats which come with every web hosting, have little metrics
to be analyzed and also problems with cached pages which are not seen.
I thought to use php and cookies to track returning visitors, however I
see that all pro solutions use javascript to set cookies.
Now since I prefer to avoid js as much as I can cause they can be
blocked by browser settings, is it the same to use php to set cookies ?

I think that page tagging solutions also rely on a remote script to
read cookie and inserting data on a text file or a database table, so
php should be fine, however i wonder if with php I could have the same
caching problem as with log files, I mean maybe only javascript being a
client side language can avoid the cached pages problem?

How do u track your visitors?

probably the best option is to read log files for server metrics such
as spiders visits, error pages , and using page tagging with
javascript or php for more qualitative tasks such as conversions,
keywords referrer and so on.
TIA

johnny

Apr 5 '06 #1
3 4387
johnny wrote:
hi all!

I am starting to study the best way to track site visitors.
Logfiles stats which come with every web hosting, have little metrics
to be analyzed and also problems with cached pages which are not seen.
I thought to use php and cookies to track returning visitors, however I
see that all pro solutions use javascript to set cookies.
Now since I prefer to avoid js as much as I can cause they can be
blocked by browser settings, is it the same to use php to set cookies ?

I think that page tagging solutions also rely on a remote script to
read cookie and inserting data on a text file or a database table, so
php should be fine, however i wonder if with php I could have the same
caching problem as with log files, I mean maybe only javascript being a
client side language can avoid the cached pages problem?

How do u track your visitors?

probably the best option is to read log files for server metrics such
as spiders visits, error pages , and using page tagging with
javascript or php for more qualitative tasks such as conversions,
keywords referrer and so on.
TIA

johnny


Johnny,

There's no good way to track visitors.

As you've probably already seen, IP addresses aren't reliable. But neither are
cookies. As you indicated, they might not have Javascript on. However, they
might have their browser set to delete cookies when they close the browser. So
even if you set a cookie it won't be there next time.

You can get an idea of what visitors generally are doing on your site by the log
files. And you can track what individual users are doing in the same browser
session via cookies.

Generally I look at the log files to see which pages are popular and which
aren't. And I track sales. But I don't track individual visitors.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Apr 5 '06 #2
hi Jerry,

thanks for your reply, well of course a perfect solution does not
exist, however don't you think that cookies are a more accurate way to
track visitors?
I mean with log files cached pages are not tracked and someone says
that cached pages can even be more than 50% of all page views while
with cookies you can have a better look at returning visitors .
Cookies problem is only that some are deleted so you cannot analyze
all the visitors of your site but by a qualitative point of view ,
cookies data are more accurate.
Of course a user can browse from different user agents, so the best way
would be a log-in page and then a session but not all websites can
require a registration.

By the way , which software do you use for your log analysis ? and for
tracking sales?

TIA

johnny

Apr 6 '06 #3
johnny wrote:
hi Jerry,

thanks for your reply, well of course a perfect solution does not
exist, however don't you think that cookies are a more accurate way to
track visitors?
I mean with log files cached pages are not tracked and someone says
that cached pages can even be more than 50% of all page views while
with cookies you can have a better look at returning visitors .
Cookies problem is only that some are deleted so you cannot analyze
all the visitors of your site but by a qualitative point of view ,
cookies data are more accurate.
Of course a user can browse from different user agents, so the best way
would be a log-in page and then a session but not all websites can
require a registration.

By the way , which software do you use for your log analysis ? and for
tracking sales?

TIA

johnny


Cookie data isn't necessarily more accurate. I've found more and more users are
clearing cookies at the end of the session, for instance - maybe because of ad
tracking software.

My main log analyzer is awstats, although I use some others (like webalizer) for
some info. And most of my customers track sales web sales right along with the
rest of their sales in their accounting packages, etc.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Apr 6 '06 #4

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

Similar topics

1
by: d.schulz81 | last post by:
Hi all, We have about 10 different domains that are linked very closely and we want to identify and keep track of every single user that surfs our websites by the use of sessions. The problem...
5
by: | last post by:
(subject included - apologies) <jason@catamaranco.com> wrote in message news:... > Is there a simple way to track users leaving our site to vendors whose wares > we have advertised as a banner...
8
by: Brent | last post by:
Does anyone know the best way to detect and track a visitors screen resolution. I know the javascript to detect the users resolution but I am a bit confused on the best way to track and save this....
2
by: muser8 | last post by:
What is the best way in which to uniquely identify anonymous visitors to an asp.net website? I'd like to create on online poll, but I want to guard against people hitting the refresh button,...
0
by: brianpmccullough | last post by:
Hello, Anyone ever implemented a solution that allows you to track the total page request time in and ASP.NET page? The time would need to include the server processing time and client side...
1
by: shror | last post by:
i'd like to add number of visitors are currently on my website, but i really dont know how or even i cant find a script for it except for asp.net one and i dont know about asp.net any thing and i...
32
by: Ciaran | last post by:
Hi I've seen this a few places - The site lists off the number of people (not logged in) currently browsing the site. How can I do this with php / mySQL please?
0
by: kashok | last post by:
hi all, how to track online visitors ip address and country name through ip address of those who are visiting my web site in asp.net..... Ashok
11
by: glenh | last post by:
I have a web app that is running a photo competition. Basically any user should be able to vote on a photo with a rating between 1 and 5. At the end of the competition the photo with the highest...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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,...

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.