View Full Version : Hit/Visit
07-31-2006, 05:59 AM
What is the difference between a hit and a visit on a Website?
07-31-2006, 10:19 AM
Nothing at all.
Unless someone is looking at is as a hit being a time the page is requested, meaning once for each page, plus once each time any page is refreshed, and that a visit is simply their whole stay.
That would make sense.
However, they are both very ambigious terms. I would ask whoever it matters to.
Why are you wondering?
07-31-2006, 10:32 AM
Just to put in 2 cents...
djr is 100% correct, although most hit counters (at least php ones I have used) wont report a visit that is less than 1800ms, those will be page hits, while > 1800ms will be counted in the page visit category.
If you have a counter on your page they will both tick over once, but for admin panel it will split them up based on the length of stay.
07-31-2006, 10:58 AM
It's like the difference between a regular poster at a forum, and someone who just stops by to glance at the site once.
But... there's no real "rule" to what the words actually mean... just some assumptions, I suppose.
Oh, and the phrase "unique hits" comes up fairly frequently.
It means unique visitors.... people.
Almost always it's just an IP check to see if they've been there before.
So... it's usually a count of how many IPs have visited the site.
However, some may vary slightly, like have a 15minute reset or something, though that's not truly "unique" then.
08-01-2006, 05:35 AM
is it possible to create hit / visit counter with php?
what is the theory behind counter?
08-01-2006, 06:48 AM
Hey thank you guys
echo('Hits: ' . $hits = file_get_contents(HITS_FILE) + 1);
08-03-2006, 05:46 PM
so basically we just use a file to store hit rate, right?
It can be a file, a database... anything that can hold persistent data.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.