Solved

Some general questions about hit counters and web statistics

Posted on 2008-10-30
6
344 Views
Last Modified: 2013-12-07
I use Dreamweaver and ColdFusion; I also know a little JavaScript. A client wants me to add a hit counter to his home page. I am trying to understand his exact reason for wanting this (his info? so others can see? etc) but in the meantime I have a few general questions:

1) If the purpose is for his use only, couldn't he just use the web statistics that his host provides?

2) I do have a site where I track visits to specific pages, using some CF code and a MySQL datatbase. My experience is that this tracker also "counts" spider/crawler hits. Some of them I've been able to filter out with code that ignores certain HTTP_USER_AGENTs and REMOTE_ADDRs. Do web statistics count everything, including crawlers? This client is using GoDaddy hosting, if that helps at all. I have not yet used GoDaddy (I use HostMySite).

3) Is it possible to write a simple hit counter and keep track of the hits in a text file instead of a database? If so, I could use some general direction about how to create/edit the file (I'm using Dreamweaver, if that helps). I know that the file would reside on the server. Do I need to worry about someone hacking in to it?

4) What exactly is a "unique" visit? What is the criteria for defining unique? Specifically, I'm looking at the free counter by www.hitcounterland.com. If I hit my site with the counter in it, it goes up by one, but as I continue to hit it, it doesn't change. So if I hit it tomorrow, will I be counted again? Or am I only counted once ever?
0
Comment
Question by:alicia1234
  • 3
  • 2
6 Comments
 
LVL 4

Accepted Solution

by:
MattKenefick earned 250 total points
ID: 22842270
1.) Not all hosts offer statistics for free. He may not have them.

2.) It depends what kind of tracker you're using for what it will pick up.

3.) You can do that, but it's probably better in this day and age to use one of the trackers that has already been developed. With Google Analytics ( http://www.google.com/analytics ) or GetClicky.com (http://www.getclicky.com), you can just insert a couple lines of Javascript into your code and it will do all the hard work for you and give you very extensive stats. Everything someone could ask for.

4.) A unique visit is someone going to your site for the first time. Hits are when I go on a site, browse through all their pages, etc.. Every page I load is a "hit"... but there would only be one "unique" visit, cause it's all coming from me. It will be counted again tomorrow or later in the day. If I visit today, I'm still unique tomorrow.
0
 

Author Comment

by:alicia1234
ID: 22842391
Thanks!
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 22846644
Alicia,

You might also want to consider adding Google Analytics to the site.  It's easy, free, and provides great information.
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

Author Comment

by:alicia1234
ID: 22847171
Thanks Jason. I am now trying to figure out ASP.Net. Maybe you can help me translate between ColdFusion?
http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/Q_23863504.html
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 22847538
No, sorry.  I don't touch ASP.NET.  I'm a PHP guy and proud of it.
0
 

Author Comment

by:alicia1234
ID: 22849683
Then maybe I'll try to get the client to switch to php ;-)
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now