473,795 Members | 2,826 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4418
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*******@attgl obal.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*******@attgl obal.net
=============== ===
Apr 6 '06 #4

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

Similar topics

1
4474
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 is how to keep track of the session ID across domains. - cookies don't work because not acepted by 40 % of or users and cookies don't work across domains
5
2086
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 on our site.....? > > Some of the vendors we deal with may not have sophisticated tracking devices > to allow us to determine if we are contributing to their sales....
8
2388
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. Should I save it to a database or is it easier to save it to a text file?
2
2878
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, scripting posts to the web form, deleting cookies, ect… Does anyone have any ideas or know where I might find any good online resources? TIA, Sean
0
1645
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 rendering time to provide a total "user experience" time. An example of where it might be used would be on a search page that allows a user to enter some text and click a search button. I would like to track from the time the user clicked the...
1
1377
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 want to keep all my work using the php. if any body know even the idea of this, i'll be glad if any one could help me. Thanks in advance for any help going to be offered
32
4285
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
1101
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
2178
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 average rating wins the competition. To make things fair we would like to restrict a user from only voting on any one photo only once. However to encourage voting we dont want to have to force users to register/signup. So we thought perhaps...
0
9672
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9519
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10214
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10164
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10001
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9042
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6780
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5437
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.