Page 1 of 1

Double clicks

Posted: Wed Feb 09, 2022 12:28 pm
by SBenoit
Script URL:
Version of script: 2.2.0
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:
Hello again,
I'm trying to prevent visitors to double-click on download links (or prevent the counter to count it as 2 hits). Do you know a way to achieve that?
Thanks again.

Re: Double clicks

Posted: Wed Feb 09, 2022 4:24 pm
by Klemen
There's really no reliable way of preventing that.

CCount should count both clicks, but only one of them as unique. If you want to show unique clicks on your pages (instead of all), use ccount_unique instead of ccount_display in your Javascript (see CCount admin page > Instructions).

Re: Double clicks

Posted: Wed Feb 09, 2022 4:47 pm
by SBenoit
Ok i'll do that. Thanks.