About counting hits to site.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mparker1113
Forum Commoner
Posts: 28
Joined: Wed Apr 05, 2006 9:39 am

About counting hits to site.

Post by mparker1113 »

I have a counter that will record each time that my site's home page is opened for the first time by a user. Is it possible that I am counting server pings, or 'bots that are 'viewing' my site? I ask, because I do not find the site on the search engines when I enter the key words, and I have not gotten any feedback from the listed contact regarding any inquiries, Yet -- I have at least 3 - 7 hits listed per day, every day for the last several months.

Am I missing out on weeding out non-legitimate hits ? Or am i more popular than I thought (?)
User avatar
hawleyjr
BeerMod
Posts: 2170
Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA

Post by hawleyjr »

3 to 7 hits really isn't much (Not to rain on your parade)

Are you tracking the user agent or IP address? Although not 100% reliable they can help :)
mparker1113
Forum Commoner
Posts: 28
Joined: Wed Apr 05, 2006 9:39 am

Post by mparker1113 »

Actually, the way that i am tracing is by setting a server variable when they visit (SERVER['logged_in']; and then incrementing for each hit that doesn't have that variable set ( of course i set it after I increase my count by 1).

I am not feeling "picked on" by the counts -- I just want to be accurate -- :D)
Post Reply