Click counter not counting?

Post your Click counter digestion problems here
Post Reply
AFGadd
Posts: 3
Joined: Mon Jan 15, 2007 6:51 pm

Click counter not counting?

Post by AFGadd »

Script URL: http://www.mortocombe-railway.co.uk/ccount/
Version of script: 1.1
Hosting company: feehostia.com
URL of phpinfo.php: http://www.mortocombe-railway.co.uk/
URL of session_test.php: http://www.mortocombe-railway.co.uk/
What terms did you try when SEARCHING for a solution:

Write your message below:

First of all I want to say thanks for such great utilities, I have installed two message boards, one guest book and one counter from Junkyard. All installed on the same server and all working fine.

A new site on the same server is going to have downloads and so I decided to try the click counter. Installation went fine and I have been able to get the click counter control panel up and add a few ulr’s. This is now particularly disappointing as this look like a really great utility.

The script does not seem to count the site visits (does it count unique visits or every time someone refreshes the page?) I have set the click.txt and ids.txt to 666 and checked the server uses UNIX.

I have accessed the entries in clicks.txt e.g.

1%%2007/03/08%%http://bodgit-scarper.freehostia.com/in ... l%%0%%Home Page

and I can edit the number and get it to show up in the control panel but the script is not making new entries to the click.txt when the pages are visited.

Can you provide some help please, I so want to be able to use click count as it look like exactly what I need.

Thank You.

Andrew.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

I'm not sure you understand how CCount works.

First of all CCount is meant to count CLICKS on a LINK and not site visits (try the text hit counter or GCount if you want that).

To count clicks on a link it is not enough just to add it in the admin panel, you have to REPLACE the original link with the one generated by CCount!

EXAMPLE
You want to count clicks on link which goes to http://domain.com/file1.zip
You add this URL to your CCount, and the link is assigned ID "3".
Now you should use THIS URL instead of the original one:

http://www.yourdomain.com/path_to_ccount/click.php?id=3

If you click on this link CCount will count the click and then redirect the visitor to http://domain.com/file1.zip

Hope this makes sense.

Regards
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
AFGadd
Posts: 3
Joined: Mon Jan 15, 2007 6:51 pm

Post by AFGadd »

Thanks Klemen,

I could not see how Click Counter knew when a link had been "clicked".
Now I understand.

The problem was all mine, Sorry.
I had read the ReadMe as usual, and found the part about showing the counts on your web page, when the program itself gave me the prompt to change the download ULR, I ignored it believing that it too, was giving me a code to display a counter on my webpage!!!!

However, I have got it all running now and I will be able to keep a track on all files downloaded from my new site.

Thank You once again for such terrific utilities.

Andrew.
Post Reply