The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Web counters
Lee Batchelor
post Mar 4 2025, 02:53 PM
Post #1


Member
***

Group: Members
Posts: 85
Joined: 10-May 20
Member No.: 27,332



Hi all,

I wish to add another free website visit counter that excludes certain IP addresses. I already use StatCounter, which has a page where you can add the IP addresses you don't want counted but I've had some issues with that counter losing hit counts all by itself. Their tech folks have been very helpful but can't see any issues with their code.

I want to run another counter in parallel with StatCounter as a check. There are lots of freebies out there but none have IP filtering. I don't want to use Google Analytics because I believe you have to possess an advanced degree in computer science to even open their page!

Many thanks.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Mar 5 2025, 08:24 AM
Post #2


.
********

Group: WDG Moderators
Posts: 9,781
Joined: 10-August 06
Member No.: 7



With Web Counter, do you mean one where the results are visible to everybody on the page (as opposed to web stats that are only visible to the site owner)?

QUOTE(Lee Batchelor @ Mar 4 2025, 08:53 PM) *

I've had some issues with that counter losing hit counts all by itself. Their tech folks have been very helpful but can't see any issues with their code.

Could it be that some browsers block counters and similar tracking scripts? To avoid that you might use server side scripting for the counter, but (except for ordinary web stats) I don't know about any readymade ones like that. Perhaps you could write your own in PHP. Basically just compare the IP of a HTTP request with your list of unwanted IPs, and if it's not found there increment the counter value.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Lee Batchelor
post Mar 5 2025, 08:52 AM
Post #3


Member
***

Group: Members
Posts: 85
Joined: 10-May 20
Member No.: 27,332



Hi Christian,

I mean an ordinary counter that tracks visits to each page on the website. It can be hidden or visible. StatCounter does that and has a function where I can list IP addresses for it to ignore. These are people who I don't want to track in the counter. This is a music band website I developed a few years ago, with much help from Coothead! I want the other three band members to view the website but not be counted - myself included.

None of the free counters offer the IP address exclusion function, except StatCounter. StatCounter is excellent but on two occasions we have lost high numbers of hits and neither the support people nor I can see how those hits were lost. Hence, I wish to run another counter in parallel with StatCounter.

I too wondered about creating my own counter but I'm not familiar with the language(s) needed. Perhaps there are some premade codes I can download. I'd still need to have it ignore four IP addresses. On the other hand, there are only four of us to ignore. Two of the four virtually never visit the website. Perhaps the remaining two (me and one other) will have very little effect on the resulting hit accuracy!

Thanks for the help 👍!

- Lee
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Mar 5 2025, 12:45 PM
Post #4


.
********

Group: WDG Moderators
Posts: 9,781
Joined: 10-August 06
Member No.: 7



QUOTE(Lee Batchelor @ Mar 5 2025, 02:52 PM) *

I mean an ordinary counter that tracks visits to each page on the website. It can be hidden or visible.

Check if your web host doesn't already offer one for free.

QUOTE
I want the other three band members to view the website but not be counted - myself included.

Oh, I thought you wanted to exclude IPs of known bots. Alas, on smaller sites the vast majority of hits will be from bots. I suppose javascript-based counters use various methods to detect bots automatically, but I have no idea of how accurate such methods are.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Lee Batchelor
post Mar 5 2025, 10:11 PM
Post #5


Member
***

Group: Members
Posts: 85
Joined: 10-May 20
Member No.: 27,332



Thanks, Christian. I never thought about asking the host. I'll do that.

- Lee
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
39 User(s) are reading this topic (39 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th March 2025 - 01:55 AM