hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Design and Content : Putting a Counter
Reply

Web Design and Content Subjects include, HTML, graphics, editors, CSS, Flash, graphics creation, placing of ads, ad serv companies, copyright, content and nearly anything else design related. Also talk about businesses that provide design services. If you link to your site, you must post in Web Site Reviews.
Forum Jump

Putting a Counter

Reply Post New Thread In Web Design and Content Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 10-04-2003, 12:57 AM
mantra mantra is offline
Web Hosting Master
 
Join Date: Nov 2001
Location: New Jersey
Posts: 1,379

Putting a Counter


I just signed up with TheCounter.com to place a counter on my quepons.com website.
I decided to put the code in the footer page which will be shown on all pages.

Is that ok? I mean are those statistics then valid if it counts on every page?

Do I just put the code on the front page and that's it?

Please give me your feedback.

Thanks

Reply With Quote


Sponsored Links
  #2  
Old 10-04-2003, 01:03 AM
ElysiumNet ElysiumNet is offline
Disabled
 
Join Date: Aug 2003
Posts: 338
Putting it on the front page will make it more accurate, but maybe there is a way you can divide it up so that you can have separate counters on different pages.

Reply With Quote
  #3  
Old 10-04-2003, 01:05 AM
JTY JTY is offline
Community Guide
 
Join Date: Jun 2000
Location: Washington, USA
Posts: 5,976
I'd just put it on the front page.

__________________
John T. Yocum -- Fluid Hosting
Shared - VPS - Dedicated - Colocation

Reply With Quote
Sponsored Links
  #4  
Old 10-04-2003, 10:21 AM
mantra mantra is offline
Web Hosting Master
 
Join Date: Nov 2001
Location: New Jersey
Posts: 1,379
great, thanks .. i just put it on the front page.

Reply With Quote
  #5  
Old 10-05-2003, 03:39 AM
anon-e-mouse anon-e-mouse is online now
Community Leader
 
Join Date: Jul 2002
Location: Tasmania, Australia
Posts: 31,979
If you want an indication of how many pages are visited etc, in addition to the counter on the main page, put one such as sitemeter on each page. www.sitemeter.com

Reply With Quote
  #6  
Old 10-05-2003, 03:43 AM
VRonline VRonline is offline
Junior Guru Wannabe
 
Join Date: Aug 2002
Posts: 87
btw, you might want to try www.extremetracking.com . They provide an accurate and detailed prospectus.

Reply With Quote
  #7  
Old 10-05-2003, 04:02 AM
anon-e-mouse anon-e-mouse is online now
Community Leader
 
Join Date: Jul 2002
Location: Tasmania, Australia
Posts: 31,979
Yes I like extremetracking, I use that on "special" pages to get an indication of where people are finding it, who has linked to it etc Actually for the thread starter, that might be a better idea than thecounter.com

Reply With Quote
  #8  
Old 10-06-2003, 11:22 PM
jjmac78 jjmac78 is offline
Junior Guru Wannabe
 
Join Date: Oct 2003
Location: Arkansas
Posts: 66
Keep in mind that most analyzer programs, such as http-analyze count every file, image, document, etc as a hit. For instance if you had a page with 10 images, the page would count 11 hits each time a person viewed it. (10 for the images, 1 for the page itself) These types of logs also include a page hits stat which is the number of times a page is viewed.

Just putting a counter on the front page still isnt accurate since a viewer can visit the front page any number of times while online.

You can track the number of new visitors by creating a session variable for the IP address of the viewer and log only one hit per IP per session. That way no matter how long a visitor stays on, it will only count one hit until the session expires and they return.

Not to mention you can exclude dup IP's if you're trying to get a number of unique visitors, but dial up users will likely change IP's when they log on, so its impossible to really tell with just a session variable.

The most accurate way I've found is to use a combination of cookies and sessions to log a hit for an IP for a session, and set a cookie. If the cookie exists next time that visitor comes then a hit is not recorded. This gives me the most accurate number of unique visitors I've found because in order for it not to work a viewer would have to have a dynamic IP that changes each time they visit the page, and have cookies disabled.

Lets be honest, most viewers on non-technical web sites dont even know what a cookie is, much less how to disable them

I guess it all depends on how accurate you want to be...

Reply With Quote
  #9  
Old 10-07-2003, 12:27 AM
VRonline VRonline is offline
Junior Guru Wannabe
 
Join Date: Aug 2002
Posts: 87
um, actually extremetracking does count the unique visits to that page file and that page file only There are also ALOT of others which do this, take a look through www.hotscripts.com there are loads there which can do this for you, some even have things like showing information about the visitor, his referred site....

Nevertheless extremetracking is very easy to set up and is quite advanced itself, so I can see no reason why it shouldnt be a first option

Reply With Quote
  #10  
Old 10-07-2003, 10:49 AM
jjmac78 jjmac78 is offline
Junior Guru Wannabe
 
Join Date: Oct 2003
Location: Arkansas
Posts: 66
Extreme tracking uses the hostname to determine unique visitors. The hostname, like the IP address, changes on dial up users. Extreme tracking does not take this into consideration, but I do.

Like I said, it all depends on how accurate you want to be.

Also keep in mind that looking up a hostname with reverse DNS (like extrem tracking) increases the workload and bandwidth use of the server - by more than twice as much as just getting the IP. On a busy site this may not be the best thing to do especially on every page.

Also, as you were saying about the information some trackers give you like referrer, etc can all be easily accessed by the server variables -- See this php documentation ..

Anyone can simply type in <?=$_SERVER['HTTP_REFERER']?> and print out the referrer.. No big secrets here -- the problem comes when people use everything on every page without any cosideration. For example on my sites that get millions of hits per month, it would not be wise to get the referrer on any page except the page people link to because I dont need to know when my page is its own referrer.

Likewise if I did a reverse DNS lookup on every page on every hit for the hostname, it would generate TONS of uneeded traffic -- not to mention the hostname is seldom more helpful than an IP address (considering you can look up the provider of most IP addresses anyway) and for the expense is not worth it...

On smaller sites it wouldnt matter so much, but IMHO every application you write should be scalable -- theres no sense in planning on being a small site forever...


Last edited by jjmac78; 10-07-2003 at 11:01 AM.
Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
A Look at Australian Minecraft Web Host Wombat Servers Web Hosting News 2013-05-15 10:33:55
Silicon Valley VC Gives Startups $37, Most Buy Web Hosting Blog 2013-01-25 13:51:46
eTail Boston 2012 Web Hosting Events 2012-08-07 17:07:48
Introducing cPanel Sales Certification, with David Grega of cPanel Web Hosting News 2011-10-11 23:18:48
Hacker Group LulzSec Leaks Arizona Law Enforcement Data Web Hosting News 2011-06-24 14:14:28


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?